js实现一个图片点击拾色器取色器效果代码
代码语言:html
所属分类:布局界面
代码描述:js实现一个图片点击拾色器取色器效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>取色器</title> <style type="text/css"> body { margin: 0; } .module-content { width: 100%; color: #000; margin: 0 auto; } .module-head { text-align: center; font-weight: 500; margin: 0; font-size: 30px; height: 100px; line-height: 100px; } .module-check-img-box { margin: 0 auto; text-align: center; } .module-check-box { width: 20%; float: right; } .module-list-name { font-size: 16px; height: 50px; line-height: 50px; } .module-box { width: 100px; height: 100px; overflow: hidden; position: relative; margin: 0 auto; } .module-box input { width: 100px; height: 100px; opacity: 0; position: absolute; top: 0; left: 0; z-index: 10; } .module-box img { width: 100px; height: 100px; } #showImg { cursor: url(//repo.bfw.wiki/bfwrepo/icon/6104e60639116.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_12,h_12,/quality,q_90),auto; } .module-file-box { min-width: 400px; min-height: 400px; max-height: 1000px; overflow: auto; border: 1px solid #eee; border-radius: 5px; padding: 10px; } .module-check { position: relative; display: inline-block; height: 50px; line-height: 50px; } .clear-float:after { content: ''; display: block; height: 0px; clear: both; } .module-show-area section { float: left; width: 50%; font-size: 0; } .module-show-area section p { line-height: 30px; display: inline-block; width: 200px; font-size: 16px; } .module-show-area section p span { display: inline-block; width: 16px; height: 16px; margin-right: 5px; } .show-all-color { width: 100px; height: 40px; line-height: 40px; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0