2016-12-27 67 views
-2

我試圖移動此圖像在CSS中,但它只是不會移動沒有多少次我測試它,我做錯了什麼?我如何移動此圖像/鏈接在css

#yahoo1 { 
 
    position: absolute; 
 
    top: 100px; 
 
    left: 800px; 
 
}
<p id="yahoo1"> 
 
    <a href="http://www.yahoo.com"> 
 
    <img border="0" alt="yahoo" src="images/yahoo.png" width="300" height="300"> 
 
    </a> 
 
</p>

+0

你是什麼意思_move這一形象links_? – Satpal

+0

解釋清楚.. –

+0

從哪裏轉移到哪裏? –

回答

0
#yahoo1 { 
    position: relative; 
} 

#yahoo1 a { 
    position: absolute; 
    top: 100px; 
    left: 800px; 
} 

#yahoo1 img { 
    display: block; 
}