此页面http://winteradagency.com/Arvin/incentives/lenders.htm在除IE6之外的所有浏览器中看起来都不错。出现问题的是那些需要放在中心图片顶部的大字,说“贷方扣除”。在IE6中,他们正在向右移动,导致浏览器窗口进行水平滚动。绝对定位的标记在IE6中不起作用
我需要使用这些单词的2个不同实例来创建人造阴影外观。所以一个是在另一个的顶部,而在两个方向都是一个像素。
我使用这个网站码:
<div id="centerInc">
<p class="centerAlign3">Deductions for Lenders</p>
<p class="centerAlign2">Deductions for Lenders</p>
</div><!--end center image div-->
,这里是从styles.css的网站上的CSS:
#container #centerInc {
background-image: url(images/IncCenter.jpg);
height: 183px;
width: 875px;
margin-top: 160px;
float: left;
font: bold 2.6em Georgia, "Times New Roman", Times, serif;
color: #FFF;
background-repeat: no-repeat;
text-align: right;
position: absolute;
}
.centerAlign2 {
font: normal 1.15em Georgia, "Times New Roman", Times, serif;
color: #FFF;
position: absolute;
width: 860px;
margin-top: 115px;
}
.centerAlign3 {
font: normal 1.15em Georgia, "Times New Roman", Times, serif;
color: #000;
position: absolute;
width: 861px;
margin-top: 114px;
}
任何想法,将不胜感激。我仍然是一个真正的新秀。 谢谢!
是的,我已经决定忘记尝试在图片上添加文字,并且仅仅使每个图片都已经包含文字。 – Drea 2009-11-30 20:23:15