08.CSS轮廓

2017-06-02  本文已影响0人  Lv_0
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <style type="text/css">
            p{
                border: 3px green solid;
                outline: purple double thick;
            }
        </style>
    </head>
    <body>
        <p><b>注释:</b>只有在规定了 !DOCTYPE 时,Internet Explorer 8 (以及更高版本) 才支持 outline 属性。</p>
    </body>
</html>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1.outline属性,常用于突出显示;
2.outline-color:设置轮廓颜色;
3.outline-style:设置轮廓样式;
4.outline-width:设置轮廓宽度;
5.简写语法 
  outline: color style width
运行图片
上一篇 下一篇

猜你喜欢

热点阅读