두 개의 입력 상자를 같은 줄에 정렬하는 데 문제가 있습니다. 하나를 오른쪽으로 띄울 때마다 즉시 다음 줄로 밀어 넣습니다.
같은 줄에 두 개의 입력 상자를 가질 수 있습니까? 하나는 왼쪽에 있고 다른 하나는 오른쪽에 정렬되어 있습니다.
.inline
{
display: inline;
}
input
{
width:15%;
font-weight:bold;
background-color:transparent;
border: 1px solid;
font-size: 13px;
font-family: Arial;
}
html
{
height: 100%;
margin-bottom: 0px;
}
* {
margin: 0;
}
.body {
font-family: Arial;
font-size: 13px;
background-color: #ffffff;
margin-top:0px;
margin-left:10%;
margin-right: 10%;
margin-bottom: 0px;
padding:0
height: 100%;
line-height: 200%;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto; /* the bottom margin is the negative value of the footer's height */
}
.footer, .push {
line-height: 120%;
height: 112px; /* .push must be the same height as .footer */
text-align: center;
font-size: 10px;
}
<body>
<div class="body">
<div class="wrapper">
<span class="inline">
<input class="inputbold" type="text" name="" placeholder="boldinput" />
<div style="text-align: right;">
<input class="inputbold" type="text" name="" placeholder="blah"/> </div>
</span>
</div>
</div>
이는 두 번째 입력 필드가 요소 내부에 래핑되어 있기 때문에 발생합니다. 제거하면 문제가 해결됩니다.
<div class="body">
<div class="wrapper">
<span class="inline">
<input class="inputbold" type="text" name="" placeholder="boldinput" />
<input class="inputbold" type="text" name="" placeholder="blah"/> </div>
</span>
</div>
</div>
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다