css选择器
摘要:一:css选择器 1) 标记选择器 <style type="text/css"> h1{ color:red; font-size:25px; } </style> 选中html标记中的所有h1标记.将所有h1标记的颜色设置为red,字体大小为:25px;2) 类别选择器 .className { color:red; font-size:25px; } <body> <p class="className">class选中器</p> </body>3) ID选择器 <sty
阅读全文
posted @
2011-03-24 08:54
yfProgramer
阅读(217)
推荐(0) 编辑
页面中如何使用css
摘要:1) 行内样式 通style属性实现 <p style="color:#0000ff;font-size:20px;text-decoration:underling;">内容</p> 2) 内嵌样式 通过<style type="text/css"></style>引入 <head> <style type="text/css"> p{ xtlor:#0000ff; font-size:20px; ... } </style> </head&g
阅读全文
posted @
2011-03-24 08:51
yfProgramer
阅读(299)
推荐(0) 编辑