随笔 - 390  文章 - 51  评论 - 166  阅读 - 199万

随笔分类 -  CSS3

CSS3之文字与文体相关样式
摘要:1. 给文字添加阴影——text-shadow属性 text-shadow:length length length color(其中,前面三个length分别指阴影离开文字的横方向、阴影离开文字的纵方向和阴影的模糊半径,color指阴影的颜色)。而且可以指定多个阴影,例 text-shadow:10px 10px #f39800 , 40px 35px #fff100 , 70px 60px #c0ff00; 2. 让文本自动换行——word-break属性 <style type="text/css"> div{ word-break:keep-all; . 阅读全文
posted @ 2012-08-13 11:24 lee0oo0 阅读(486) 评论(0) 推荐(0) 编辑
CSS3之使用选择器在页面中插入内容
摘要:1. 使用选择器来插入内容:例, h2:before{ content:‘COLUMN’; color:white; background-color:orange; padding:1px 5px;} 2. 指定个别元素不进行插入:例, h2.sample.before{ content:none;} --表示h2中class为sample的不插入内容-- 3. 使用选择器插入图像:例, h2:before{ content:url(... 阅读全文
posted @ 2012-08-13 11:16 lee0oo0 阅读(926) 评论(0) 推荐(0) 编辑
CSS3之选择器
摘要:1. 属性选择器:[att*=val] [att^=val] [att$=val] [id*=section1]{background-color:yellow}表示id中拥有section1的背景颜色都设为黄色 [id^=section1]{background-color:red}表示id中开头为section1的背景颜色都设为红色 [id$=section1]{background-color:blue}表示id中结尾为section1的背景颜色都设为蓝色 注意:如果[id$=\-1]这里的“\”表示转义字符 2. 伪元素选择器:first-line first-lett... 阅读全文
posted @ 2012-08-09 15:39 lee0oo0 阅读(6275) 评论(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

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