摘要: 主要有三种:HTML选择器、class选择器、ID选择器1.HTML选择器 1 <html> 2 <head> 3 <style type="text/css"> 4 p{ 5 color:red; 6 font-family:System 7 } 8 </style> 9 </head>10 11 <body>12 <p>这里应用样式表</p> 13 </body>14 </html>也就是说选择器是HTML标签2.class选择器 1 <html 阅读全文
posted @ 2012-02-09 16:11 lihui_yy 阅读(2574) 评论(0) 推荐(0) 编辑
摘要: 1.内联样式表使用内联样式表时,建议在网页的<head></head>标签之间增加一个<meta>标签1 <html>2 <head>3 <meta http-equiv="content-type" content="text/css; charset=UTF-8">4 </head>5 <body>6 <p>这里没有应用样式表</p>7 <p style="color:red; font-family:System; 阅读全文
posted @ 2012-02-09 11:30 lihui_yy 阅读(308) 评论(0) 推荐(1) 编辑