나는 여기서 무슨 일이 벌어지고 있는지 전혀 모른다. div에 양식이 있고 div에 배경색이 있습니다.왜이 사업부가 완전히 고장 났습니까?
내 웹 사이트의 일부에서 작동하지만 다른 웹 사이트에서 전혀 작동하지 않습니다. 여기에 또한 영향을받는 코드는 여기에 게시
에 세드릭의 Jsfiddle입니다 :
form {
text-align: center;
}
input {
font-family: 'Cabin', sans-serif;
}
.submit-button {
text-decoration: none;
width: 80%;
background-color: white;
text-align: center;
height: 35px;
border-radius: 10px;
display: inline-block;
}
.input-half {
width: 40%;
display: inline-block;
float: left;
margin-left: 5%;
margin-right: 5%;
}
.input-half-2 {
width: 40%;
display: inline-block;
float: right;
margin-left: 5%;
margin-right: 5%;
}
input[type=text]:focus {
background-color: lightblue;
}
.contact-contain {
background-color: lightgray;
max-width: 100%;
}
.image-back {
width: 100%;
}
#back-img {
width: 100%
}
.cont-textarea {
resize: none;
width: 80%;
height: 110px;
}
<div class="contact-contain" id="link-c"><br>
<h1>Contact Over The Horizon:</h1><br><br>
<form>
<div class="input-half">
<label for="contname">Your Name</label><br>
<input class="input-box" type="text" name="contname"><br>
<label for="eaddress">Your Email</label><br>
<input class="input-box" type="text" name="eaddress"><br>
<label for="subj">Message Subject</label><br>
<input class="input-box" type="text" name="subj">
</div>
<div class="input-half-2">
<label for="contactmsg">Message Content</label><br><br>
<textarea class="cont-textarea"></textarea><br><br>
<button class="submit-button" type="submit" name="submitq" value="Send"><span>Submit Quote</span></button><br>
</div>
</form>
</div><br>
귀하의 질문에 전혀 분명하지 않습니다. "완전히 부러"며 "작동하지 않는"것은 여기서 무엇을 의미합니까? – isherwood
참고로, 'br'태그를 여러 개 넣을 때보 다 공간을 만드는 데 여백과 여백을 사용하는 것이 좋습니다. '
'는 나중에 * 많이 * 수정하기가 더 어렵고 시간이 많이 걸립니다. – Scott