<Form ...> 下面的 <Eingabe type = Hidden name = sortby id = sortby value = $ {sortby}> 占据物理位置的情况 , 代码如下 :
<Formular name = header_product_search_form method = post id = header_product_search_form action = $ {ctxpath} /products/productsSearch.html?doaction=ProductSearchAction>
<Eingabe type = Hidden name = HeadSearchCategoryPath ID = HeadSearchCategoryPath Value = $ {CategoryPath}>
<Eingabe type = Hidden name = HeadSearchAttributepath ID = HeadSearchAttributepath Value = $ {HeadSearchAttributepath}>
<Eingabe type = Hidden name = AttributepathinputValue id = AttributepathinputValue Value = $ {AttributepathinputValue}>
<Eingabe type = HIDDEN NAME = PrMitEMsperPage ID = PrMitEmsperPage Value = $ {PagingBean.ItemsperPage}>
<Eingabe type = Hidden name = prmpageno id = prmpageno value = $ {pagingBean.currentPage}>
<Eingabe type = Hidden name = prMtotalItems id = prMtotalItems value = $ {PagingBean.numberofItems}>
<Eingabe type = Hidden name = prMtotalpages id = prMtotalpages value = $ {PagingBean.numberofpages}>
<Eingabe type = Hidden name = sortby id = sortby value = $ {sortby}>
..............
..............
</form>
如上 , 红色的隐藏输入框直接在 标签下面 标签下面 , 结果出现在 ie 下显示失真的情况 , 隐藏输入框占据物理空间 , 在 ie 里留下空白的部分。而在 Firefox 下显示正常。
解决方法 :把隐藏输入框放在 Form 标签的最后面 , 即在 即在 之上 , , IE 下显示即可恢复正常。代码如下 :
<Formular name = header_product_search_form method = post id = header_product_search_form action = $ {ctxpath} /products/productsSearch.html?doaction=ProductSearchAction>
..............
..............
<Eingabe type = Hidden name = HeadSearchCategoryPath ID = HeadSearchCategoryPath Value = $ {CategoryPath}>
<Eingabe type = Hidden name = HeadSearchAttributepath ID = HeadSearchAttributepath Value = $ {HeadSearchAttributepath}>
<Eingabe type = Hidden name = AttributepathinputValue id = AttributepathinputValue Value = $ {AttributepathinputValue}>
<Eingabe type = HIDDEN NAME = PrMitEMsperPage ID = PrMitEmsperPage Value = $ {PagingBean.ItemsperPage}>
<Eingabe type = Hidden name = prmpageno id = prmpageno value = $ {pagingBean.currentPage}>
<Eingabe type = Hidden name = prMtotalItems id = prMtotalItems value = $ {PagingBean.numberofItems}>
<Eingabe type = Hidden name = prMtotalpages id = prMtotalpages value = $ {PagingBean.numberofpages}>
<Eingabe type = Hidden name = sortby id = sortby value = $ {sortby}>
</form>