【发布时间】:2021-12-29 18:47:07
【问题描述】:
我有 -
<label for="1640801145364"><input type="checkbox" value="foo" id="1640801145364" name="foo">foo</label>
我需要为元素内部的标签设置“text-decoration: line-through”样式(在 file.css 中)。我尝试在 file.css 中写入 next,但它对我没有帮助。
label>input[type=checkbox]:checked {
text-decoration: line-through;
}
【问题讨论】:
标签: css checkbox styles line-through