It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center。
7年前关闭。
我要完成的工作很简单:通过CSS更改浏览器复选框的布局。可能吗?还是我需要为此使用JavaScript?如何?
提前致谢!
7年前关闭。
我要完成的工作很简单:通过CSS更改浏览器复选框的布局。可能吗?还是我需要为此使用JavaScript?如何?
提前致谢!
最佳答案
我们通常在工作中创建一个自定义Javascript解决方案(单击该div时会更改颜色的div),该解决方案会更改隐藏复选框的值。
这样,您就不会受到CSS的限制,如果禁用了Javascript,它将很好地降级为普通的Checkbox(对于可访问性非常重要)