小编Mar*_*hez的帖子

HTML输入文本:增加文本大小而不使用changin输入大小

我使用的是4位数的密码; 代表每个角色的点太小; 我想增加字体大小; 但我不想改变输入的大小.

这就是我所拥有的:

<input class="pin_code" type="password" maxlength="4"/>
Run Code Online (Sandbox Code Playgroud)

如果我加

<input class="pin_code" type="password" maxlength="4" style="font-size:30px"/>
Run Code Online (Sandbox Code Playgroud)

然后输入也增加了大小; 我怎样才能让文字/点变大?

我希望点更大,间距更大

我补充道

<input class="pin_code" type="password" maxlength="4" style="font-size:30px; height:24px"/>
Run Code Online (Sandbox Code Playgroud)

现在我明白了:

在此输入图像描述

html css font-size

3
推荐指数
1
解决办法
3613
查看次数

标签 统计

css ×1

font-size ×1

html ×1