书写css代码。

.demo{width:200px; margin:60px auto 10px auto}

.wrap{margin:30px 0}

.wrap p{padding:10px 0}

.chk_1, .chk_2, .chk_3, .chk_4 { display: none; }

.chk_1 + label { background-color: #FFF; border: 1px solid #C1CACA; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05); padding: 9px; border-radius: 5px; display: inline-block; position: relative; margin-right: 30px; }

.chk_1 + label:active { box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1); }

.chk_1:checked + label { background-color: #ECF2F7; border: 1px solid #92A1AC; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05), inset 15px 10px -12px rgba(255, 255, 255, 0.1); color: #243441; }

.chk_1:checked + label:after { content: '\2714'; position: absolute; top: 0px; left: 0px; color: #758794; width: 100%; text-align: center; font-size: 1.4em; padding: 1px 0 0 0; vertical-align: text-top; }

.chk_2 + label { background-color: #F37900; padding: 18px 20px 18px 23px; box-shadow: inset 0 50px 37px -30px rgba(255, 222, 197, 0.3), 0 0 13px rgba(0, 0, 0, 0.6); border-radius: 1000px; display: inline-block; position: relative; border-top: 1px solid #ECA14F; margin-right: 30px; color: #FFF; font-size: 1.7em; width: 113px; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); border-bottom: 1px solid #552B09; }

.chk_2 + label:hover { border-top: 1px solid #FC8C1E; background: #FC8C1E; box-shadow: inset 0 -50px 37px -30px rgba(255, 222, 197, 0.07), 0 0 13px rgba(0, 0, 0, 0.6); }

.chk_2 + label:active { border-top: none; background: #FC8C1E; padding: 19px 20px 18px 23px; box-shadow: inset 0 3px 8px rgba(129, 69, 13, 0.3), inset 0 -50px 37px -30px rgba(255, 222, 197, 0.07), 0 0 13px rgba(0, 0, 0, 0.6); }

.chk_2 + label:after { content: ' '; border-radius: 100px; width: 32px; position: absolute; top: 12px; right: 12px; box-shadow: inset 0px 16px 40px rgba(0, 0, 0, 0.4); height: 32px; }

.chk_2 + label:before { content: ' '; border-radius: 100px; width: 20px; position: absolute; top: 18px; right: 18px; z-index: 999; box-shadow: inset 0px 16px 40px #FFF; height: 20px; display: none; }

.chk_2:checked + label:before { display: block; }

.chk_3 + label { background-color: #fafbfa; padding: 9px; border-radius: 50px; display: inline-block; position: relative; margin-right: 30px; -webkit-transition: all 0.1s ease-in; transition: all 0.1s ease-in; width: 40px; height: 15px; }

.chk_3 + label:after { content: ' '; position: absolute; top: 0; -webkit-transition: box-shadow 0.1s ease-in; transition: box-shadow 0.1s ease-in; left: 0; width: 100%; height: 100%; border-radius: 100px; box-shadow: inset 0 0 0 0 #eee, 0 0 1px rgba(0,0,0,0.4); }

.chk_3 + label:before { content: ' '; position: absolute; background: white; top: 1px; left: 1px; z-index: 999999; width: 31px; -webkit-transition: all 0.1s ease-in; transition: all 0.1s ease-in; height: 31px; border-radius: 100px; box-shadow: 0 3px 1px rgba(0,0,0,0.05), 0 0px 1px rgba(0,0,0,0.3); }

.chk_3:active + label:after { box-shadow: inset 0 0 0 20px #eee, 0 0 1px #eee; }

.chk_3:active + label:before { width: 37px; }

.chk_3:checked:active + label:before { width: 37px; left: 20px; }

.chk_3 + label:active { box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1); }

.chk_3:checked + label:before { content: ' '; position: absolute; left: 26px; border-radius: 100px; }

.chk_3:checked + label:after { content: ' '; font-size: 1.5em; position: absolute; background: #4cda60; box-shadow: 0 0 1px #4cda60; }

.chk_4 + label { background-color: #FFF; padding: 11px 9px; border-radius: 7px; display: inline-block; position: relative; margin-right: 30px; background: #F7836D; width: 58px; height: 10px; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1), 0 0 10px rgba(245, 146, 146, 0.4); }

.chk_4 + label:before { content: ' '; position: absolute; background: #FFF; top: 0px; z-index: 99999; left: 0px; width: 24px; color: #FFF; height: 32px; border-radius: 7px; box-shadow: 0 0 1px rgba(0,0,0,0.6); }

.chk_4 + label:after { content: '关闭'; position: absolute; top: 7px; left: 37px; font-size: 1.2em; color: white; font-weight: bold; left: 8px; padding: 5px; top: 4px; border-radius: 100px; }

.chk_4:checked + label { background: #67A5DF; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1), 0 0 10px rgba(146, 196, 245, 0.4); }

.chk_4:checked + label:after { content: '开启'; left: 10px; }

.chk_4:checked + label:before { content: ' '; position: absolute; z-index: 99999; left: 52px; }

.chk_4 + label:after { left: 35px; }

#checkbox_d2 + label:after, #checkbox_d2 + label:before, #checkbox label { -webkit-transition: all 0.1s ease-in; transition: all 0.1s ease-in; }

html弄多个按钮_html+css3实现多个表单按钮美化效果相关推荐

  1. html 重置按钮如何居中,如何设置html 表单按钮的位置,如居中,急?

    设置html 表单按钮的位置的代码是: 超文本标记语言, 标准通用标记语言下的一个应用. " 超文本 "就是指页面内可以包含图片. 链接,甚至音乐. 程序等非文字元素. 超级文本标 ...

  2. html表单按钮有,用好表单的按钮(一)_html

    对于一个交互式表单,按钮是必不可少的.按钮一般分为两类,一类本身就具有特定的功能,叫做特殊按钮,如Submit(提交按钮)――用于传输用户所填写的信息至服务器.Reset(复原按钮)――清除所填写的信 ...

  3. 4-8 :button表单按钮选择器

    :button表单按钮选择器 表单中包含许多类型的按钮,而使用:button选择器能获取且只能获取"type"属性值为"button"的<input> ...

  4. E9表单按钮置灰功能与单元格自定义属性说明

    1:表单单元格自定义按钮配置说明 1.1:选中需要设置按钮的单元格 1.2:设置单元格自定义属性 鼠标右键====>设置自定义属性====>id.name.class 如下图: 1.3:插 ...

  5. 图形界面 I: 用于表单按钮的函数与删除界面元素 (第四章)

    目录 简介 表单按钮的函数 删除界面元件 结论 简介 本文是关于图形界面系列文章第一部分的续篇. 第一篇文章图形界面 I: 库结构的准备工作 (第一章) 详细解释了库的目标. 在每章末尾会有第一部分文 ...

  6. 表单reset重置按钮的作用并非是清空表单

    不少初学者可能会认为表单元素的reset按钮是清空表单元素,其实并非如此. 看如下代码示例: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 ...

  7. 点击按钮执行php函数,从表单按钮调用PHP函数

    搜索热词 好吧,我的脚本应该看起来像那样.我必须主要在PHP中进行操作.按钮添加应将数据保存到文件,显示应读取该文件并将其放入textarea,删除必须删除所选行,然后重置将重置所有内容. $plik ...

  8. html更改表单按钮文字,HTML进阶应用技巧(十)用好表单的按钮

    一.制作常规按钮 制作按钮非常简单,在标记中把type参数设置为:type="submit"就获得一个提交按钮,如本例的"提交"按钮:在 标记中把type参数设 ...

  9. html表单下拉美化教程,html5和css3炫酷select下拉菜单美化效果

    html5和css3炫酷select下拉菜单美化效果 发布日期:2015-10-20 11:11 来源: 标签: 网页技术 CSS教程 html5+css3 select下拉菜单美化 这是一款使用ht ...

最新文章

  1. del rd命令行下删除文件不需要确认
  2. 最近项目中遇到的问题以及解决办法
  3. C语言(记录)——内存相关_2:内存的编址与管理
  4. python查看程序运行时间
  5. php xingnengfenxi_PHP 性能分析第三篇: 性能调优实战
  6. linux里shell中的test代表的意义
  7. paip.消除 Java 的冗长try/catch/finally
  8. Windows迅雷X去广告美化终结版Thunder X来了!
  9. 宁芝84静电容(蓝牙双模)键盘说明书
  10. mysql查询top10_各个数据库中TOP10记录的查询方法
  11. ZStack-2.6.2-c74 搭建私有云
  12. Maven 指定 Java 编译版本
  13. 2015年7月深圳社保缴费基数费率表
  14. 获取微信用户openid
  15. Python批量修改图片名称,格式,并批量量化
  16. B端产品经理产品心得(二)
  17. 链X云英雄城市峰会|区块链技术落地数字化社区提升区域养老幸福指数
  18. 数仓工具—Hive集成篇之Kafka(03)
  19. 用express和vue构建全栈项目myweb
  20. 鸿蒙没有推出手机的打算,华为:没有推出鸿蒙手机计划,自拍会让人觉得你孤独和失败...

热门文章

  1. Crontab 使用(转)
  2. [C语言] 文件操作,解压华为官方固件UNDATE.APP工具(源代码);
  3. 程序员减轻压力的十个建议
  4. 参加MS CRM2011深度培训课程第二天
  5. C++/CLI思辨录之传递托管堆地址
  6. 解决使用个推后背景音乐音量变小问题
  7. 常用PHP array数组函数
  8. mysql select db 废弃_php 项目放服务器显示mysql_connect 已经废弃 ?
  9. 名词解释_名词解释的答题技巧
  10. ALV OO的栏位属性