CSS怎么给数字中间加一横线

1、给这个数字添加css属性:text-decoration: line-through;2、给这个数字添加标签:del。如:9999。text-decoration详解:text-decoration : none || underline || blink || overline || line-through none :  无装饰。text-decoration:none 无装饰,通常对html下划线标签去掉下划线样式。blink :  闪...
CSS怎么给数字中间加一横线
2种方法:
1、给这个数字添加css属性:text-decoration: line-through;
2、给这个数字添加标签:del。如:<del>9999</del>。

text-decoration详解:
text-decoration : none || underline || blink || overline || line-through
none :  无装饰。text-decoration:none 无装饰,通常对html下划线标签去掉下划线样式。
blink :  闪烁
underline :  下划线。text-decoration:underline 下划线样式。
line-through :  贯穿线。text-decoration:line-through 删除线样式-贯穿线样式。
overline :  上划线。text-decoration:overline 上划线样式。
扩展资料:
我们进行对3个盒子对象分别设置对象内文字下划线、文字删除线样式、字体上划线样式。

1、css代码片段:
.divcss5{text-decoration:underline}
.divcss5_1{text-decoration:line-through}
.divcss5_2{text-decoration:overline}
2、html代码片段:
<div class="divcss5">我被加下划线</div>
<div class="divcss5_1">我被加贯穿删除线</div>
<div class="divcss5_2">我被加上划线</div>
2022-11-16
mengvlog 阅读 11 次 更新于 2025-06-20 01:06:57 我来答关注问题0
  •  赤月说网站 CSS怎么给数字中间加一横线

    1、给这个数字添加css属性:text-decoration: line-through;2、给这个数字添加标签:del。如:9999。text-decoration详解:text-decoration : none || underline || blink || overline || line-through none :  无装饰。text-decoration:none 无装饰,通常对html下划线标签去掉下划线样式。blink :  闪...

  •  chatbingyun 怎么在数字中间加一条横线

    在数字中间加一条横线的方法如下:打开word,选中你要加横线的数字,点击“字体”,然后选择“删除线”即可。删除线的图标是abc中间有一天横线。

  •  文暄生活科普 字母中间有一横怎么弄的

    在办公软件中,想要在字母或文字中间插入一条横线,可以通过设置删除线来实现。比如,如果你正在使用Office或WPS这类的文档处理软件,首先需要选中你想要添加删除线的文字。然后,右键点击选中的文字,打开字体设置选项,在字体设置中找到“删除线”这一选项,并勾选上它。最后,点击确定按钮,这样选中的文字...

  • anonymous 微信小程序中怎么设置原价与打折后的价格,打折后原价数字上会加上一横线

    这个你用css设置就可以 打折后的价格,打折后原价数字上会加上一横线 可以使用css的 text-decoration:line-through 例如给一个文字加线的 酷呢嗯 css的例子 ku2n中的对小程序的text标签的html+css 原价:969元 css是:text{ text-decoration:line-through;width:200px;height:30px;l...

  •  深空见闻 〖100分〗电脑上面怎么把0中间多一个斜杠打出来???

    如果你是在设计软件或网页设计中,可以通过字体选择器选择合适的字体。例如,在Adobe Illustrator或Photoshop中,打开字符面板,选择合适的字体和样式,然后输入数字0,看看是否符合需求。如果在网页设计中,你可以在CSS中指定字体,如0。此外,你也可以通过一些在线字体生成器来定制字体,添加你想要的横线。这...

檬味博客在线解答立即免费咨询

CSS相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部