html - 单选按钮样式不起作用

标签 html css

单选按钮样式在 mozilla 中不起作用。在 IE 中它有效

HTML

<input type="radio" name="rate[]" value="<?php echo $i; ?>" class="radio" >

CSS

.radio {
    width: 9px;
    height: 5px;
    border: #FF0000 1px solid;
}

最佳答案

单选按钮的样式取决于用户操作系统。

请引用这个网站http://www.456bereastreet.com/lab/styling-form-controls-revisited/radio-button/

关于html - 单选按钮样式不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4573494/

相关文章:

javascript - 如何为标题背景图像 onload 事件设置动画?

css - 让自定义复选框正确显示

javascript - 将 JSON 数据添加到 Html 表

html - 自动高度 div 不工作

html - Bootstrap 3 列表项有固定的背景颜色

jquery - 如何去除网页顶部和底部的空白?

css - 比父级高的垂直居中动态高度图像

html - Border Box 和 overflow 导致问题

android - android 设备的 html 和 css 中的对齐问题

javascript - 以 % 为单位缩放 HTML 图像的宽度和高度