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

HTML CSS

时间:2015-10-21 22:39:48      阅读:268      评论:0      收藏:0      [点我收藏+]

标签:

/*  注释  */

 

内联样式表

<p style="属性:值 ">内联样式表</P>

 

内嵌样式表

<style type="text/css">

p  目标

{

  属性:值

}

</style>

 

外部样式表 

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

在ASS 写代码

p  目标

{

  属性:值

}

 

标记选择器

<style type="text/css" >

p  目标

{

  属性:值

}

</style>

类别选择器

<style type="text/css" >

.zidingyi  定义样式

{

  属性:值

}

</style>

<p class="zidingyi">class选择器</p>

 

Id选择器

<style type="text/css" >

#1  目标

{

  属性:值

}

</style>

<p id="1">class选择器</p>

 

复合选择器

<style type="text/css" >

h1,h2  并列     p b 嵌套<p>嵌套<b>使用ass</b>的方法</p> 

{

  属性:值

}

</style>

 

样式属性

font-family:"字体";   字体

font-size:12px;    大小

color:         颜色

font-weight:bold;      文字粗细  bold加粗  normal正常

font-style:italic;      文字倾斜   italic倾斜  normal正常

font-decoration:underline;    下划线  overline  上划线  line-through  删除线

text-transform:capitalize    单词首字母大写  uppercase全部大写  lowercase全部小写

 

 

HTML CSS

标签:

原文地址:http://www.cnblogs.com/duan594939295/p/4899224.html

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