横线是hr 如何让横线和竖线差不多粗细
<div style="float:left;margin-left:80px;margin-top:-9px" id="Layer1" style="width:1px; height:21800px; z-index:1; background-color: #0000FF;layer-background-color: #000000; border: 1px none #000000; left: 143px; top: 263px"></div>这是竖线的代码
需要准备的材料分别有:电脑、浏览器、html编辑器。
1、首先,打开html编辑器,新建html文件,例如:index.html,复制问题基础代码。
2、在index.html中的<body>标签中,加入html代码:<div style="width:1024px; height:1px; background-color: #0000FF; border: 1px none #000000;"></div>。
3、浏览器运行index.html页面,此时横线和竖向是差不多粗细的。