如何在HTML中创建垂直线 [英] How to make a vertical line in HTML
本文介绍了如何在HTML中创建垂直线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用HTML制作垂直线?
How do you make a vertical line using HTML?
推荐答案
将< div&
Put a <div>
around the markup where you want the line to appear to next, and use CSS to style it:
-lang =jsdata-hide =falsedata-console =truedata-babel =false>
.verticalLine {
border-left: thick solid #ff0000;
}
<div class="verticalLine">
some other content
</div>
这篇关于如何在HTML中创建垂直线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文