jquery自定义一个时间选择器效果
代码语言:html
所属分类:选择器
代码描述:jquery自定义一个时间选择器效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css"> <style> @import url('https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900'); @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800'); @import url('https://fonts.googleapis.com/css?family=Montserrat:400,700'); h1 { font: 100 4em/1em Lato; margin: 0; text-transform: uppercase; } body { font: 300 16px/1.5em "Open Sans"; } .footnote { margin: 40px 0 0 20px; font-weight: 500; font-size: 0.75em; color: #a0a0a0; } form { width: 400px; padding: 80px 0 0 40px; } input.button { box-sizing: border-box; border: 0; outline: 0; height: 48px; } .button { display: inline-block; font: 100 1.2em/16px "Lato"; letter-spacing: 0.75px; text-transform: uppercase; text-align: center; height: 16px; margin: 8px 0 8px 8px; padding: 16px 24px; background: #808080; color: white; border-radius: 3px; box-shadow: 1px 1px 3px rgba(0,0,0,0.25); transition: background-color .1s, color .2s, box-shadow .3s; } .button:hover { background: #404040; color: white; cursor: pointer; cursor: hand; box-shadow: 1px 1px 6px rgba(0,0,0,0.65); } .formInput { position: relative; font: 300 1em/48px "Open Sans"; margin: 0 0 8px; padding: 0; border-bottom: 1px solid #c0c0c0; border-radius: 4px; overflow: hidden; color: #505050; } .formInput:hover { color: black; } .formInput i { display: block; position: absolute; z-index: -1; top: 0; left: 0; width: 48px; height: 47px; line-height: 48px; text-align: center; /*background-color: #e0e0e0; box-shadow: 1px 1px 1px rgba(0,0,0,0.25);*/ font-size: 1em; transition: box-shadow .2s, color .3s, background-color .4s; } .formInput input { box-sizing: border-box; z-index: 1; display: block; position: relative; top: 0; left: 0; float: left; font-size: 1em; font: inherit; border: 0; margin: 0; padding: 0 4px 0 56px; border: 1px solid transparent; border-radius: inherit; width: 100%; height: 47px; line-height: 47px; background: transparent; color: inherit; transition: border-color .2s, color .2s, background-color .4s; } .formInput.hasTextarea { line-height: 24px; height: 191px; } .formInput.hasTextarea i { border-radius: 0 0 3px; } .formInput textarea { box-sizing: border-box; resize: none; z-index: 1; display: block; position: relative; top: 0; left: 0; float: left; font-size: 1em; font: inherit; border: 1px solid transparent; border-radius: inherit; margin: 0; padding: 12px 4px 6px 56px; width: 100%; height: 100%; line-height: 24px; background: transparent; color: inherit; transition: border-color .2s, color .2s, background-color .4s.........完整代码请登录后点击上方下载按钮下载查看
网友评论0