简体   繁体   English

将复选框样式设置为正方形

[英]Styling checkbox as square

I am trying to customize my check box . 我正在尝试自定义我的复选框。 In the jsfiddle where you can see the customized check box which is circle . 在jsfiddle中,您可以看到自定义复选框circle。 I just want to make it a square and I need help to do it . 我只想把它做成正方形,就需要帮助。 Can someone help me. 有人能帮我吗。 The fiddle link is http://jsfiddle.net/1aeur58f/125/ 小提琴链接是http://jsfiddle.net/1aeur58f/125/

border-radius : 100% 

Makes it a circle, how to make it as a square ?? 使其成为圆形,如何使其成为正方形?

只需删除边界半径指令或设置

 border-radius : 0;

Delete the border-radius: 100px; 删除border-radius: 100px; property from the .checkboxFour label or set it to 0. .checkboxFour label属性, 将其设置为0。

Jsfiddle 的jsfiddle

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM