web前端|html教程
HTML checkbox radio
web前端-html教程
下面小编就为大家带来一篇HTML的checkbox和radio样式美化的简单实例。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧
php家教网站源码整站,vscode表单如何居中,ubuntu u盘在,tomcat 并行处理,sqlite外键不方便,爬虫能爬有密码文件,php pdf在线阅读,操作简便seo推广,开源网站统计系统,自动关闭网页行为代码,thinkphp 3.2 模板lzw
HTML的checkbox和radio样式美化的简单实例
音乐学校源码,vscode改文件图标,香蕉派 ubuntu,tomcat修改文根,sqlite 现有数据库,产品设计用爬虫干什么,php 打包zip,乳山seo排名优化,jsp网站源码 安装搭建,加盟短信编辑模板lzw
checkbox:
安卓浏览器 源码,vscode设置java,ubuntu 国产,淘淘商城tomcat,sqlite最新版 blob,帝国cms会员插件,前端后端传数据需要框架吗,java爬虫如何实现展开全文,php开源网盘,定州公司seo优化,怎么搭建电影网站源码,网页版 棋牌源码,discuz手机模板调用lzw
input[type="checkbox"] { display: none; } input[type="checkbox"] + label {display: inline-block;position: relative;border: solid 2px #99a1a7;width: 35px;height: 35px;line-height: 35px;border-radius: 4px; } input[type="checkbox"]:checked + label:after {content: \2714;font-size: 25px;color: #99a1a7;width: 35px;height: 35px;line-height: 35px;position: absolute;text-align: center;background-color: #e9ecee; } .tab { margin-top: 20px; margin-bottom: 20px; width: 100%; } .tab td {border: solid 1px #f99;font-size: 25px;line-height: 39px; }
测试201
测试202
radio:
input[type="radio"] { display: none; } input[type="radio"] + label {display: inline-block;position: relative;border: solid 2px #99a1a7;width: 25px;height: 25px;line-height: 25px;padding: 5px;border-radius: 19.5px; } input[type="radio"]:checked + label:after {content: ;font-size: 25px;color: #99a1a7;width: 25px;height: 25px;line-height: 25px;position: absolute;text-align: center;background-color: #99a1a7;border-radius: 12.5px; } input[type="radio"]:checked + label {background-color: #e9ecee; } .tab { margin-top: 20px; margin-bottom: 20px; width: 100%; } .tab td {border: solid 1px #f99;font-size: 25px;line-height: 39px; }
测试201
测试202
效果图:
以上这篇HTML的checkbox和radio样式美化的简单实例就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持PHP中文网。
更多HTML的checkbox和radio样式美化的简单实例相关文章请关注PHP中文网!