码迷,mamicode.com
首页 > Web开发 > 详细

2016 - 1 - 24 CSS初步

时间:2016-01-24 16:55:07      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

1.The difference between CSS and HTML

    HTML document is that it specities the content of the page. And the CSS document aims to specity the  way the content is displayed.

 

2.Many HTML pages one CSS styleshreet

   So we can make the code  in every html document‘s head like that :

    <head>
        <title>This is my first page !</title>
        <link rel = "stylesheet"
              type = "text/css"
              href = "styles.css"
        />
    </head>

 

3.How to use the css document

body{
    background : green;
    color: white;
}
a{
    color: yellow;
}

 the body means all page‘s body style, and the ‘a‘ means a tag get yellow color !

 

4.How to use css control the fonts 

 1. The threen groups :

   1.1 Sans-serif:   sans meands out !

:技术分享

 

   1.2 Serif

 技术分享

   

   1.3 Monos paced: Always use when u want show some code examples

技术分享  

 

2016 - 1 - 24 CSS初步

标签:

原文地址:http://www.cnblogs.com/BJTUzhengli/p/5155255.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!