首页前端开发HTMLie6 失真问题

ie6 失真问题

时间2024-01-27 02:10:03发布访客分类HTML浏览462
导读:收集整理的这篇文章主要介绍了ie6 失真问题,觉得挺不错的,现在分享给大家,也给大家做个参考。 问题:<form...>下面的<input tyPE="hidden" name="sortBy" id="sort...
收集整理的这篇文章主要介绍了ie6 失真问题,觉得挺不错的,现在分享给大家,也给大家做个参考。

问题:

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>

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!

ie6

若转载请注明出处: ie6 失真问题
本文地址: https://pptw.com/jishu/587582.html
HTML 相对路径和绝对路径区别分析 firefox支持webdings字体的方法

游客 回复需填写必要信息