首页 > Web开发 > 详细

HTML CSS

时间:2015-10-21 22:37:43      阅读:340      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!