摘要: 文字样式字体;字体是通过font-family属性控制的,字体间用逗号隔开。通常见到的"sans-self"和"serif"不是单个字体的名称,而是一类字体的统称文字大小:font-size。该属性的值可以是相对和绝对大小。相对大小(px,%,em)px与显示器分辨率有关,后两个都是相对于父标记而言的比例。文字颜色:color。文字粗细:font-weight斜体:font-style。font-style:normal;默认值。浏览器显示一个标准的字体样式。font-style:italic;浏览器会显示一个斜体的字体样式。 font-style:ob 阅读全文
posted @ 2013-02-22 19:35 BaronYan 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 选择器标记选择器1 h1{color:red;}类别选择器1 .class{color:red;}2 h3.class{color:red;}//<h3 class="class"></h3>ID选择器1 #id{color:red;}选择器声明集体声明(用口号隔开)1 <style type="text/css">2 <!--3 h1,h2,h3{color:red;}4 -->5 </style>6 7 *{color:red}选择器的嵌套1 <style type="tex 阅读全文
posted @ 2013-02-22 18:04 BaronYan 阅读(197) 评论(0) 推荐(0) 编辑
摘要: CSS:Cascading Style Sheet 层叠样式表行内样式 内嵌式 链接式 导入式行内样式<p style="color:#f5f5f5;">正文内容</p>内嵌式<style type="text/css"><!--p{color:red;}--></style>链接式1 <link href="1.css" type="text/css" rel="stylesheet" />导入式1 @import url 阅读全文
posted @ 2013-02-22 17:48 BaronYan 阅读(124) 评论(0) 推荐(0) 编辑