61,128
社区成员




<!doctype>
<html>
<head>
<style>
</style>
</head>
<body>
<input type="text" value="text" id="input"/>
<script>
var input = document.getElementById('input'),
input_style = window.getComputedStyle ? window.getComputedStyle(input, null) : input.currentStyle;
alert(input_style.display);
</script>
</body>
</html>
在其他浏览器中,input的display=inline-block;而在firefox中却是inline。。不过又有一个疑问了,在ie6不支持inline-block,谁手头上有ie6能帮忙测下么?