2011-10-19 41 views
0

工作,我有这个页面:http://www.justdoors.co/plinths/bella-matching-plinth.htmljQuery的仅适用于Chrome

以下代码为忽略CSS类:

<script type="text/javascript"> 
     jQuery(document).ready(function(){ 
     jQuery('div.product-options-container:not(:eq(0))').css('height', '34px !important'); 
     jQuery('div.product-options-container:not(:eq(0))').css('overflow', 'hidden'); 
     jQuery('div.product-options-title:not(:eq(0))').css('padding', '15px 0 5px 10px !important');  
     jQuery('div.product-options-chooser:not(:eq(0))').css('width', '290px !important'); 
     }); 
</script> 

的脚本工作正常,在Chrome,但似乎并没有工作在其他浏览器中,我错过了什么?

+0

您是否尝试过在任何其他浏览器(Firefox的FireBug,Opera的Dragonfly,IE的开发人员工具)上激活开发人员工具?他们应该能够查明任何javascript错误。 – ford

回答

0

它看起来像是在工作,但被另一个函数覆盖。现在通过向分部添加实例号并添加特定于分部的CSS而不是尝试重写来解决问题。

相关问题