由于您可以在CSS中的任何文本下面加下划线,如下所示:
h4 {
text-decoration: underline;
}
然后如何编辑绘制的‘线’,线上的 colored颜色 很容易指定为color: red
,但是如何编辑线的高度,即粗细呢?
由于您可以在CSS中的任何文本下面加下划线,如下所示:
h4 {
text-decoration: underline;
}
然后如何编辑绘制的‘线’,线上的 colored颜色 很容易指定为color: red
,但是如何编辑线的高度,即粗细呢?
以下是实现这一点的一种方法:
HTML:
<h4>This is a heading</h4>
<h4><u>This is another heading</u></h4>
css:
u {
text-decoration: none;
border-bottom: 10px solid black;
}
这里有一个例子:http://jsfiddle.net/AQ9rL/