CSS教程 text-decoration属性的使用

2025-03-26 21:41:12

1、新建一个text-decoration属性的使用.html 文件,如图所示:

CSS教程 text-decoration属性的使用

2、输入HTML5的结构代码,将title标签里面的内容修改成:text-decoration属性的使用,如图所示:

CSS教程 text-decoration属性的使用

3、输入div标签,并且设置其width和height,如图所示:

CSS教程 text-decoration属性的使用

4、text-decoration的属性:1)添加下划线(underline),如图所示:

CSS教程 text-decoration属性的使用

5、2)添加中划线(line-through),如图所示:

CSS教程 text-decoration属性的使用

6、3)添加上划线(overline),如图所示:

CSS教程 text-decoration属性的使用
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢