yfProgramer
学习不是应付生活,应付答案。是一种追求,一个理想。

随笔分类 -  CSS

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 阅读(226) 评论(0) 推荐(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 阅读(303) 评论(0) 推荐(0)