昨天和一位朋友讨论换线高度的问题。 今天对CSS的documentation搜索说:如何改变线条的穿透高度
The HTML Strikethrough Element (<s>) renders text with a strikethrough, or a line through it.
Use the <s> element to represent things that are no longer relevant or no longer accurate.
However, <s> is not appropriate when indicating document edits;
for that, use the <del> and <ins> elements, as appropriate.
而且似乎<s>
接受CSS的所有引用,但对高度不起作用。
CSS:
s {
color: red;
height: 120px
}
HTML:
<br /><br />
<s >Strikethrough</s>
还有一个更简单demo on JSFIDDLE,你看到没有改变行的高度....
有是另一种解决方案,或者我错了CSS?
EXPLAIN WITH IMAGE
@Harry已经读过这个问题,并没有说行的高度。 – 2014-09-10 08:43:39
哦,好的。在这种情况下,Hashem的答案是否能解决您的问题?如果不是的话,你能否澄清一下你正在寻找的身高? – Harry 2014-09-10 08:46:36
我想改变线条上方的线的高度。 – 2014-09-10 08:50:25