0
在開發人員工具中打開和關閉規則之前,「去」提交按鈕不會顯示在ie7中。ie7不會顯示css規則,除非我在開發人員工具中將其打開和關閉
<div id="footerNewsletter">
<p><?php echo $text_newsletter_signup; ?></p>
<form method="post" action="" onsubmit="cm_signup(); return false;">
<input name="Email" id="Email" value="<?php echo $text_email_address; ?>" type="text" onclick="this.value='';" />
<?php /*<a href="#" id="newsletterSubmit" ><span><?php echo 'Go'; ?></span></a> */ ?>
<input class="newsletter-submit" type="submit" name="Name" value="Go" />
</form>
<p id="nl_return"></p>
</div>
和CSS
#footerNewsletter {
background: #a29061;
width: 274px;
height: 46px;
color: #fff;
float: left;
padding: 8px 13px;
margin-left:20px;
position:relative;
}
#footerNewsletter {
background: #a29061;
width: 274px;
height: 46px;
color: #fff;
float: left;
padding: 8px 13px;
margin-left:20px;
position:relative;
}
#footerNewsletter p {
padding: 0;
margin: 0;
width: 90px;
height: 45px;
font-family: 'Droid Sans', sans-serif;
font-size: 17px;
color: #fff;
float: left;
}
#footerNewsletter input {
float: right;
height:25px;
color: #a29061;
border: 0;
font-size: 13px;
font-family: 'Droid Sans', sans-serif;
background: #fff;
margin-top: 10px;
width: 158px;
}
input.newsletter-submit{
background: none repeat scroll 0 0 #54301A !important;
color: #60C5BA !important;
display: block !important;
float: right !important;
font-family: 'Droid Sans',sans-serif !important;
font-size: 13px !important;
margin: 10px 0 0 !important;
padding: 0px 0px !important;
position: absolute;
right: 10px !important;
text-decoration: none !important;
width: 30px !important;
height:25px !important;
z-index: 10 !important;
bottom:19px !important;
}
.newsletter-submit:hover {
background: #60c5ba !important;
color: #54301a !important;
cursor:pointer;
}
其優良的所有其他瀏覽器,感謝您的幫助。
您正在將輸入中的浮點數與嘗試將其絕對定位在一起。看看如何將其改爲一種方法,看看它是否有幫助。 –
謝謝比利,那工作:) – Adrian
很酷,我會添加它作爲答案:) –