yfProgramer
学习不是应付生活,应付答案。是一种追求,一个理想。
posts - 27,comments - 40,views - 76万

随笔分类 -  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 阅读(217) 评论(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 阅读(299) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示