2013-11-15 36 views
0

我有一个HTML表单,查找员工的提交按钮在Firefox中不起作用,但在IE和Chrome中起作用。任何建议或想法,为什么这是这样?HTML标记在某些浏览器中不起作用

<form action="employees.cfm" name="limit_options" id="a" method="post" > 

    <cfoutput> 

    <input type="hidden" 
    name="LV_ALPHA" 
    id="LV_ALPHA" 
    value="" 
    /> 

    <th> 

    <input type = "text" 
    name = "LV_VNDR_NAME" 
    value = "#htmlEditFormat(LV_VNDR_NAME)#" 
    size = "15" 
    maxlength = "15" 
    height = "200px" /> 
    > 
    </th> 
    <th> 

    <input type = "text" 
    name = "LV_VNDR_NAME" 
    value = "#htmlEditFormat(LV_VNDR_NAME)#" 
    size = "10" 
    maxlength = "6" 
    /> 
    </th> 
    <th colspan="3"> 

    <input type = "text" 
    name = "LV_ASSIGNED_USERID" 
    value = "#htmlEditFormat(LV_ASSIGNED_USERID)#" 
    size = "10" 
    maxlength = "7" 
    /> 
    </th> 

    <th colspan="7"> 
    <!-- Problem with this button in firefox --> 
    <input type = "submit" 
    name = "LV_Submit5" 
    value = "Find Employees" 
    /> 

    &nbsp; &nbsp; &nbsp; 

    <input type="reset" value="Clear"> 

    </th> 
</cfoutput>    

       </form> 
+2

”在Firefox中不起作用“。究竟会发生什么?我试过了,当我点击FF中的按钮时,表单被提交。 –

+0

在“height =”200px“/>”之后的'>'是故意的吗? –

+0

你应该检查额外的'>'@ChiChan提到 – yomexzo

回答

2

您的HTML无效。您不能将<th>作为<form>的子元素。

一些浏览器(Firefox肯定)已知错误从错误中恢复表格与表格的错误,方法是移动表格,使其显示在表格后面(同时将输入留在后面)。

这解释了你的问题(如果按钮不在表格中,它不会提交)。使用a validator。写有效的标记。 “

相关问题