abp radio表单元素 消失了
2024-09-05 12:00:05
框架将原本的元素都隐藏掉了,取而代之的是根据label定义了自己的样式,如下:
[type="radio"]:not(:checked)+label {
padding-left: 26px;
height: 25px;
line-height: 25px;
font-size: 13px;
font-weight: normal;
}
[type="radio"]:checked+label {
padding-left: 26px;
height: 25px;
line-height: 25px;
font-size: 13px;
font-weight: normal;
}
[type="radio"].radio-col-red:checked+label:after {
background-color: #F44336;
border-color: #F44336;
}
从上可知,css的+号表示元素的后面兄弟元素,所以正确的打开方式是:
在表单元素后定义一个label元素就可以啦
比如:
<input type="radio" name="xx" class="radio-col-light-blue" id="xx" value="1" >
<label for="xx">AAA</label>
没办法,用别人的框架,就得受约束,下面这个链接讲的更为详细一点
参考:https://www.cnblogs.com/hpnet/p/9350250.html
最新文章
- iOS之UI--使用SWRevealViewController实现侧边菜单功能详解实例
- ERROR 1045 (28000): Access denied for user &#39;root&#39;@&#39;localhost&#39; (using password: YES)
- hibernate常见错误
- C++类的成员初始化列表的相关问题
- java科学和艺术语言 第六章 课后编程
- jquery图片放大镜和遮罩层效果
- 关于struts2中的default-action-ref
- Postmark介绍
- Running R jobs quickly on many machines(转)
- springboot项目启动时提示Address already in use: bind
- C#学习-显式接口
- kindeditor4.1.11的使用方法
- vue进行文件下载
- The Most Simple Introduction to Hypothesis Testing
- php 多进程
- MySQL如何开启慢查询
- SVN - 简单使用手册
- opencv3.2.0图像处理之中值滤波medianBlur API函数
- c++11 线程的互斥量
- NSLineBreakByWordWrapping和NSLineBreakByCharWrapping