最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

csstext-decoration-style属性怎么用

来源:动视网 责编:小采 时间:2020-11-27 15:02:39
文档

csstext-decoration-style属性怎么用

csstext-decoration-style属性怎么用:css text-decoration-style属性用于规定线条如何显示,其语法是text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit。css text-decoration-style属性怎么用?定义和用法text-decoration-style
推荐度:
导读csstext-decoration-style属性怎么用:css text-decoration-style属性用于规定线条如何显示,其语法是text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit。css text-decoration-style属性怎么用?定义和用法text-decoration-style
 css text-decoration-style属性用于规定线条如何显示,其语法是text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit。

css text-decoration-style属性怎么用?

定义和用法

text-decoration-style 属性规定线条如何显示。

默认值: solid

继承: 否

可动画化: 否。

版本: CSS3

JavaScript 语法:

object.style.textDecorationStyle="wavy"

CSS 语法

text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit;

属性值

● solid 默认值。线条将显示为单线。

● double 线条将显示为双线。

● dotted 线条将显示为点状线。

● dashed 线条将显示为虚线。

● wavy 线条将显示为波浪线。

● initial 设置该属性为它的默认值。

● inherit 从父元素继承该属性。

实例

在段落的下方显示一条波浪线:

<!DOCTYPE html>
<html>
<head>
<style>
p
{
text-decoration: underline; 
text-decoration-style: wavy; 
-moz-text-decoration-style: wavy; /* 针对 Firefox 的代码 */
}
</style>
</head>
<body>
<p>
本实例中的段落文本下方会显示一条波浪线。</p>
<p><b>注意:</b>只有 Chrome 支持 text-decoration-style 属性。</p>
<p><b>注意:</b>Firefox 支持另一个可替代该属性的属性,即 -moz-text-decoration-style 属性。</p>
</body>
</html>

效果输出:

浏览器支持:几乎所有的主流浏览器都不支持 text-decoration-style 属性。Firefox 支持另一个可替代该属性的属性,即 -moz-text-decoration-style 属性。

文档

csstext-decoration-style属性怎么用

csstext-decoration-style属性怎么用:css text-decoration-style属性用于规定线条如何显示,其语法是text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit。css text-decoration-style属性怎么用?定义和用法text-decoration-style
推荐度:
标签: 使用 cs 属性
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top