Home >Web Front-end >HTML Tutorial >(原)前端知识杂烩_html/css_WEB-ITnose

(原)前端知识杂烩_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:30:371133browse

1. css hack

1  .pad{
2      padding: 17px 0 0 17px;    /*  普通写法  */  
3      *padding: 17px 0 0 17px;   /*  *为IE7   *+html css()为IE7  */
4      _padding: 17px 0 0 17px;    /*   _为IE6  *html css()为IE6  */

5  } 

 

2. css 设置圆角

1  .round{
2      -moz-border-radius:  100px;
3      -webkit-border-radius:  100px;
4       border-radius: 100px;     

5 }

 

3. css  盒子阴影   (x,y,阴影模糊度,阴影颜色)

 .shadow{-moz-box-shadow: 3px 3px 4px #fff; -webkit-box-shadow: 3px 3px 4px #fff; box-shadow: 3px 3px 4px #fff;}

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn