好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

html5如何设置文字颜色灰色

ht ML 5设置 文字颜色 灰色的方法:使用属性【text -s hadow】向文本设置阴影,语法为【object.style.textShadow=“2px 2px # ff0000”】。

本教程操作环境:windows7系统、html5版,DELL G3 电 脑。

html5设置文字颜色灰色的方法:

text-shadow 属性向文本设置阴影。

默认值: none

继承性: yes

版本: CSS3

语法:

object.style.textShadow=“2px 2px #ff0000”
<!DOCTY PE  HTML>
<html>
<head>
< ;m eta charset="utf-8">
<t IT le>文字阴影</title>
<style type="text/css">
p {
font-f ami ly:Verdana, Geneva, sans-serif;
 font-weight :bold;
font- Size: 36px;
color:#f90;
text-shadow:-5px -5px 3px #00f,
5px 5px 3px #333;/* 添加文字阴影 */
}
</style>
<body>
<p>阴影属性< br  />
  text-shadow</p>
</body>
</html>

相关学习推荐:html视频教程

以上就是html5如何设置文字颜色灰色的详细内容,更多请关注其它相关 文章 !

总结

以上是 为你收集整理的 html5如何设置文字颜色灰色 全部内容,希望文章能够帮你解决 html5如何设置文字颜色灰色 所遇到的问题。

如果觉得 网站内容还不错, 推荐好友。

查看更多关于html5如何设置文字颜色灰色的详细内容...

  阅读:19次