增加HTML中复选框的大小 [英] Increasing the size of checkbox in HTML

查看:568
本文介绍了增加HTML中复选框的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在HTML中增加复选框的大小? 解决方案

不是一种简单的跨浏览器方式。 / p>

您可以通过使用JavaScript和CSS的控件替代它,从而获得最大的灵活性。使用标准复选框作为后备。



现在,使用:checked 伪选择器,您可以创建 label 元素也可以做到这一点。


Is there any way to increase the size of checkbox in HTML?

解决方案

Not in an easy cross browser way.

You would get the most flexibility replacing it with a control that utilises JavaScript and CSS. Use a standard checkbox as a fallback.

These days, with the :checked pseudo selector, you can make a label element to do it as well.

这篇关于增加HTML中复选框的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆