如何使用CSS设置复选框样式

不想你离开。 提交于 2020-08-12 10:56:02

问题:

I am trying to style a checkbox using the following: 我正在尝试使用以下样式设置复选框:

<input type="checkbox" style="border:2px dotted #00f;display:block;background:#ff0000;" />

But the style is not applied. 但是没有应用样式。 The checkbox still displays its default style. 该复选框仍显示其默认样式。 How do I give it the specified style? 如何给它指定的样式?


解决方案:

参考一: https://stackoom.com/question/HPDH/如何使用CSS设置复选框样式
参考二: https://oldbug.net/q/HPDH/How-to-style-a-checkbox-using-CSS
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!