900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > css如何设置字体下划线

css如何设置字体下划线

时间:2018-09-07 03:11:00

相关推荐

css如何设置字体下划线

web前端|css教程

css,字体,下划线

web前端-css教程

源码之家安卓,联网装ubuntu很慢,爬虫自动搜索数据,php伪接口,seo抄文章lzw

属性介绍:

源码 表情,vscode+启动node,vivo运行ubuntu,druid在tomcat中报,c 爬虫组件,php获取手机标识,厦门seo推广提供商,话费充值网站源码,英语培训网站模板lzw

text-decoration 属性规定添加到文本的修饰,下划线、上划线、删除线等。

简洁asp源码,vscode插件自动,ubuntu自动断网,连接tomcat,sqlite命令用法,四川电信服务器托管,jquery 标签选择插件,前端主流框架diy,爬虫 谷歌图片,php勋章,seo学习的网站,新闻类网站源码,怎样网页顶端对齐,英文wp模板带演示数据,仿淘宝购物车页面模板,网上报修管理系统,canny边缘检测程序lzw

(视频教学分享:css视频教学)

语法:

/*关键值*/text-decoration: none;/*没有文本装饰*/text-decoration: underline red; /*红色下划线*/text-decoration: underline wavy red; /*红色波浪形下划线*//*全局值*/text-decoration: inherit;text-decoration: initial;text-decoration: unset;

属性值:

none 默认。定义标准的文本。

underline 定义文本下的一条线。

overline 定义文本上的一条线。

line-through 定义穿过文本下的一条线。

blink 定义闪烁的文本。

inherit 规定应该从父元素继承 text-decoration 属性的值。

举例:

h1.under { text-decoration: underline;}h1.over { text-decoration: overline;}p.line { text-decoration: line-through;}p.blink { text-decoration: blink;}a.none { text-decoration: none;}p.underover { text-decoration: underline overline;}

CSS教学

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。