CSS基础——了解CSS

2017-04-14  本文已影响0人  WYH_9ceb

经过一段时间的学习,已经把html大部分知识撸了一遍,对于开发也算是入了个门,下一阶段的目标是学习CSS,接下来就开始初步了解CSS。

CSS格式

    <style type="text/css">
        h1{
            text-align: center;
            color: green;
            font-weight: bold;
        }
        p{
            text-align: center;
            color: red;
        }
    </style>

CSS文字属性

font-style: italic;
font-weight: bold;
font-size: 30px;
font-family: "微软雅黑";
font-family: "字体1","备选方案1",…;
font:style weight size family;

文本属性

text-decoration: underline;
text-align: center;
text-indent: 2em;

颜色属性

color:值;
上一篇 下一篇

猜你喜欢

热点阅读