http://bootstrap3.cyberlab.info/components/inputGroups.html
input-grpup に text-area をいれたとき
input-group-addon は普通に使えるのですが
input-group-btn を使うと高さがずれてしまいます
input-group にこだわる必要はないのですが
bootstrap3 でtextarea とボタンを1行で見栄え良く配置する方法はないでしょうか
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrapの基本テンプレート</title> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="input-group"> <span class="input-group-addon">テキスト</span> <textarea class="form-control" placeholder="テキスト入力欄"></textarea> <span class="input-group-btn"> <button type="button" class="btn btn-default">ボタン</button> </span> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> </body> </html>


回答1件
あなたの回答
tips
プレビュー