勾选框不会显示在Internet Explorer中

时间:2011-10-26 09:14:01

标签: html

抱歉,我以前从未遇到过这个问题。

我的复选框不会出现在IE中,但会在FF中显示。为什么?我不知道第二种做蜱盒的方法。

    <%if termandcon = "" and not error="" then warningman = "You Must Tick This Box"%>
    <span class="nobor pad_5 rtalign"  style="font-size:14px;">
      <input   type="checkbox"       name="termandcon" <%if termandcon = "on"then%> checked <%end if%> style="height:1px; width:1px;"/>
      <a href="/info/contactus.asp#term" target="_blank">
        <b> I accept the terms & conditions</b>
      </a>
    <span class="redtxt">*</span>
    <%warning(termandcon)%></span>

2 个答案:

答案 0 :(得分:2)

 <input 
     type="checkbox" name="termandcon" 
     <%if termandcon = "on"then%> checked <%end if%>
     style="height:1px; width:1px;"/>
你不觉得这里有什么奇怪的吗? 高度:1px的;宽度:1px的;

答案 1 :(得分:1)

如果删除样式部分,那么它应该可以正常工作。

<input type="checkbox" name="termandcon" 
    <%if termandcon = "on"then%> checked="checked" <%end if%>/>