IE8显示:无;窃听器

时间:2012-07-18 14:15:48

标签: jquery internet-explorer-8 hidden-field

我的页面中有以下代码:

<form class="store_product_form" name="" method="post" action="http://www.mydomain.etc...">
    <div style="margin:0;padding:0;display:inline">
        <input type="hidden" value="135" name="entry_id">
        <input type="hidden" value="collezione/unica/C13/portapenne" name="return_url">
        <input type="hidden" value="1" name="site_id">
        <inpu type="hidden" value="4194b647df2a6b56a8086303d43eac678c8d49cb" name="XID">
    </div>
    other stuff here...
</form>

输入通过css隐藏:

input[type="hidden"] {
-moz-appearance: none;
-moz-binding: none;
-moz-user-focus: ignore;
border: 0 none;
cursor: auto;
display: none !important;
padding: 0;
}

仅在IE8上显示包含div,尽管它的内容没有显示。但它最终占据了页面的空间,这并不好。

不幸的是我无法修改代码,因为它在页面呈现时由CMS注入。

我上网浏览了IE8:隐藏和:可见错误: http://forum.jquery.com/topic/hidden-visible-broken-in-ie8

所以我尝试通过js修改代码,注入一些代码以使容器div隐藏,但IE8似乎没有响应:

$(".store_product_form div input:hidden").parent().attr("style", "margin:0;padding:0;display:none;");

有关如何解决这个问题的想法吗?

谢谢! 卡罗

0 个答案:

没有答案