九乡新闻网
银行卡解码器视频:CSS 精华
来源:百度文库 编辑:
九乡新闻网
时间:2024/10/06 04:06:16
DIV 上下居中用 line-height
Html代码
垂直居中
例子1:
Html代码
AgiCRM
垂直居中
清除浏览器默认样式
1.用其他有名的库来清除(如:YUI)
2.自已清除
如:
* {
padding: 0;
margin:0;
}
让A支持所有浏览器
Html代码
捷道数码
Google
例子2:
Html代码
AgiCRM
捷道数码
Google
A 伪类定义顺序记忆法
LoVe:HAte(爱恨)
IMG vertical-align
vertical-align : auto | baseline | sub | super | top | text-top | middle | bottom | text-bottom | length
baseline :默认值。将支持 valign 特性的对象的内容与基线对齐
sub 垂直对齐文本的下标
super 垂直对齐文本的上标
top : 将支持 valign 特性的对象的内容对象顶端对齐
text-top : 将支持 valign 特性的对象的文本与对象顶端对齐
middle : 将支持 valign 特性的对象的内容与对象中部对齐
bottom : 将支持 valign 特性的对象的内容与对象底端对齐
text-bottom : 将支持 valign 特性的对象的文本与对象顶端对齐
length : 由浮点数字和单位标识符组成的长度值 | 百分数。可为负数。定义由基线算起的偏移量。基线对于数值来说为0,对于百分数来说就是0%。请参阅 长度单位 。目前IE尚未实现此参数
例子3:
Html代码
AgiCRM
正常
有图片有字
垂直 Margin 叠加
例子4:
Html代码
AgiCRM
div1
div2
span1
span2
Background position
例子5:
Html代码
AgiCRM
20px
20%
20%
Float 占地问题
1.父子TAG都Float以父能包含子
Html代码
child
child
child
例子6:
Html代码
AgiCRM
child
child
child
2.最后一个子TAG后加一clear的无语义tag
Html代码
lt;div class="parent">
child
child
child
例子7:
Html代码
AgiCRM
child
child
child
CSS 精华
CSS
css
CSS教程
CSS属性.
常用CSS
CSS教程
css兼容性问题
CSS精要
CSS TEST
css兼容
CSS滤镜
DIV+CSS
CSS简介
CSS十大密技
CSS圆角边框纯CSS制作-CSS布局实例
CSS简介-CSS教程 - 布啦布啦 BlaBla.cn
CSS新手整理的CSS技巧/
CSS中文排版心得
常用css 样式
css图片修饰
常用CSS特效文字
精美图片CSS滤镜
css中的选择器