在CSS中使用颜色名称来指定颜色

admin 技术教程评论293

CSS 颜色名

在 CSS 中,可以使用颜色名称来指定颜色:

在CSS中使用颜色名称来指定颜色文章源自小虫博客-https://www.xczi.cn/jishu/231.html

 文章源自小虫博客-https://www.xczi.cn/jishu/231.html

番茄色

橙色

道奇蓝

中海绿色

灰色

板岩蓝

紫色

浅灰

<h1 style="background-color:Tomato;">番茄色</h1>
<h1 style="background-color:Orange;">橙色</h1>
<h1 style="background-color:DodgerBlue;">道奇蓝</h1>
<h1 style="background-color:MediumSeaGreen;">中海绿色</h1>
<h1 style="background-color:Gray;">灰色</h1>
<h1 style="background-color:SlateBlue;">板岩蓝</h1>
<h1 style="background-color:Violet;">紫色</h1>
<h1 style="background-color:LightGray;">浅灰</h1>

 文章源自小虫博客-https://www.xczi.cn/jishu/231.html 文章源自小虫博客-https://www.xczi.cn/jishu/231.html

admin


  • ·版权声明·



    1、本站文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系客服进行删除处理。
    2、本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责。
    3、如有侵权请邮件admin@xczi.cn与我们联系处理。敬请谅解!


  • 转载请务必保留本文链接:在CSS中使用颜色名称来指定颜色-https://www.xczi.cn/jishu/231.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: