【发布时间】:2019-12-01 10:02:40
【问题描述】:
用下一个样式模拟-行很简单:
color: red;
border-bottom: 3px dashed; // 3px - just for example, 2.5 also looks fine.
但我不知道如何使用+ 符号实现下划线。
其实我知道background-image是可以的,但是如果文字太长就不行了。
如果有任何帮助,我将不胜感激。提前谢谢你。
统一更新: 简单的代码 sn-p 玩:
<main>
<h1>Here goes some heading <span class="deleted">and this is deleted</span></h1>
<p>And here goes more text. <span class="added">This was inserted.</span> More text <span class="deleted">This was deleted</span></p>
</main>
【问题讨论】:
-
你能把html代码发给我吗?
-
我认为您需要一些
JavaScript才能完成此操作。 -
@ths 看到第一个答案,没有任何 JS 并且像魅力一样工作!
标签: html css underline text-decorations