bootstrap实现可设置控制的秒表倒计时器代码
代码语言:html
所属分类:其他
代码描述:bootstrap实现可设置控制的秒表倒计时器代码,使用jquery实现控制。
代码标签: bootstrap 设置 控制 秒表 倒计时 器 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.3.3.4.css"> <style> @import 'https://fonts.googleapis.com/css?family=Baumans'; html, html body, html .m-wrap { width: 100%; height: 100%; } html .tx, html .m-wrap .o-watch-wrap .o-controllers .in-btn, html .m-wrap .o-watch-wrap .watch-ui .o-ring .o-timer, html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options .t-options-time, html .m-wrap .o-watch-wrap .watch-ui .o-ring .ring-wrap, html .m-wrap .o-watch-wrap { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } html .t-center, html .m-wrap .o-watch-wrap .watch-ui .o-ring .o-timer, html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options .t-options-time { text-align: center; } html .m-wrap { color: #EDEDEF; background-color: #55EB72; } html .m-wrap .o-watch-wrap { width: 350px; height: 400px; background-color: #56259E; background: -webkit-linear-gradient(to bottom, #7e49c8, #56259E 50%); background: -o-linear-gradient(to bottom, #7e49c8, #56259E 50%); background: -moz-linear-gradient(to bottom, #7e49c8, #56259E 50%); background: linear-gradient(to bottom, #7e49c8, #56259E 50%); border-radius: 25px; -webkit-box-shadow: 0px 0px 5px 0px black; -moz-box-shadow: 0px 0px 5px 0px black; box-shadow: 0px 0px 5px 0px black; border: 3px solid; } html .m-wrap .o-watch-wrap .menu-open .t-options { opacity: 1 !important; visibility: visible !important; } html .m-wrap .o-watch-wrap .menu-open .o-timer-wrap { top: -15px !important; opacity: 0; } html .m-wrap .o-watch-wrap .watch-ui { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } html .m-wrap .o-watch-wrap .watch-ui .o-ring { position: relative; width: 200px; height: 200px; margin: auto; } html .m-wrap .o-watch-wrap .watch-ui .o-ring .o-timer-wrap { position: relative; top: 0; -webkit-transition: opacity 0.5s linear, top 0.5s linear; transition: opacity 0.5s linear, top 0.5s linear; } html .m-wrap .o-watch-wrap .watch-ui .o-ring .ring-wrap { position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; } html .m-wrap .o-watch-wrap .watch-ui .o-ring .ring-wrap .c-t { position: absolute; top: 0; left: 0; } html .m-wrap .o-watch-wrap .watch-ui .o-ring .ring-wrap .c-t .c-c { fill: transparent; stroke: #EDEDEF; stroke-width: 5; stroke-dasharray: 612; stroke-dashoffset: 612; -webkit-transition: stroke-dashoffset 1s linear, opacity 1s linear; transition: stroke-dashoffset 1s linear, opacity 1s linear; } html .m-wrap .o-watch-wrap .watch-ui .o-ring .o-timer, html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options .t-options-time { font-size: 60px; width: 200px; height: 200px; border: 5px solid #7e49c8; border-radius: 50%; } html .m-wrap .o-watch-wrap .watch-ui .o-ring .o-timer .t-time, html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options .t-options-time .t-time { text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.5); } html .m-wrap .o-watch-wrap .watch-ui .o-ring .o-timer .oop, html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options .t-options-time .oop { position: absolute; bottom: 35px; font-size: 18px; color: #7e49c8; left: 0; right: 0; margin: auto; cursor: default; } html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options { position: absolute; top: 0px; opacity: 0; visibility: hidden; -webkit-transition: opacity 0.3s linear, visibility 0.3s linear; transition: opacity 0.3s linear, visibility 0.3s linear; } html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options .b-revc { transform: rotate(180deg); } html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options .o-opt-btn { box-shadow: none; } html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options .o-opt-btn:hover, html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options .o-opt-btn:focus { color: inherit; } html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options .o-opt-btn:active { color: lightgrey; } html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options .o-opt-btn.display { min-width: 70px; cursor: default; color: #EDEDEF; } html .m-wrap .o-watch-wrap .watch-ui .o-ring .t-options .t-options-time { border: none; } html .m-wrap .o-watch-wrap .o-controllers { text-align: center; } html .m-wrap .o-watch-wrap .o-controllers .sp-btn { position: relative; background: none; font-size: 16px; outline: none; box-shadow: none; } html .m-wrap .o-watch-wrap .o-controllers .sp-btn:hover, html .m-wrap .o-watch-wrap .o-controllers .sp-btn:focus { color: inherit; } html .m-wrap .o-watch-wrap .o-controllers .sp-btn:active { color: #d2d2d7; } html .m-wrap .o-watch-wrap .o-controllers .pause-btn { font-size: 30px; width: 60px; height: 60px; margin: auto; background: #5fdeae; border-radius: 50%; margin-top: -20px; -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.4); -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.4); box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.4); } html .m-wrap .o-watch-wrap .o-controllers .pause-btn:active { background: .........完整代码请登录后点击上方下载按钮下载查看
网友评论0