簡體   English   中英

如何使用調整大小窗口將圖像固定在右下角?

[英]How to fix an image to the bottom right with resizing window?

您好,我正在嘗試將圖片固定在頁面的右下角,並且使用CSS可以正常顯示:

.logo img{
    position: absolute;
    bottom: 0;
    right: 0;
}

但是在調整窗口大小時,圖像位於內容之上,請問如何解決?

看看: http : //ryanfait.com/resources/footer-stick-to-bottom-of-page/

然后在圖片上使用float:right

在CSS圖像中使用負的“ z-index”,例如z-index: -1;

這會將圖像拉到內容下方。

在這里看到我的小提琴: http : //jsfiddle.net/davidpauljunior/WzwA5/2/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM