<DIV style="position: absolute; top:401px; left:1450px; width:400px; height:25px"><a href="http://www.test.com/"><img src="http://i.imgur.com/p6U5ufB.png" onmouseover="this.src='http://i.imgur.com/vo8DDLK.png'" onmouseout="this.src='http://i.imgur.com/p6U5ufB.png'"></a></DIV>
我在做一個網站,現在,我遇到了一些問題,我無法修復。
我在我的網站上有一些元素,當我在其他屏幕上打開網站時,他們一直在移動。
我該怎麼做才能讓這個元素保持不管它是多大? - 其他元素相同。
你試過了嗎?position:fixed'? – Swellar
它與定位時的絕對相同,但固定使得元素堅持/固定在其位置上,例如當您向下滾動時粘在屏幕上部的導航 – Swellar
沒有工作。 :/ – Instafla