.greenbtn{
border:1px solid #690;
box-shadow:inset 0 1px 1px #fff,0 0 1px #fff inset;
color:#fff;
/* IE9 SVG */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzk5Y2MwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM3MmE2MDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, rgba(153,204,0,1) 0%, rgba(114,166,0,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(153,204,0,1)), color-stop(100%,rgba(114,166,0,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(153,204,0,1) 0%,rgba(114,166,0,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(153,204,0,1) 0%,rgba(114,166,0,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(153,204,0,1) 0%,rgba(114,166,0,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(153,204,0,1) 0%,rgba(114,166,0,1) 100%); /* W3C */
}
.greenbtn:hover{
color:#fff;
background:#85B900;
}
.redbtn{
border:1px solid #a40000;
box-shadow:inset 0 1px 1px #fff,0 0 1px #fff inset;
color:#fff;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmMzMzMyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNhNDAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, #ff3333 0%, #a40000 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff3333), color-stop(100%,#a40000)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ff3333 0%,#a40000 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ff3333 0%,#a40000 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ff3333 0%,#a40000 100%); /* IE10+ */
background: linear-gradient(top, #ff3333 0%,#a40000 100%); /* W3C */
}
.redbtn:hover{
color:#fff;
background:#D51C1C;
}
.lightbluebtn{
border:1px solid #196EBB;
box-shadow:inset 0 1px 1px #fff,0 0 1px #fff inset;
color:#fff;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwYjdlYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDllYzMiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, rgba(0,183,234,1) 0%, rgba(0,158,195,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,183,234,1)), color-stop(100%,rgba(0,158,195,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(0,183,234,1) 0%,rgba(0,158,195,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(0,183,234,1) 0%,rgba(0,158,195,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(0,183,234,1) 0%,rgba(0,158,195,1) 100%); /* IE10+ */
background: linear-gradient(top, rgba(0,183,234,1) 0%,rgba(0,158,195,1) 100%); /* W3C */
}
.lightbluebtn:hover{
color:#fff;
background:#00A9D4;
}
.darkbluebtn{
border:1px solid #146db5;
box-shadow:inset 0 1px 1px #fff,0 0 1px #fff inset;
color:#fff;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzg1YzZlZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9Ijk5JSIgc3RvcC1jb2xvcj0iIzMyODRjNyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
background: -moz-linear-gradient(top, rgba(133,198,237,1) 0%, rgba(50,132,199,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(133,198,237,1)), color-stop(100%,rgba(50,132,199,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(133,198,237,1) 0%,rgba(50,132,199,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(133,198,237,1) 0%,rgba(50,132,199,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(133,198,237,1) 0%,rgba(50,132,199,1) 100%); /* IE10+ */
background: linear-gradient(top, rgba(133,198,237,1) 0%,rgba(50,132,199,1) 100%); /* W3C */
}
.darkbluebtn:hover{
color:#fff;
background:#5DA7DB;
}
.orangebtn{
border:1px solid #b05903;
box-shadow:inset 0 1px 1px #fff,0 0 1px #fff inset;
color:#fff;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmY2MwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZjdlMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, #ffcc00 0%, #ff7e00 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffcc00), color-stop(100%,#ff7e00)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffcc00 0%,#ff7e00 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffcc00 0%,#ff7e00 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffcc00 0%,#ff7e00 100%); /* IE10+ */
background: linear-gradient(top, #ffcc00 0%,#ff7e00 100%); /* W3C */
}
.orangebtn:hover{
color:#fff;
background:#FF9E00;
}
.lightgreybtn{
border:1px solid #ccc;
color:#666;
box-shadow:inset 0 1px 1px #fff,0 0 1px #fff inset;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlNmU2ZTYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(230,230,230,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(230,230,230,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(230,230,230,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(230,230,230,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(230,230,230,1) 100%); /* IE10+ */
background: linear-gradient(top, rgba(255,255,255,1) 0%,rgba(230,230,230,1) 100%); /* W3C */
}
.lightgreybtn:hover{
background:#e6e6e6;
color:#666;
}
.darkgreybtn{
border:1px solid #848484;
color:#fff;
box-shadow:inset 0 1px 1px #fff,0 0 1px #fff inset;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2Q0ZDRkNCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNhMmEyYTIiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, rgba(212,212,212,1) 0%, rgba(162,162,162,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(212,212,212,1)), color-stop(100%,rgba(162,162,162,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(212,212,212,1) 0%,rgba(162,162,162,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(212,212,212,1) 0%,rgba(162,162,162,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(212,212,212,1) 0%,rgba(162,162,162,1) 100%); /* IE10+ */
background: linear-gradient(top, rgba(212,212,212,1) 0%,rgba(162,162,162,1) 100%); /* W3C */
}
.darkgreybtn:hover{
background:#C0BFBF;
color:#fff;
}
.blackbtn{
border:1px solid #4c4c4c;
box-shadow:inset 0 1px 1px #fff,0 0 1px #fff inset;
color:#fff;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSI2JSIgc3RvcC1jb2xvcj0iIzg4ODc4NyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9Ijk1JSIgc3RvcC1jb2xvcj0iIzJiMmIyYiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
background: -moz-linear-gradient(top, #888787 0%, #2b2b2b 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(6%,#888787), color-stop(100%,#2b2b2b)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #888787 0%,#2b2b2b 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #888787 0%,#2b2b2b 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #888787 0%,#2b2b2b 100%); /* IE10+ */
background: linear-gradient(top, #888787 0%,#2b2b2b 100%); /* W3C */
}
.blackbtn:hover{
background:#555;
color:#fff;
}
/* btn */
.btn,.small-btn,.large-btn{
cursor: pointer;
display:inline-block;*display:inline;*zoom:1;
}
.btn{
padding:0 16px;
line-height:30px;
font-size:14px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
}
.small-btn{
line-height:20px;
padding:0 5px;
font-size:12px;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
}
.large-btn{
line-height:40px;
font-size:18px;
padding:0 40px;
-moz-border-radius:8px;
-webkit-border-radius:8px;
border-radius:8px;
}
a.btn:hover,
a.small-btn:hover,
a.large-btn:hover{
text-decoration:none;
}
.inputbtn,.small-inputbtn,.large-inputbtn{
display:inline-block;*display:inline;*zoom:1;
cursor: pointer;
text-align:center;
overflow:visible;
}
.inputbtn{
padding:0 16px;
height:30px;
font-size:14px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
}
.small-inputbtn{
padding:0 5px;
height:22px;
font-size:12px;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
}
.large-inputbtn{
padding:0 40px;
height:40px;
font-size:18px;
-moz-border-radius:8px;
-webkit-border-radius:8px;
border-radius:8px;
}
:root .small-inputbtn,
:root .inputbtn,
:root .large-inputbtn{
padding-top:3px\9;
}
@-moz-document url-prefix(){
.inputbtn,.small-inputbtn,.large-inputbtn{
padding-bottom:3px;
}
}
/* -------------------------------------------------
* ie6-8
* -------------------------------------------------
*/
.no-css3 .greenbtn{
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#99cc00', endColorstr='#72a600',GradientType=0 ); /* IE6-8 */
}
.no-css3 .redbtn{
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff3333', endColorstr='#a40000',GradientType=0 ); /* IE6-8 */
}
.no-css3 .lightbluebtn{
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00b7ea', endColorstr='#009ec3',GradientType=0 ); /* IE6-8 */
}
.no-css3 .darkbluebtn{
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#85c6ed', endColorstr='#3284c7',GradientType=0 ); /* IE6-8 */
}
.no-css3 .orangebtn{
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffcc00', endColorstr='#ff7e00',GradientType=0 ); /* IE6-8 */
}
.no-css3 .lightgreybtn{
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e6e6e6',GradientType=0 ); /* IE6-8 */
}
.no-css3 .darkgreybtn{
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d4d4d4', endColorstr='#a2a2a2',GradientType=0 ); /* IE6-8 */
}
.no-css3 .blackbtn{
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#888787', endColorstr='#2b2b2b',GradientType=0 ); /* IE6-8 */
}
.no-css3 .greenbtn:hover,
.no-css3 .redbtn:hover,
.no-css3 .lightbluebtn:hover,
.no-css3 .darkbluebtn:hover,
.no-css3 .orangebtn:hover,
.no-css3 .lightgreybtn:hover,
.no-css3 .darkgreybtn:hover,
.no-css3 .blackbtn:hover{
filter:none;
}
本资源来自:http://www.w3cplus.com/ 特此说明!