Blogger Information
Blog 6
fans 0
comment 0
visits 4192
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
HTML+CSS基础了解
若水的博客
Original
513 people have browsed it

一、CSS简介:

CSS:用来表现HTML或者XML等样式文件的语言

二、样式表的创建

内部样式表,外部样式表,行内样式表(内嵌样式表)

创建内部样式表的语法:

<steyle type="text/css">

                                                        /*css语句写这中间*/

</style>

说明:用teyle袁术来创建样式表时,必须将该标记写在文件头部,<head></head>之间

三、CSS的组成和语法

例:body      {background:#069;}

           ↓                ↓                  ↓     

        选择符    {属性:           属性值;}

                                     ↓

                                    声明    


CSS的组成:选择器(选择符),声明

CSS语法:选择符{属性:属性值;}

说明:1)属性和数值值之间:分隔,声明必须放在花括号内。

           2)一个选择符可以有多个属性,属性和属性之间用分号;隔开。

           3)一个属性可以有多个属性值,属性值和属性值之间空格隔开。



Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post