text-decoration属性作用和方法

  1. text-decoration-line(注释文本添加一条装饰线):none(文本中没有线条)、

                                         underline(文本的下方显示一条线)、

                                         overline(文本的上方将显示一条线)、

                                         line-through(文本的中间将显示一条线)

  1. text-decoration-color(装饰线添加颜色): #000000
  2. text-decoration-thickness(装饰线粗细):0.1em;
  3. text-underline-offset(装饰线向下移动): 0.6em;
  4. transition-duration(完成过渡效果需要多少秒):0.5s
  5. text-decoration-style(装饰线的形态):solid(单线)、double(双线)、dotted(点状线)、dashed(虚线)、wavy(波浪线)

 

posted @ 2021-05-27 16:40  猴猴手记  阅读(1917)  评论(0编辑  收藏  举报
浏览器标题切换
浏览器标题切换end