css 单选框样式调整
来源:互联网 发布:js如何获取classname 编辑:程序博客网 时间:2024/06/05 11:44
<!DOCTYPE html><html><head><meta charset="UTF-8"><title></title><style type="text/css">* {padding: 0;margin: 0;}.radio {display: inline-block;}label {display: inline-block;padding: 10px 10px;line-height: 20px;position: relative;border: 1px solid #ccc;cursor: pointer;}.radio .option {width: 10px;height: 10px;display: inline-block;border: 1px solid #ccc;border-radius: 50%;position: relative;}.option-span {position: absolute;top: 2px;left: 2px;width: 6px;height: 6px;background: #fff;border-radius: 50%;}.radio input[type="radio"] {display: none;}input[type="radio"]:checked+.option{border: 1px solid #57a3f3;background: #57a3f3;}</style></head><body><div class="radio"><label> <input type="radio" name="sex" value="" /> <span class="option"><span class="option-span"></span></span><!--优化后的单选框样式--> <span>男</span> </label></div><div class="radio"><label> <input type="radio" name="sex" value="" /> <span class="option"><span class="option-span"></span></span><!--优化后的单选框样式--> <span>女</span> </label></div></body></html>
阅读全文
0 0
- css 单选框样式调整
- CSS+DIV调整图片样式垂直居中
- 借助goole浏览器调整页面css样式
- 一个很好修改、调整css样式的方法
- sld样式调整
- Settings UI样式调整
- Settings UI样式调整
- 针对iphone4调整样式
- birt表格样式调整
- select样式调整
- HTML 常用样式调整
- 使用FF&Firebug调试之CSS篇---让样式调整不再棘手
- CSS样式
- CSS样式
- css样式
- CSS样式
- CSS样式
- Css样式
- ssh中访问action报404但是后台不显示错误,查看异常的方法
- 项目结构详解
- OpenLayers3根据范围设置地图缩放级别
- ubuntu中安装比较工具meld及其使用
- 算法预备军(5)~散列表
- css 单选框样式调整
- 初识正则表达式
- vue动态路由匹配实例
- 语音波形,截断的频域输出以及语谱图制作
- "*"的运用
- 最新 Javascript练习基础
- 移动端媒介查询尺寸
- MySQL for Windows免安装版本配置
- layer.confirm快速双击会连续触发事件问题