你好我的网页上有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