-1

我的 html 中有一个文本层,其颜色需要保持透明。我想在文本中添加下划线/删除线装饰。由于文本层是透明的,我不能使用文本装饰,因为它不会显示。对于下划线,我使用了这个:

node.style.borderBottom ='0.2rem solid black';

但我想不出任何其他替代方案。有没有办法在不使用 text-decoration 属性的情况下插入 line-through ?

4

0 回答 0