jumbotron 내부에 양식을 만들고 있는데 어떤 이유로 바탕 화면보기에 좋게 보이지만 휴대 전화를 볼 때 점보트론 밖으로 나옵니다. 내 코딩을 할 netbeans 사용하고 있습니다. 심지어 @media (최대 너비 : 620px)를 사용합니다. 나는 구글을 사용하여 시도했지만 실패 :(양식 응답 형
#wrapper{
width: 500px;
height: 700px;
position: relative;
margin: 0 auto;
background-color: rgba(255,255,255,.75);
text-align: center;
}
form{
color: black;
text-align: center;
}
div{
clear: both;
}
#off{
background-color: rgba(225,0,0,.85);
color: white;
width: 525px;
height: 140px;
font-size: 1rem;
text-align: center;
}
.formHeader{
color: #104c8b;
}
.formFooter{
background-color: rgba(0,0,255,.5);
color: white;
margin: 65px 0 0 0;
}
@media(max-width: 620px) {
#wrapper{
width: 100px;
height: 100px;
position: relative;
margin: 0 auto;
background-color: rgba(255,255,255,.75);
text-align: center;
}
<section id="top" class="jumbotron">
<div class="container-fluid">
<div class="row text-center">
<div id="wrapper"><p>Contact Form</p>
<div class="formHeader">
</div>
<form action="test.html" method="get" name="test" id="myForm">
<label>Name</label><input name="name" type="text" /><br>
<label>Email</label><input name="email" type="text" /><br>
<label>Phone</label><input name="number" type="text" /><br>
<input type="submit" value="Send"/>
</form>
<div class="formFooter">
</div>
</div>
</div>
</div>
</section>
래퍼 요소는 하나 이상의 col- 클래스의 –
같은
을 필요로 – ctapn1307예. 타겟팅하는 화면 크기에 따라 여러 열을 지정해야 할 수 있습니다. –