Chinaunix首页 | 论坛 | 博客
  • 博客访问: 381130
  • 博文数量: 104
  • 博客积分: 652
  • 博客等级: 上士
  • 技术积分: 1477
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-04 15:20
文章分类

全部博文(104)

文章存档

2019年(1)

2015年(8)

2014年(6)

2013年(59)

2012年(30)

分类: Html/Css

2012-12-14 14:26:04

边框圆角:“border-radius:5px”



CSS3 box-shadow 属性

box-shadow: h-shadow v-shadow blur spread color inset;

注释:box-shadow 向框添加一个或多个阴影。该属性是由逗号分隔的阴影列表,每个阴影由 2-4 个长度值、可选的颜色值以及可选的 inset 关键词来规定。省略长度的值是 0。

描述 测试
h-shadow 必需。水平阴影的位置。允许负值。
v-shadow 必需。垂直阴影的位置。允许负值。
blur 可选。模糊距离。
spread 可选。阴影的尺寸。
color 可选。阴影的颜色。请参阅 CSS 颜色值。
inset 可选。将外部阴影 (outset) 改为内部阴影。



文本框触发效果:
*:focus{
background:#CFC;
font-weight:bold;
color:#906;
}

文本首字母大写:
p:first-letter{
font-size:200%;
}

连接的LVHA顺序

声明标签的类:
p .one {font-size:xx-small;}    错
p.one {font-size:xx-small;}    对

字体变形
font-variant  small-caps | normal |inherit

水平对齐:
text-align: left | center | right | justify | inhert

垂直对齐:
vertical-align: baseline | sub | super | top | text-top | middle | bottom | text-bottom | | | inhert

字间隔:word-spacing

文本转换:text-transform: upercase | lowercase | capitalize | none | inherit

文本装饰:text-decoration: underline | overline | line-through | blink

水平格式化的“7大属性”中,只有width和margin可以设置为auto,其余的属性必须设置为特定的值或者默认
阅读(816) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~