屏幕缩小右边这一块怎么消失了?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 | <!DOCTYPE html> < html > < 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 rel = "stylesheet" type = "text/css" href = "bootstrap-3.3.7-dist/css/bootstrap.min.css" > < link rel = "stylesheet" type = "text/css" href = "css/css.css" > </ head > < body > < content > < nav class = "navbar navbar-default" > < div class = "container-fluid" > <!-- Brand and toggle get grouped for better mobile display --> < div class = "navbar-header" > < button type = "button" class = "navbar-toggle collapsed" data-toggle = "collapse" data-target = "#bs-example-navbar-collapse-1" aria-expanded = "false" > < span class = "sr-only" >Toggle navigation</ span > < span class = "icon-bar" ></ span > < span class = "icon-bar" ></ span > < span class = "icon-bar" ></ span > </ button > < a class = "navbar-brand" href = "#" >< img src = "img/logo.png" ></ a > </ div > <!-- Collect the nav links, forms, and other content for toggling --> < div class = "collapse navbar-collapse" id = "bs-example-navbar-collapse-1" > < ul class = "nav navbar-nav" > < li >< a href = "#" class = "active" >首页</ a ></ li > < li class = "dropdown" > < a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-haspopup = "true" aria-expanded = "false" >生日< span class = "caret" ></ span ></ a > < ul class = "dropdown-menu" > < div class = "pull-left" > < li >< a href = "#" class = "menu-hader" >关系</ a ></ li > < li role = "separator" class = "divider" ></ li > < li >< a href = "#" >朋友</ a ></ li > < li >< a href = "#" >爱人</ a ></ li > < li >< a href = "#" >姐妹</ a ></ li > </ div > < div class = "pull-left" > < li >< a href = "#" class = "menu-hader" >风味</ a ></ li > < li role = "separator" class = "divider" ></ li > < li >< a href = "#" >巧克力</ a ></ li > < li >< a href = "#" >水果</ a ></ li > </ div > </ ul > </ li > < li class = "dropdown" > < a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-haspopup = "true" aria-expanded = "false" >婚礼< span class = "caret" ></ span ></ a > < ul class = "dropdown-menu" > < div class = "pull-left" > < li >< a href = "#" class = "menu-hader" >关系</ a ></ li > < li role = "separator" class = "divider" ></ li > < li >< a href = "#" >朋友</ a ></ li > < li >< a href = "#" >爱人</ a ></ li > < li >< a href = "#" >姐妹</ a ></ li > </ div > < div class = "pull-left" > < li >< a href = "#" class = "menu-hader" >风味</ a ></ li > < li role = "separator" class = "divider" ></ li > < li >< a href = "#" >巧克力</ a ></ li > < li >< a href = "#" >水果</ a ></ li > </ div > < div class = "pull-left" > < li >< a href = "#" class = "menu-hader" >主旋律</ a ></ li > < li role = "separator" class = "divider" ></ li > < li >< a href = "#" >心形</ a ></ li > < li >< a href = "#" >卡通</ a ></ li > </ div > </ ul > </ li > < li class = "dropdown" > < a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-haspopup = "true" aria-expanded = "false" >专用< span class = "caret" ></ span ></ a > < ul class = "dropdown-menu" > < div class = "pull-left" > < li >< a href = "#" class = "menu-hader" >关系</ a ></ li > < li role = "separator" class = "divider" ></ li > < li >< a href = "#" >朋友</ a ></ li > < li >< a href = "#" >爱人</ a ></ li > < li >< a href = "#" >姐妹</ a ></ li > </ div > < div class = "pull-left" > < li >< a href = "#" class = "menu-hader" >风味</ a ></ li > < li role = "separator" class = "divider" ></ li > < li >< a href = "#" >巧克力</ a ></ li > < li >< a href = "#" >水果</ a ></ li > </ div > </ ul > </ li > < li class = "dropdown" > < a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-haspopup = "true" aria-expanded = "false" >商铺< span class = "caret" ></ span ></ a > < ul class = "dropdown-menu" > < div class = "pull-left" > < li >< a href = "#" class = "menu-hader" >关系</ a ></ li > < li role = "separator" class = "divider" ></ li > < li >< a href = "#" >朋友</ a ></ li > < li >< a href = "#" >爱人</ a ></ li > < li >< a href = "#" >姐妹</ a ></ li > </ div > < div class = "pull-left" > < li >< a href = "#" class = "menu-hader" >风味</ a ></ li > < li role = "separator" class = "divider" ></ li > < li >< a href = "#" >巧克力</ a ></ li > < li >< a href = "#" >水果</ a ></ li > </ div > </ ul > </ li > </ ul > < ul class = "nav navbar-nav navbar-right" > < li class = "dropdown" > < a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-haspopup = "true" aria-expanded = "false" >< span class = "glyphicon glyphicon-zoom-out" aria-hidden = "true" ></ span ></ a > < ul class = "dropdown-menu sou" > < li ></ li > < input type = "text" name = "" >< button >搜</ button > </ ul > </ li > < li class = "dropdown" > < a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-haspopup = "true" aria-expanded = "false" > < span class = "glyphicon glyphicon-user" aria-hidden = "true" ></ span ></ a > < ul class = "dropdown-menu denglu" > < li ></ li > < p class = "dl" > < p class = "email" >Email</ p > < input class = "text" type = "text" name = "" > < p class = "password" >Password</ p > < input class = "text" type = "text" name = "" >< br >< br > < input class = "dl" type = "button" name = "" value = "登录" > < input class = "checkbox" type = "checkbox" name = "" > < p class = "center" >新用户?< a href = "#" >注册</ a >|忘记密码?</ p > </ p > </ ul > </ li > < li class = "dropdown" > < a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-haspopup = "true" aria-expanded = "false" >< span class = "glyphicon glyphicon-shopping-cart" aria-hidden = "true" ></ span ></ a > < ul class = "dropdown-menu gwc" > < li ></ li > < span >$0.00(0)</ span > < button >空</ button > </ ul > </ li > </ ul > <!-- <ul class="nav navbar-nav navbar-right"> </ul> --> </ div > <!-- /.navbar-collapse --> </ div > <!-- /.container-fluid --> </ nav > </ content > < script type = "text/javascript" src = "jquery-1.12.4.js" ></ script > < script type = "text/javascript" src = "bootstrap-3.3.7-dist//js/bootstrap.min.js" ></ script > </ body > </ html > *{ padding: 0; margin: 0; } .navbar-default{ width: 100%; height: 52px; background: #5D4B33; } .container-fluid{ width: 90%; } .navbar-brand{ margin-top:-8px; } .navbar-nav{ width: 400px; margin-left: 100px; } .active{ background: orange; } .navbar-nav li:hover{ background: orange; transition: all 1s; } .dropdown-menu{ width: 400px; height: 150px; } .dropdown-menu div:nth-child(1){ margin-top: 10px; margin-left: 20px; } .dropdown-menu div:nth-child(2){ margin-top: 10px; margin-left: 60px; } .dropdown-menu div:nth-child(3){ margin-top: 10px; margin-left: 60px; } .pull-left li:hover{ background: #fff; } .menu-hader{ color: orange; } .pull-left li a{ text-decoration: none; } .pull-left li a:hover{ color: orange; } .navbar-right .dropdown:hover{ background: none; } .glyphicon{ color: #fff; } .sou{ width: 250px; height: 80px; } .sou li{ display: block; width: 0; height: 0; border-width: 0 15px 15px; border-style: solid; border-color: transparent transparent #fff; top: -14px; right: 7px; position: absolute; } .sou input{ width: 130px; height: 30px; border: 1px solid orange; margin-left:30px; margin-top: 20px; } .sou button{ width: 50px; height: 30px; background: orange; color: #fff; border:none; } .denglu{ width: 220px; height: 240px; overflow-y: auto; } .denglu .password,.denglu .email{ font-weight: bold; } .denglu .text{ width:200px; height: 30px; } .dl{ width:200px; height: 30px; background: orange; color: #fff; border: none; } .dl:hover{ background: #fff; color: orange; transition: all 1s; } .checkbox{ width: 30px; height: 30px; } .center{ text-align: center; } .gwc{ width: 300px; height: 90px; } .gwc span{ display: block; text-align: center; } .gwc button{ width: 200px; height: 30px; background: #fff; border:1px solid orange; color: orange; margin-left: 50px; margin-top: 15px; } .gwc li{ display: block; width: 0; height: 0; border-width: 0 15px 15px; border-style: solid; border-color: transparent transparent #fff; top: -14px; right: 7px; position: absolute; } |
0
收起
正在回答 回答被采纳积分+1
2回答
慕后端8593059
2018-12-12 18:29:29
缩小后购物车那一块消失了 麻烦给看看
相似问题
登录后可查看更多问答,登录/注册
响应式开发与常用框架 2018
- 参与学习 人
- 提交作业 2198 份
- 解答问题 5012 个
如果你有web端基础,既想进阶,又想进军移动端开发,那就来吧,我们专题为你带来的课程有HTML5、CSS3、移动基础、响应式、bootstrap、less等,让你在前端道路上畅通无阻!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧