首页 > Web开发 > 详细

2016 - 1 - 24 CSS初步

时间:2016-01-24 16:52:13      阅读:115      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!