<style>
*{margin:0; padding:0}
#test1{ background:#ff0000; height:110px; overflow:hidden}
#test1 li{ list-style:none; }
#test2{ background:#ffff00; }
</style>
</head>
<body>
<div ></li>
</ul></div><div style="clear:both;"></div>
<div ></li>
</ul></div><div style="clear:both;"></div>
<div><script>
document.write("图层一的高度是"+document.getElementById("test1").offsetHeight);
document.write("--------图层一的高度是"+document.getElementById("test2").offsetHeight);
</script></div>

相关文章:

  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-01-11
  • 2021-06-23
猜你喜欢
  • 2021-10-19
  • 2022-12-23
  • 2021-12-01
  • 2022-02-08
  • 2022-01-07
  • 2021-11-24
  • 2021-06-06
相关资源
相似解决方案