Ric*_*o79 4 css radiobuttonlist
这是我的网页
我正试图制作更大的单选按钮,没有任何运气.
这是一个自定义WP插件,所有者不支持用户提出这类问题.我试图按照教程很多像这样的一个,但代码结构一般是不同的:
我的代码是
<li class="wpProQuiz_questionListItem" data-pos="1">
<span style="display:none;">1. </span>
<label>
<input class="wpProQuiz_questionInput" type="radio" name="question_1" value="323"/>
Answer 1
</label>
</li>
Run Code Online (Sandbox Code Playgroud)
并在教程中代码显示为
<td>
<input type="radio" name="radiog_dark" id="radio1" class="css-checkbox" />
<label for="radio1" class="css-label radGroup2">Option 1</label>
</td>
Run Code Online (Sandbox Code Playgroud)
有人能帮我吗?
里卡多
HTML标记:
<ul>
<li>
<label>
<input class="wpProQuiz_questionInput" type="radio" name="question_1_2" value="3" />
<span class="graphical-radio"></span>
Non riesco a lasciarlo solo
</label>
</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
CSS:
input[type="radio"] {
display: none;
}
.graphical-radio {
background: gray;
display: inline-block;
width: 30px;
height: 30px;
border-radius: 100%;
}
input[type="radio"]:checked + .graphical-radio {
background: red;
}
Run Code Online (Sandbox Code Playgroud)
神奇的是:checked选择器,所以你可以graphical-radio根据需要设计样式.