###前提・実現したいこと
HTMLで作成している検索ボックスの入力欄の高さを広げたいですが
広げることができません。
cssで設定しているのですが上手くいかないのでご教授いただけたら嬉しいです。
html
1<!DOCTYPE html> 2<html lang="ja"> 3<head> 4 5<meta charset="UTF-8"> 6<title>My Web Site</title> 7<link rel="stylesheet" href="style.css"> 8<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"> 9 10 </script> 11 12</head> 13<body> 14 15 16<header> 17 18 <div class="header-left"> 19 <img class="logo" src="https://www.fastpic.jp/images.php?file=3519571152.jpg" alt="ロゴ画像"> 20 </div> 21 22<div class="header-right"> 23 <a href="http://onepiece-naruto.com/blog-category-12.html" class="login" target="_blank"><p class="login1">ログイン</p></a> 24</div> 25 26 27</header> 28 29 30<div class="main"> 31 32 <h1>行ってみたい<span>国</span>一覧</h1> 33 34 35 36</div> 37 38 39<div class="wrapper"> 40 41 <form class="research" action="search.php" method="post"> 42 <input class="research" type="search" size="40" name="nation" placeholder="キーワードを入力"> 43 <input class="research" type="submit" name="research" value="検索"><br> 44 <a href="index2.html"><input class="signup" type="button" name="btn" value="新規登録"></a> 45 </form> 46 47 48 <table border="1"> 49 50 <tr> 51 <th class="head">順位</th> 52 <th class="head">国名</th> 53 <th class="head">食べたい食べ物</th> 54 <th class="head">理由</th> 55 <th class="head"></th> 56 </tr> 57 58 59 <tr> 60 <td>1位</td> 61 <td>スペイン</td> 62 <td>パエリア</td> 63 <td>サッカーを見たいから</td> 64 <td><a href="update1.php">編集</a> <a href="delete1.php">削除</a></td> 65 </tr> 66 67 <tr> 68 <td>2位</td> 69 <td>アメリカ</td> 70 <td>グリルロブスター</td> 71 <td>ダンスの文化を知りたいから</td> 72 <td><a href="update1.php">編集</a> <a href="delete1.php">削除</a></td> 73 </tr> 74 75 <tr> 76 <td>3位</td> 77 <td>インド</td> 78 <td>カレーライス</td> 79 <td>発展途上の国を間近で見てみたいから</td> 80 <td><a href="update1.php">編集</a> <a href="delete1.php">削除</a></td> 81 </tr> 82 83 <tr> 84 <td>4位</td> 85 <td>タイ</td> 86 <td>ガパオ</td> 87 <td>バンコクの発展具合を見てみたいから</td> 88 <td><a href="update1.php">編集</a> <a href="delete1.php">削除</a></td> 89 </tr> 90 91 <tr> 92 <td>5位</td> 93 <td>フィリピン</td> 94 <td>アドボ </td> 95 <td>友達が楽しそうに働いているから</td> 96 <td><a href="update1.php">編集</a> <a href="delete1.php">削除</a></td> 97 </tr> 98 99 100 101 </table> 102 103</div> 104 105 106 107 108 109 110<footer> 111 112 113<div class="footer-left"> 114<img src="https://www.fastpic.jp/images.php?file=3519571152.jpg" alt="ロゴ画像"> 115<p>© travel enjoy.</p> 116</div> 117 118<div class="footer-list"> 119 <ul> 120 <li><a href="https://www.airbnb.jp/">利用規約</a></li> 121 <li><a href="https://www.uber.com/ja-JP/">プライバシー</a></li> 122 <li><a href="https://tabelog.com/tokyo/A1307/A130701/13191934/">アクセシビリティ</a></li> 123 </ul> 124</div> 125 126 127 128</footer> 129 130 <script src="script.js"> 131 132 </script> 133 134 135</body> 136</html> 137
css
1@charset "UTF-8"; 2/*全体のCSS*/ 3 4body { 5 font-family: "MS ゴシック",sans-serif; 6} 7 8li { 9 list-style: none; 10} 11 12 13 14html, body, div, span, applet, object, iframe, 15h1, h2, h3, h4, h5, h6, p, blockquote, pre, 16a, abbr, acronym, address, big, cite, code, 17del, dfn, em, font, img, ins, kbd, q, s, samp, 18small, strike, strong, sub, sup, tt, var, 19b, u, i, center, 20dl, dt, dd, ol, ul, li, 21fieldset, form, label, legend, 22table, caption, tbody, tfoot, thead, tr, th, td { 23 margin: 0; 24 padding: 0; 25 border: 0; 26 outline: 0; 27 font-size: 100%; 28 vertical-align: baseline; 29 background: transparent; 30} 31body { 32 line-height: 1; 33} 34ol, ul { 35 list-style: none; 36} 37blockquote, q { 38 quotes: none; 39} 40blockquote:before, blockquote:after, 41q:before, q:after { 42 content: ''; 43 content: none; 44} 45 46/* remember to define focus styles! */ 47:focus { 48 outline: 0; 49} 50 51/* remember to highlight inserts somehow! */ 52ins { 53 text-decoration: none; 54} 55del { 56 text-decoration: line-through; 57} 58 59/* tables still need 'cellspacing=0' in the markup */ 60table { 61 border-collapse: collapse; 62 border-spacing: 0; 63} 64 65/* ここから下はそれぞれのCSS */ 66 67 68header { 69 height: 60px; 70 width: 100%; 71 background-color: white; 72 position :fixed; 73 top: 0; 74 left: 0; 75 76} 77 78.header-left { 79float: left; 80} 81 82.header-right { 83 float: right; 84 margin-bottom: 30px; 85 background-color:blue; 86 margin-right: 20px; 87 opacity: 0.7; 88} 89 90.header-right:hover { 91 background-color:skyblue; 92} 93 94.header-right a { 95 width: 70px; 96 margin-top: 14px; 97 display: block; 98 padding: 22px 25px; 99 color: white; 100 margin: auto 0; 101} 102 103 104.logo { 105 width: 130px; 106 margin-left: 15px; 107 height: 60px; 108} 109 110 111/* mainのCSS */ 112 113.main { 114 padding: 200px 0 150px 0; 115 background-image: url(https://www.fastpic.jp/images.php?file=1146462294.jpg); 116 margin-top: 60px; 117 background-size: cover; 118 margin-top: 60px; 119 width: 100%; 120} 121 122form { 123 text-align: center; 124} 125 126.main h1 { 127 text-align: center; 128 font-size: 40px; 129 font-weight: bold; 130 margin-bottom: 100px; 131} 132 133span { 134 color: #FA3932; 135} 136 137/* ボタンのCSS */ 138 139input[type="button"] { 140 width: 10%; 141 border-radius: 4px; 142 padding: 4px; 143 font-size: 14px; 144 color: black; 145 background-color: white; 146} 147 148input[type="submit"] { 149 width: 5%; 150 padding: 3px; 151 border-radius: 4px; 152 color: black; 153 font-size: 14px; 154 background-color: white; 155} 156 157input[type="search"] { 158 height: 1.2em; 159} 160 161 162 163/* tableのCSS */ 164 165 166 167table , td, th { 168 border: 1px solid #595959; 169 border-collapse: collapse; 170 margin: auto; 171 margin-top: 100px; 172 margin-bottom: 100px; 173 font-size: 30px; 174} 175 176.warapper { 177 height: 300px; 178} 179 180table a { 181 text-decoration: none; 182 color: #0000ff; 183} 184 185 186 187table a:hover { 188 color: #6699ff; 189 text-decoration: underline; 190} 191 192 193table a:active { 194 color: #993366; 195} 196 197.head { 198 background-color: #CCFFFF; 199} 200 201/* フッターのCSS */ 202 203footer { 204 border-top: solid 1px black; 205 height: 110px; 206 width: 100%; 207} 208 209footer img { 210 width: 130px; 211 margin-left: 15px; 212 height: 60px; 213} 214 215.footer-left { 216 217 height: 110px; 218 float: left; 219} 220 221.footer-list { 222 color:#b3aeb5; 223 bottom: 20px; 224 vertical-align: middle; 225 margin: auto 0; 226 float: right; 227 font-weight: normal; 228 229 height: 110px; 230} 231 232.footer-list li { 233 float: left; 234 letter-spacing: 7px; 235 padding: 47px 15px; 236} 237 238footer p { 239 margin-top: 10px; 240 padding-left: 10px; 241} 242
宜しくお願い致します。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/09/07 13:28
2017/09/07 13:31
2017/09/07 13:52
2017/09/07 13:53
2017/09/07 13:57 編集
2017/09/08 00:28
2017/09/08 06:09
2017/09/08 22:50