流浪法师技能 传送:CSS文件中如何定义水平线的宽度

来源:百度文库 编辑:高考问答 时间:2024/04/20 20:50:57
<hr size=1px> 写在CSS文件中怎么写呢?

<html>
<head>
<style>
hr{width:1;height:100;color:#ff9966}
.h1{width:1;height:200;color:#ff0000}
</style>
</head>
<body>
<hr>
<hr class="h1">
</body>
</html>

width可以设置,height在IE中最高显示100px

height:1px吧