Css 知识点

1:background-position

加之前:
background: url("../images/nav-bg.png") repeat-y scroll top left #e3e5e7;
 background-position: initial initial;
 background-repeat: initial;

QQ截图20140425112541

加之后:

background: url("../images/nav-bg.png") repeat-y scroll top left #e3e5e7;

background-position: initial initial;

background-repeat: initial initial;

QQ截图20140425112515

 

2:阴影图片(结合background和padding-bottom)

加之前:

background: url("../images/shadow-bottom.png") repeat-x scroll bottom left transparent;
position: relative;
z-index: 0;

QQ截图20140425113109

加之后:

background: url("../images/shadow-bottom.png") repeat-x scroll bottom left transparent;
position: relative;
z-index: 0;
padding-bottom: 14px;

 QQ截图20140425113146

 

2:z-index(dom层叠)

加之前:

z-index: 30;

QQ截图20140425113347

加之后:

z-index: 0;

QQ截图20140425113401

posted @ 2014-04-25 11:35  Seaurl  阅读(170)  评论(0编辑  收藏  举报