[英]How to style a radio button?
I simply don't find any instructions how to style a radio button like the div in my example here: http://jsfiddle.net/Q5SRe/ 我根本没有找到任何说明如何设置像我的例子中的div那样的单选按钮: http : //jsfiddle.net/Q5SRe/
The div: div:
div {
width:50px;
height:50px;
background-color:green
}
also I would like that when the radio button is selected it has: 我也希望当选择单选按钮时它具有:
border: medium solid #000;
Radio buttons are part of the Shadow DOM , which as of yet can't be universally styled across browsers. 单选按钮是Shadow DOM的一部分,截至目前,它还无法跨浏览器进行通用设置。
The best way currently to get custom radio buttons is to use images or the checkbox hack . 目前获得自定义单选按钮的最佳方法是使用图像或复选框黑客 。
我用这之前,它是不是跨浏览器兼容,我建议你让事情变得简单,但是取决于你的个人选择和使用情况
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.