如何改变输入框的大小?

时间:2021-06-29 07:31:08

I'm using this css file but one thing that is annoying me is the css file is making the input a bit to big.

我正在使用这个css文件,但有一件令我讨厌的事情是css文件使输入有点大。

http://jsfiddle.net/fcfku/ and go under "Show Advance Options".

http://jsfiddle.net/fcfku/并进入“显示高级选项”。

How do I set the size? Also for the check box (for the TOS), how can I change the check image?

我该如何设置尺寸?对于复选框(对于TOS),如何更改检查图像?

1 个解决方案

#1


1  

The following rules have to be adjusted:

必须调整以下规则:

input, textarea, select {
    /*line-height*/
    font: 12px/1.5 'Open Sans', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    /*possibly excessive padding*/
    padding: 5px 10px;
}

input, select {
    /*height applied to too many elements*/
    height: 30px;
}

Also, the css reset should be applied first i.e. before any other rules

此外,应首先应用css重置,即在任何其他规则之前应用

#1


1  

The following rules have to be adjusted:

必须调整以下规则:

input, textarea, select {
    /*line-height*/
    font: 12px/1.5 'Open Sans', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    /*possibly excessive padding*/
    padding: 5px 10px;
}

input, select {
    /*height applied to too many elements*/
    height: 30px;
}

Also, the css reset should be applied first i.e. before any other rules

此外,应首先应用css重置,即在任何其他规则之前应用