【发布时间】:2016-07-21 13:19:30
【问题描述】:
我无法在输入中移动文本。如果我添加边距或填充,它会移动或缩放输入。我想将“用户名”从左侧移动 10 像素。
.log_inp input[type="username"] {
top: 80px;
height: 28px;
width: 234px;
border: solid 1px #e4e4e4;
font-family: OpenSans-Italic;
color: #9a9a9a;
font-size: 13px;
}
input {
padding: 0px;
}
<div class="log_inp">
<form action="#">
<input type="username" name="Username" placeholder="Vārds...">
<br>
<input type="password" name="Password" placeholder="Parole...">
<br>
<input type="submit" value="Ienākt">
</form>
</div>
【问题讨论】:
-
您的意思是要将占位符文本推到右侧?