現在、あるHPの採用ページをレスポンス化しているのですが、
何故かスマホで表示されるナビの画像が、右端に出てしまいうまくレスポンシブにならない。
TOPだけはレスポンス対応になっているので、それを真似てみたがうまく行かない。
ID develop PASS PassW0rd
http://p53.kunokin.develop.lionheart.co.jp/
http://p53.kunokin.develop.lionheart.co.jp/recruit/
cssで対応しているのだがうまく行かず
css
1 2/** 3 * スマートフォン用 4 */ 5@media screen and (max-width: 479px) { 6 .wrapper { 7 width: auto; 8 min-width: 0; 9 overflow: visible; 10 } 11 .layout { 12 width: auto; 13 padding:0 10px; 14 } 15 16 body { 17 padding-top: 50px; 18 } 19 img { 20 width: 100%; 21 height: auto; 22 } 23 .h2-head img { 24 height: 18px; 25 width:auto; 26 } 27 #head { 28 height: 50px; 29 overflow: visible; 30 } 31 #head .head-h1 { 32 display: none; 33 } 34 #head .logo { 35 float: none; 36 padding-top: 6px; 37 } 38 #head .logo img { 39 width: 218px; 40 height: auto; 41 } 42 #head .tel, 43 #head .contact { 44 display: none; 45 } 46 #head .sp-navi { 47 display: block; 48 position: absolute; 49 right: 0; 50 top: 0; 51 } 52 #head .sp-navi img { 53 width: 50px; 54 height: 50px; 55 } 56 57 #navi { 58 display: none; 59 position: absolute; 60 width: 100%; 61 left: 0; 62 top: 0; 63 background: none; 64 height: auto !important; 65 z-index: 8; 66 } 67 #navi ul { 68 margin: 20px 20px 20px; 69 } 70 #navi li { 71 float: none; 72 margin-bottom: 8px; 73 } 74 #navi li.sp { 75 display: block; 76 } 77 #navi li a { 78 display: block; 79 height: 40px; 80 background: #fff; 81 color: #1a1a1a; 82 text-align: center; 83 line-height: 40px; 84 text-decoration: none; 85 } 86 #navi li a:before { 87 content: attr(title); 88 } 89 #navi li img { 90 display: none; 91 } 92 #navi .close { 93 display: block; 94 text-align: center; 95 margin: 20px 0; 96 } 97 #navi .close img { 98 width: 30px; 99 height: 30px; 100 } 101 #head .navi-wrap { 102 background: rgba(0,0,0,.7); 103 position: absolute; 104 left: 0; 105 top: 0; 106 width: 100%; 107 z-index: 5; 108 } 109 .navi-view #navi, 110 #head.navi-view .navi-wrap { 111 display: block; 112 } 113 114 .contact-box { 115 float: none; 116 width: auto; 117 height: auto; 118 padding: 8px 12px; 119 } 120 .contact-box h2 { 121 font-size: 14px; 122 margin-bottom: 10px; 123 } 124 .contact-box li.tel { 125 padding-bottom: 9px; 126 margin-bottom: 10px; 127 border-bottom: 1px solid #D9D9D9; 128 text-align: center; 129 } 130 .contact-box li.tel img { 131 float: none; 132 width: 80%; 133 height: auto; 134 display: block; 135 margin: 0 auto 10px; 136 } 137 .contact-box li.tel span { 138 float: none; 139 } 140 .contact-box li.fax { 141 margin-bottom: 12px; 142 text-align: center; 143 } 144 .contact-box li.fax img { 145 width: 80%; 146 height: auto; 147 display: block; 148 margin: 0 auto 5px; 149 } 150 .contact-box li.fax span { 151 margin: 0 .5em; 152 } 153 .contact-box li.btn img { 154 width: 100%; 155 height: auto; 156 } 157 .recruit-ban { 158 float: none; 159 text-align: center; 160 margin-top: 15px; 161 } 162 .recruit-ban img { 163 max-width: 100%; 164 width: auto; 165 height: auto; 166 } 167 168 #foot-banner { 169 padding: 5px 0 0; 170 background: #231815; 171 } 172 #foot-banner ul { 173 width: auto; 174 padding-right: 5px; 175 text-align: center; 176 font-size: 0; 177 } 178 #foot-banner li { 179 font-size: 12px; 180 float: none; 181 display: inline-block; 182 margin-right: 0; 183 width: 50%; 184 padding-right: 5px; 185 margin-bottom: 5px; 186 -webkit-box-sizing: border-box; 187 -moz-box-sizing: border-box; 188 box-sizing: border-box; 189 background: none; 190 } 191 #foot-banner li img { 192 max-width: 100%; 193 width: auto; 194 height: auto; 195 } 196 #foot { 197 padding-top: 15px; 198 } 199 #foot .info-block { 200 width: auto; 201 float: none; 202 } 203 #foot .info-block .desc { 204 font-size: 12px; 205 text-align: center; 206 } 207 #foot .info-block h2 { 208 text-align: center; 209 } 210 #foot .info-block h2 img { 211 width: 200px; 212 height: auto; 213 } 214 #foot .foot-sitemap-block { 215 display: none; 216 } 217 #foot .copyright { 218 text-align: center; 219 margin-top: 15px; 220 font-size: 10px; 221 } 222} 223
採用のTOPだけ表示がおかしくなる原因が分からず。
TOPからCSSを持ってきただけなので何か足りないコードがあれば教えて欲しいです。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/01/09 08:49