您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. 元素未显示设置width/height时IE中使用currentStyle获取为auto

  2. 元素未显示设置width/height时IE中无法使用currentStyle获取,默认获取值为auto,需要的朋友可以参考下
  3. 所属分类:其它

    • 发布日期:2020-09-04
    • 文件大小:27648
    • 提供者:weixin_38550137
  1. 元素未显示设置width/height时IE中使用currentStyle获取为auto

  2. 我们知道获取元素的实际宽高在IE中可以使用currentStyle属性。但如果没有显示的去设置元素的宽高,那么使用该属性将获取不到,获取的值为auto。如下 代码如下: abcd [removed] var div = document.getElementsByTagName(‘div’)[0]; alert(div.currentStyle.width); alert(div.currentStyle.height); [removed] IE6/7/8/9中输出的都是auto。如果显示
  3. 所属分类:其它

    • 发布日期:2020-11-30
    • 文件大小:25600
    • 提供者:weixin_38744207