Skip to content

Instantly share code, notes, and snippets.

@satosystems
Created December 31, 2015 16:04
Show Gist options
  • Save satosystems/17707144572c3aa619c8 to your computer and use it in GitHub Desktop.
Save satosystems/17707144572c3aa619c8 to your computer and use it in GitHub Desktop.
Bootstrap でスマートフォンサイトの幅が少しだけ広くなってしまう現象 ref: http://qiita.com/satosystems/items/9a9ef06b1f72e2d1b3b9
<div class="container">
<div class="row">
<form action="#" class="form-horizontal">
<div class="form-group container"><!-- ここが問題 -->
<label for="input-name" class="col-sm-2 control-label">おなまえ</label>
<div class="col-xs-12 col-sm-8">
<input type="text" class="form-control" id="input-name" placeholder="おなまえ" maxlength="80" required="required">
</div>
</div>
<div class="container">
<div class="row">
<form action="#" class="form-horizontal">
<div class="container"><!-- container と -->
<div class="form-group"><!-- form-group を分ける -->
<label for="input-name" class="col-sm-2 control-label">おなまえ</label>
<div class="col-xs-12 col-sm-8">
<input type="text" class="form-control" id="input-name" placeholder="おなまえ" maxlength="80" required="required">
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment