내 사이트에 메모 작성 양식이 너무 넓어서 나머지 페이지가 축소됩니다. flickr을 참조하십시오. 나는 이유를 알 수 없다. 그러나 나는 다른 질문을 보는 것에서 fieldset
요소의 사용과 관련이 있다고 생각한다. 그러나 그것은 실제로 올바른 폭입니까?양식이 내 iPhone 화면의 너비까지 줄어들지 않습니다.
양식은 https://jonnybarnes.uk/notes/new
타당한 코드에서 찾을 수 있습니다, HTML :
이<meta name="viewport" content="width=device-width">
<form action="/notes/new" method="post" enctype="multipart/form-data" accept-charset="utf-8" id="newnote">
<fieldset class="note-ui">
<legend>New Note</legend>
<label for="in-reply-to" accesskey="r">Reply-to: </label><input type="text" name="in-reply-to" id="in-reply-to" placeholder="in-reply-to-1 in-reply-to-2 …">
<label for="note" accesskey="n">Note: </label><textarea name="note" id="note" placeholder="Note"></textarea>
<label for="webmentions" accesskey="w">Send webmentions: </label><input type="checkbox" name="webmentions" id="webmentions" checked="checked">
<label for="twitter" accesskey="t">Twitter: </label><input type="checkbox" name="twitter" id="twitter">
<label for="photo" accesskey="p">Photo: </label><input type="file" accept="image/*" value="Upload" name="photo" id="photo">
<label for="locate" accesskey="l"></label><input type="button" name="locate" id="locate" value="Locate">
<label for="kludge"></label><input type="submit" value="Submit">
<div class="geo-status"></div>
</fieldset>
</form>
CSS :
이form {
width: 100%;
}
fieldset {
min-width: 0;
width: 100%;
}
플리커 : https://www.flickr.com/photos/[email protected]/15659029727/
이미지가 유용 할 수 있지만 동일하거나 유사한 질문으로 길가에있는 사람들을 대상으로 질문에 코드를 게시해야합니다. –