我有一个问题。
当我设置填充:30px;对于输入字段和200px的大小。在FF中,元素的总宽度保持在200px和30px内部。在IE填充和宽度加起来的时候!
我认为IE行为在这种情况下更为正确。
但我该如何解决这个问题呢?
我不想仅使用IE浏览器样式表。你知道任何解决方案吗?
HTML / CSS
<style>
div#popnewsletter {
background:url("digital-photography-tips-newsletter.png") no-repeat scroll 0 0 transparent;
height:360px;
width:496px;
font: 0.8em/1.3em arial;
padding:188px 50px 20px 19px;
}
div#popnewsletter ul {
color: #422103;
list-style: none outside none;
padding: 35px 0 20px 40px;
margin: 0;
}
#newslettermailform {
height: 80px;
margin: 0 auto;
width: 430px;
}
#newslettermailform #nmailformemailfld {
background: url("newsletter-form-field.png") repeat scroll 0 0 transparent;
border: 0 none;
float: left;
height: 83px;
margin: 0;
padding: 0;
width: 260px;
}
#newslettermailform #nmailformsubmit {
background: url("newsletter-form-btns.png") repeat scroll 0 0 transparent;
border: 0 none;
float: left;
height: 83px;
margin: 0;
padding: 0;
width: 170px;
}
#newslettermailform #nmailformsubmit:hover {
background: url("newsletter-form-btns.png") repeat scroll 0 -83px transparent;
cursor: pointer;
}
div#popnewsletter p {
color: #FFFFFF;
display: block;
text-align: center;
margin: 0;
padding: 152px 0 0;
font-size: 0.9em;
}
</style>
<div id="popnewsletter">
<ul>
<li>Do you love photography?</li>
<li>Do you want to learn photography?</li>
<li>Do you want to receive tips in your mailbox?</li>
</ul>
<form id="newslettermailform" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=sandrophoto', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
<input id="nmailformemailfld" onblur="this.value=!this.value?'Your e-mail':this.value;" onfocus="this.select()" onclick="this.value='';" type="text" name="email" value="Your e-mail" />
<input type="hidden" value="sandrophoto" name="uri"/>
<input type="hidden" name="loc" value="en_US"/>
<input id="nmailformsubmit" type="submit" value="" />
</form>
<p>*You will receive a verification message once you submit this form.</p>
<!-- end#popnewsletter --></div>