昨天和一位朋友討論換線高度的問題。 今天對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