+ -
当前位置:首页 → 问答吧 → jquery在IE 6下的问题

jquery在IE 6下的问题

时间:2009-04-23

来源:互联网

复制代码
  1. <script type="text/javascript">
  2. $(function(){
  3.     var paraWidth = $('#speech p').css('width');
  4.     alert(paraWidth);
  5. });
  6. </script>
  7. <div id="speech">
  8.         <p>Fourscore and seven years ago</p>
  9. </div>

理论上应该是弹出多少px的,
但在IE 6下它是弹出auto??
有没有什么办法可以修正这个Bug??
  请各位帮帮我,谢谢了。。。

作者: 自然   发布时间: 2009-04-23

width() instead of css("width")

作者: shawphy   发布时间: 2009-04-23

哦,谢谢了,,

作者: 自然   发布时间: 2009-04-23

相关阅读 更多

热门下载

更多