<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 5 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 5 年前。
是否可以更改文本字段的内部填充?当前,当您使用 html 格式的普通文本字段并在其中写入内容时,它的开头和结尾都会有填充。在我的文本字段中写入的数字最多有 3 位数字,目前填充几乎覆盖了 1.5 到 2 位数字的宽度,并且已经有 2 位数字(参见图像上的数字 10),它会被拖出一点。
也添加了它的图像,在第一个字段中,填充区域用红线标记。
最佳答案
我没有代码但是
.my_input_class{
padding:0;
}
或者,实际上,文本框的大小需要大一点,或者你对其设置了字符限制
关于html - 从文本输入中删除填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45940924/