标题 | ie6 失真问题 |
内容 | 问题: <form...>下面的<input type="hidden" name="sortBy" id="sortBy" value="${sortBy}">占据物理位置的情况 代码如下: <form name="header_product_search_form" method="post" id=&qu 问题: <form...>下面的<input type="hidden" name="sortBy" id="sortBy" value="${sortBy}">占据物理位置的情况 代码如下: <form name="header_product_search_form" method="post" id="header_product_search_form" action="${ctxPath }/products/productsSearch.html?doAction=productSearchAction"> <input type="hidden" name="headSearchCategoryPath" id="headSearchCategoryPath" value="${categoryPath }"> <input type="hidden" name="headSearchAttributePath" id="headSearchAttributePath" value="${headSearchAttributePath }"> <input type="hidden" name="attributePathInputValue" id="attributePathInputValue" value="${attributePathInputValue}"> <input type="hidden" name="PrmItemsPerPage" id="PrmItemsPerPage" value="${pagingBean.itemsPerPage}"> <input type="hidden" name="PrmPageNo" id="PrmPageNo" value="${pagingBean.currentPage}"> <input type="hidden" name="PrmTotalItems" id="PrmTotalItems" value="${pagingBean.numberOfItems}"> <input type="hidden" name="PrmTotalPages" id="PrmTotalPages" value="${pagingBean.numberOfPages}"> <input type="hidden" name="sortBy" id="sortBy" value="${sortBy}"> .............. .............. </form> 如上,红色的隐藏输入框直接在form标签下面,结果出现在ie下显示失真的情况,隐藏输入框占据物理空间,在ie里留下空白的部分。而在Firefox下显示正常。 解决方法: 把隐藏输入框放在form标签的最后面,即在</form>之上,ie下显示即可恢复正常。 代码如下: <form name="header_product_search_form" method="post" id="header_product_search_form" action="${ctxPath }/products/productsSearch.html?doAction=productSearchAction"> .............. .............. <input type="hidden" name="headSearchCategoryPath" id="headSearchCategoryPath" value="${categoryPath }"> <input type="hidden" name="headSearchAttributePath" id="headSearchAttributePath" value="${headSearchAttributePath }"> <input type="hidden" name="attributePathInputValue" id="attributePathInputValue" value="${attributePathInputValue}"> <input type="hidden" name="PrmItemsPerPage" id="PrmItemsPerPage" value="${pagingBean.itemsPerPage}"> <input type="hidden" name="PrmPageNo" id="PrmPageNo" value="${pagingBean.currentPage}"> <input type="hidden" name="PrmTotalItems" id="PrmTotalItems" value="${pagingBean.numberOfItems}"> <input type="hidden" name="PrmTotalPages" id="PrmTotalPages" value="${pagingBean.numberOfPages}"> <input type="hidden" name="sortBy" id="sortBy" value="${sortBy}"> </form> |
随便看 |
|
在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。