【发布时间】:2014-12-10 15:07:51
【问题描述】:
我制作了一个单选按钮控件,它在 Chrome 中完美运行,但在 Mozilla 中却无法运行。
HTML:
<input type='radio' class="myRadio" name='a' checked/><span> A</span>
<br>
<input type='radio' class="myRadio" name='a'/><span> B</span>
<br>
<input type='radio' class="myRadio" name='a'/> <span> C</span>
CSS:
input[type='radio'].myRadio {
-webkit-appearance:none;
width:20px;
height:20px;
border:1px solid darkgray;
border-radius:50%;
outline:none;
padding:0px;
-moz-box-shadow:0 0 5px 0px gray inset;
box-shadow:0 0 5px 0px gray inset;
}
input[type='radio'].myRadio:hover {
box-shadow:0 0 5px 0px orange inset;
-moz-box-shadow:0 0 5px 0px orange inset;
}
input[type='radio'].myRadio:before {
content:'';
display:block;
width:100%;
height:100%;
margin: 20% auto;
border-radius:50%;
margin-top:0px;
}
input[type='radio'].myRadio:checked:before {
background:orange;
}
【问题讨论】:
-
你的意思是urlencode?
-
你允许在配置文件中使用 allowed_uri_chars 吗?
-
请提供相关信息给我们
标签: html css radio-button mozilla