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

css样式

时间:2015-09-08 16:40:14      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

css引用方法:

1,直接在div写<style>

2,在html的head中,写<sytle>#样式名</style>,在div中,用id引用到样式名。

3,在html的head中,写<style>.样式名</style>,在div中,用class引用样式名。

4,用直接引用.css文件中的样式。即:

<link href="css/tianyi.css" rel="stylesheet" type="text/css" />   


css样式

标签:

原文地址:http://www.cnblogs.com/zhouguoha/p/4792165.html

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