你好我的網頁上有2個字符圖像,我已經放在文字和橫幅的兩側,繼承人的圖片http://i.imgur.com/KwzphQP.jpg但是繼承人的問題,當我rezise我的瀏覽器的圖像跟隨瀏覽器,他們做不能留在同一個位置,我不希望這種情況發生,因爲我有一個固定的佈局,繼承人的CSS代碼,我不知道如何將它張貼好,但無論如何如何在瀏覽器調整大小時保留圖像?
.support-text {
width: 600px;
margin-left: auto;
margin-right: auto;
line-height: -2px;
margin-bottom: 130px;
}
.support-text h1 {
font-size: 30px;
}
.support-text {
clear: left;
}
.support-text {
font-size: 23px;
}
.support-img {
margin-top: -80px;
margin-bottom: 80px;
z-index: 1;
}
.ct-pic {
position: absolute;
right: 10px;
bottom: 30px;
float: right;
}
.ct-pic:hover {
-webkit-filter: brightness(180%);
}
.t-pic:hover {
-webkit-filter: brightness(180%);
}
.t-pic {
position: absolute;
left: 40px;
bottom: 30px;
float: left;
}
繼承人的HTML
<section class="support-text">
<div class="ct-pic"> </div>
<div class="t-pic" width="867" height="569"></div>
<img src="img/support-us.png" class="support-img">
<p>Hello, if this site has helped you improve your gameplay, and learn useful stuff, feel free to support us, so we can keep this website up, so more people can learn. You can support through Steam or throught paypal. Keep in mind that you do not have to support, but if you do, we appreciate it alot. and we can continue to upload new content (Smokes, flashes, tactics) to the website. </p>
</section>
你需要包括你的html以及任何javascript。 – 2015-03-31 19:27:53
不使用圖像'',使用'div'作爲圖像鏈接,並給它一個固定的寬度 – 2015-03-31 19:28:01
我們需要看到html,但是你不能漂浮**和**絕對定位......選擇一個或另一個。 – 2015-03-31 19:28:11