您现在的位置:首页 >> 前端 >> 内容

HTML基础学习-13-颜色值属性定义

时间:2017/6/15 9:23:00 点击:

  核心提示:HTML基础学习-13- 颜色值属性定义!DOCTYPEhtml!--颜色值设定color:greencolor:#ff6600;可以简写#f60分组重复的才可以简写红 绿 蓝 color:rgb(2...
HTML基础学习-13- 颜色值属性定义
<!DOCTYPE  html>
<!--
  颜色值设定
  color:green
  color:#ff6600;可以简写  #f60  分组重复的才可以简写  红 绿 蓝
   color:rgb(255,255,255);红绿蓝0~255取值范围
   color:rgb(255,255,255,0) 红绿蓝以及透明度



     color:green;
     color:rgb(255,0,255);
      color:#ff6600;
      color:rgba(255,0,0,0.5); a取值 0~1
-->

<head>
    <title>css常见属性</title>
    <meta charset="utf-8">
    <style type = "text/css">
          p{
            color:rgba(255,0,0,0.5);

          }
    </style>
    </head>

<body>

</body>
    <p class>


    </p>
    <p>
     颜色值设定
    </p>


</html>

 

Tags:HT TM ML L基 
作者:网络 来源:不详