多语言展示
当前在线:245今日阅读:167今日分享:16

jQuery拖动滑块验证代码

jQuery拖动滑块验证代码
工具/原料

adobe dreamweaver

方法/步骤
1

新建html文档。

2

书写hmtl代码。




3

书写css代码。#drag { position: relative; background-color: #e8e8e8; width: 300px; height: 34px; line-height: 34px; text-align: center; }#drag .handler { position: absolute; top: 0px; left: 0px; width: 40px; height: 32px; border: 1px solid #ccc; cursor: move; }.handler_bg { background: #fff; }.handler_ok_bg { background: #fff; }#drag .drag_bg { background-color: #7ac23c; height: 34px; width: 0px; }#drag .drag_text { position: absolute; top: 0px; width: 300px; -moz-user-select: none;user-select: none; -o-user-select: none; -ms-user-select: none; }

4

书写并添加js代码。

5

代码整体结构。

6

查看效果。

推荐信息