Home > Web Front-end > HTML Tutorial > 我想定义 input 类型 中的 checkbox 的css_html/css_WEB-ITnose

我想定义 input 类型 中的 checkbox 的css_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:46:58
Original
1035 people have browsed it

如题

我只会写  input{width:50px;} ,但是我想精确到 input 中的checkbox,请问该怎么做?

回复讨论(解决方案)

input[type=checkbox]{width:50px;}
老的浏览器不支持

所以还是设置类名吧

可以换方法:Padding-left或Padding-right

不行就框架吧,推荐:bootcss.简单好学,而且兼容性比较好

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template