モーダルをポップアップ ヘルプ ウィンドウとして使用しようとしています。背景を「なし」に設定しました。モーダルを (背景なしで) 開くと、「元の」ページの入力フィールドにフォーカスできません。
他の入力タイプ (例ではチェックボックスとボタン) はうまく機能します...
何か案が ?
私のコード:
<div class="container">
<!-- Button to trigger modal -->
<form>
<label>Input</label>
<input type="text" placeholder="Type something…">
<label class="checkbox">
<input type="checkbox">Checkbox
</label>
<button type="submit" class="btn">Submit</button>
</form>
<!-- Button to trigger modal -->
<a href="#myModal" role="button" class="btn" data-toggle="modal">Open Help...</a>
<!-- Modal -->
<div id="myModal" class="modal hide" data-backdrop="" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
</div>
ポップアップをドラッグ可能にする簡単な Javascript:
$('#myModal').draggable();
これはすべてJSFiddleで...