[英]change checkbox label background size in html
I'd like to know if it's possible to change the size of an html checkbox label background (mines have quite a broad vertical range around the text), or is that irremediably linked to font size ? 我想知道是否可以改变html复选框标签背景的大小(地雷在文本周围有相当宽的垂直范围),或者是否与字体大小无关联?
Any help will be gladly received, Regards 任何帮助都会很高兴收到,问候
Try this 尝试这个
html HTML
<div class="checkboxes">
<input type="checkbox" name="Test" id="test1"><label for "test1" class="highlight">Test_button</label>
</div>
CSS CSS
.checkboxes label {
font-family:Arial Black;
font-size: 12px;
color: #666;
border-radius: 10px 10px 10px 10px;
background: #f0f0f0;
padding: 100px 4px;
text-align: left;
}
input[type=checkbox]:checked + label {
color: white;
background: #F2B611;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.