我已經分度,輸入字段和文本文字與輸入一行
這裏是代碼
.form-control {
display: block;
width: 100%;
height: 34px;
position: relative;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
color: #555;
margin: 0 auto;
background-color: #fff;
border-color: #1f66b4;
border-style: solid;
border-width: 3px;
background-image: none;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
<div style="width:50%;height:100%;float: left;padding-left:20%">
<form style="text-align:center;">
<b>dfsdfsdfsdf</b>
<input type="text" class="form-control" id="lname" name="lname" placeholder="Last Name" style="margin: 30px auto 0;border-radius:50px;border-width: 1px;">
</form>
</div>
但文字是在輸入。
我需要的文本一行的輸入。 我該怎麼做?
flexbox,這花車,表,絕對定位... – domsson
https://codepen.io/anon/pen/RgBxqq似乎在這裏很好。我認爲我們需要更多地瞭解你在做什麼。 –
你的代碼已經工作:https://jsfiddle.net/5kmLszv6/你有關於你的問題的更多信息? – chrona