【发布时间】:2015-08-14 01:59:12
【问题描述】:
如果有人能在以下问题上为我指出正确的方向,我将不胜感激。
所以我有这个代码:
<label class="option"><input type="radio" name="rectangle" value="3 1/8 inches" checked><span>d</span> 3 1/8 inches</label>
我想要实现的是样式label.option,它应该基于选中的单选按钮状态。仅使用 CSS 实现的最简单方法是什么?
谢谢
【问题讨论】:
-
为什么是标签里面的复选框?你能编辑html吗?
标签: css input radio-button checked