方法一:最简单的方法,在.wxss文件加上
text-decoration-line: underline;
效果为
往往不能满足需求。
方法二:设置border,在.wxss文件加上
border-top:
1px
#111
dashed; 高度、颜色、虚线
border-bottom:
1px
#000
solid;
高度、颜色、实线
效果为