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

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

WBOY
Release: 2016-06-24 11:30:37
Original
1140 people have browsed it

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;}

 

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template