<head runat="server">
    <title></title>
    <style type="text/css">
        #btn1{ width: 330px;}
        #btn2{width: 400px;}
        #btn3{width: 100px;}
    </style>
</head>
<body>
    <form + styleName));
            }
        }
        //只支持ff
        function FF() {
            alert(document.defaultView.getComputedStyle(document.getElementById('btn2'), null).width);
        }
        //只支持ie
        function ie() {
            alert(document.getElementById('btn3').currentStyle.width);
        }


    </script>

    </form>

 经过分析,在ie和ff下的用法是不同的!

 

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2021-08-30
  • 2021-12-01
  • 2022-12-23
  • 2021-12-27
  • 2021-08-09
  • 2021-09-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-11-19
相关资源
相似解决方案