关于CSS3的代码总结(部分)】的更多相关文章

原文:几个常用的CSS3样式代码以及不兼容的解决办法 border-radius实现圆角效果 CSS3代码: -webkit-border-radius:10px; -moz-border-radius:10px; border-radius:10px; background-color:#666; width:200px;height:100px; Firefox,Chrome Google,Safari等浏览器的显示效果如图0-0: 图0-0 但是IE这个异类不支持CSS3的这个属性,在IE…
div+css3普通圆角代码示例 <style type="text/css"> #round { width:200px; height:100px; margin:0px auto; border: 5px solid #000; border-radius:15px; } </style> <div id="round"></div> 以上代码可直接复制到HTML文件中运行. 运行后的效果图 div+css3普通…
1)全屏背景 body { background: url(../img/pic.jpg) no-repeat center center fixed; background-size: cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; } 2)块元素居中 <div class="mc"> Hello Wolrd! </div&g…
1.圆角 .rd10{-moz-border-radius: 10px;-webkit-border-radius: 10px;border-radius: 10px;-khtml-border-radius: 10px; -ms-border-radius:10px;} .rd5{-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px; -khtml-border-radius: 5px;-ms-border-…
.Aclose { -webkit-transition-property: all; -webkit-transition-duration: .3s; -moz-transition-property: all; -moz-transition-duration: .3s; transition-property: all; transition-duration: .3s; } .Aclose:hover { -moz-transform: rotate(-180deg); -o-tran…
1. 构造样式表:selector{ Property:value; Property:value; } Selector是需要更改样式的元素,property为css属性的名称,value应用的哪种格式 2. /*    注释   */ 3. 当规则发生冲突时,服务器优先选择特殊性强的:靠后出现的:带有!important的 4. CSS属性的值可分为:继承值(在value处输入inherit),预定义值(left,right,none),长度或者百分数,纯数字,颜色 5. CSS颜色分为:R…
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title></title> <script src="/Scripts/jquery-1.10.2.min.js">…
1. 渐变:.gradient{ width:300px; height:150px; filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=0); -ms-filter:alpha(opa…
1.三角 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>…
效果:http://hovertree.com/texiao/css3/19/ 代码如下: <!doctype html> <!-- W3C规范 --> <html lang="zh"> <!-- 声明 --> <head> <meta charset="UTF-8"> <!-- 声明当前页面的三要素 --> <title>CSS3菜单仿小米官网菜单 - 何问起</…