2014-02-10 48 views

回答

1

最近瀏覽器的一種方法;

.selection_checkbox:checked + .selection_label { 
text-decoration:line-through; 
} 

<input id="oregano" type="checkbox" class="selection_checkbox" /> 
<label for="oregano" class="selection_label">Oregano</label> 

http://jsfiddle.net/alexk/NR2Rr/

+0

這沒關係! Tnk你很尷尬 – user3293321

-1

您可以添加到您的css文件

input[type="checkbox"][checked]{text-decoration:line-through}