绝对位置从图像中删除超链接。

I've got the following code:

<div style="position: absolute; margin-top: 48px; margin-left: 261px;">
    <a href="http://www.somepage.com" target="_blank">
        <?php $image_url='http://www.somepage.com/image.jpg'; ?>
        <img src="<?php echo $image_url;?>">
    </a>
</div>

The image displays and positions correctly and the hyperlink works fine without the "position: absolute" but when it's included as above the link does not work.

I'm by no means a PHP programmer or even a programmer for that matter. So I'm probably missing something obvious here? any help would extremely appreciated.

Worken ---> It's working fine enough tried it on localhost also, there something else thats causing your problem

code:

<div style="position: absolute; margin-top: 48px; margin-left: 261px;">
    <a href="http://www.somepage.com" target="_blank">
        <img style = "border:1px solid black;" src="http://www.somepage.com/image.jpg">
    </a>
</div>

as a side note:i find it humorous that it links to an actual page

EDIT:

Glad to see you have figured it out a tad, heres another solution i just thought of:

#logo{
    background-image:url(http://www.somepage.com/image.jpg);
    height:400px;
    width:40px;
}

<div style="position: absolute; margin-top: 48px; margin-left: 261px;">
    <a href="http://www.somepage.com" target="_blank" id = "logo">
    </a>
</div>