jquery实现css select选择器示例代码及效果演示
代码语言:html
所属分类:其他
代码描述:jquery实现css select选择器示例代码及效果演示
代码标签: jquer css select 选择器 示例 代码 效果 演示
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
background: url('https://i.imgur.com/HZk2ZdO.jpg') #432d3e;
font-family: 'Quattrocento Sans', sans-serif;
}
hr {
border: none;
border-top: 1px dashed rgba(0, 0, 0, .2);
}
a {
text-decoration: none;
font-weight: bold;
color: #b620e8;
}
a:hover {
color: #d000ff;
}
section {
display: none;
min-height: 410px;
}
section.current {
display: block;
}
#octocorner {
background: url("https://i.imgur.com/inXT6eu.png") no-repeat bottom right;
height: 280px;
width: 420px;
position: absolute;
bottom: 0px;
right: 0px;
}
/* - - - - - HEADER RIBBON - - - - - */
header {
margin: 50px auto -90px;
width: 600px;
text-align: center;
position: relative;
display: block;
z-index: 1;
}
#header {
width: 100%;
text-align: center;
padding: 5px 0;
background: #d0e4f7;
display: block;
background: -moz-linear-gradient(-45deg, #d0e4f7 0%, #0a77d5 50%, #87bcea 100%);
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%, #d0e4f7), color-stop(50%, #0a77d5), color-stop(100%, #87bcea));
background: -webkit-linear-gradient(-45deg, #d0e4f7 0%, #0a77d5 50%, #87bcea 100%);
background: -o-linear-gradient(-45deg, #d0e4f7 0%, #0a77d5 50%, #87bcea 100%);
background: -ms-linear-gradient(-45deg, #d0e4f7 0%, #0a77d5 50%, #87bcea 100%);
background: linear-gradient(135deg, #d0e4f7 0%, #0a77d5 50%, #87bcea 100%);
filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#d0e4f7', endColorstr='#87bcea', GradientType=1);
}
header:before,
header:after {
content: '';
position: absolute;
display: block;
bottom: -1.3em;
border: 1.6em solid #0d66a5;
z-index: -1;
}
header:before {
left: -1.6em;
border-right-width: 1.5em;
border-right-color: #0c548e;
border-left-color: transparent;
-webkit-box-shadow: 0px 2px 0px #a2bcd3, 0px -2px 0px #a2bcd3, rgba(0, 0, 0, 0.4) 1px 3px 1px;
-moz-box-shadow: 0px 2px 0px #a2bcd3, 0px -2px 0px #a2bcd3, rgba(0, 0, 0, 0.4) 1px 3px 1px;
box-shadow: 0px 2px 0px #a2bcd3, 0px -2px 0px #a2bcd3, rgba(0, 0, 0, 0.4) 1px 3px 1px;
}
header:after {
right: -1.6em;
border-left-width: 1.5em;
border-left-color: #0c548e;
border-right-color: transparent;
-webkit-box-shadow: 0px 2px 0px #a2bcd3, 0px -2px 0px #a2bcd3, rgba(0, 0, 0, 0.4) -1px 3px 1px;
-moz-box-shadow: 0px 2px 0px #a2bcd3, 0px -2px 0px #a2bcd3, rgba(0, 0, 0, 0.4) -1px 3px 1px;
box-shadow: 0px 2px 0px #a2bcd3, 0px -2px 0px #a2bcd3, rgba(0, 0, 0, 0.4) -1px 3px 1px;
}
h1 {
display: block;
background: #0a77d5;
margin: 0;
font-family: 'Kaushan Script', cursive;
color: #d0e4f7;
font-size: 2em;
}
h1:before,
h1:after {
content: '';
width: 100%;
height: 0px;
position: relative;
top: -3px;
border-bottom: 1px dashed rgba(0, 0, 0, .2);
border-top: 1px dashed rgba(255, 255, 255, .5);
display: block;
}
h1:after {
top: 4px;
}
header .extra-shadow {
background: rgba(0, 0, 0, .1);
display: block;
height: 23px;
position: absolute;
bottom: -23px;
width: 550px;
margin: 0px 25px;
-webkit-box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 1px;
-moz-box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 1px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 1px;
}
/* - - - - - TABS - - - - - */
.tabs {
list-style: none;
position: absolute;
left: -72px;
top: 120px;
width: 50px;
z-index: 100;
}
.tabs li {
font-family: 'Coming Soon', cursive;
line-height: 14px;
font-size: 1em;
padding: 10px;
text-align: right;
display: inline-block;
float: right;
margin-right: 5px;
margin-bottom: -7px;
position: relative;
z-index: 0;
border-right: none;
cursor: pointer;
-webkit-box-shadow: rgba(0, 0, 0, 0.1) -1px 0px 1px;
-moz-box-shadow: rgba(0, 0, 0, 0.1) -1px 0px 1px;
box-shadow: rgba(0, 0, 0, 0.1) -1px 0px 1px;
}
.tabs li:hover {
padding-right: 11px;
}
.tabs li:nth-child(odd) {
border: 1px solid #bfd255;
background: #bfd255;
background: -moz-linear-gradient(top, #bfd255 0%, #99c42d 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #bfd255), color-stop(100%, #99c42d));
background: -webkit-linear-gradient(top, #bfd255 0%, #99c42d 100%);
background: -o-linear-gradient(top, #bfd255 0%, #99c42d 100%);
background: -ms-linear-gradient(top, #bfd255 0%, #99c42d 100%);
background: linear-gradient(to bottom, #bfd255 0%, #99c42d 100%);
filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#bfd255', endColorstr='#99c42d', GradientType=0);
}
.tabs li:nth-child(even) {
border: 1px solid #d1cc55;
background: #d1cc55;
background: -moz-linear-gradient(top, #d1cc55 0%, #dbd534 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #d1cc55), color-stop(100%, #dbd534));
background: -webkit-linear-gradient(top, #d1cc55 0%, #dbd534 100%);
background: -o-linear-gradient(top, #d1cc55 0%, #dbd534 100%);
background: -ms-linear-gradient(top, #d1cc55 0%, #dbd534 100%);
background: linear-gradient(to bottom, #d1cc55 0%, #dbd534 100%);
filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#d1cc55', endColorstr='#dbd534', GradientType=0);
}
.tabs li.current {
background: url('https://i.imgur.com/xSP3aWu.jpg') #f2f1e3 !important;
padding: 10px 15px;
border: 1px solid #FFF;
border-right: none;
margin-right: 0px;
z-index: 1;
}
/* - - - - - H2 BRUSH STROKE - - - - - */
h2 {
font-size: 1.6em;
font-family: 'Coming Soon', cursive;
margin: 0px 10px -10px;
vertical-align: top;
border-top: 1px dashed rgba(0, 0, 0, .2);
height: 37px;
position: relative;
color: #442b4f;
}
h2:before {
content: url('https://i.imgur.com/Bbd3NlC.png');
position: absolute;
display: block;
margin-top: -10px;
left: -15px;
-webkit-animation: brush 1s;
-webkit-animation-delay: 0s;
-webkit-animation-direction: reverse;
-webkit-mask-size: 295px 50px;
-webkit-mask-repeat: no-repeat;
-webkit-mask-image: url('https://i.imgur.com/li73Hxt.png');
/* Mask animation unsupported by FF, and masks only supported in SVG format. */
}
@-webkit-keyframes brush {
0% {
-webkit-mask-position: 0 0;
}
100% {
-webkit-mask-position: 295px 0px;
}
}
h2 + p {
margin-left: 50px;
font-weight: bold;
}
/* - - - - - NOTEPAD - - - - - */
.leather {
background: url('https://i.imgur.com/IMjKmwu.jpg') #6b3a0d;
width: 520px;
padding: 5px;
margin: -5px auto 0px;
border-radius: 5px;
position: relative;
z-index: 0;
-webkit-box-shadow: rgba(0, 0, 0, 0.4) 1px 1px 1px, rgba(0, 0, 0, 0.3) -1px -1px 1px inset, rgba(255, 255, 255, 0.6) 1px 1px 2px inset;
-moz-box-shadow: rgba(0, 0, 0, 0.4) 1px 1px 1px, rgba(0, 0, 0, 0.3) -1px -1px 1px inset, rgba(255, 255, 255, 0.6) 1px 1px 2px inset;
box-shadow: rgba(0, 0, 0, 0.4) 1p.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0