还是看着b站上的视频学的,第一次写一个像模像样的网页,还是挺有成就感的。
用的都是html和css的基础,还没有涉及到js,虽然现在学的这些都是实际开发中不会用到的,但是这种一点一点跟着教程把一个网页用最原始的元素搭起来的感觉真到好爽啊。
首页
产品页
注册页
代码
大致的文件结构
css
base.css
这个部分是用来清除一些浏览器自带的样式,方便我们自己调整,这些代码可以复用。
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
| * { margin: 0; padding: 0; box-sizing: border-box; }
em, i { font-style: normal }
li { list-style: none }
img { border: 0; vertical-align: middle }
button { cursor: pointer }
a { color: #666; text-decoration: none }
a:hover { color: #c81623 }
button, input { font-family: Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif; border: 0; outline: none; }
body { -webkit-font-smoothing: antialiased; background-color: #fff; font: 12px/1.5 Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif; color: #666 }
.hide, .none { display: none }
.clearfix:after { visibility: hidden; clear: both; display: block; content: "."; height: 0 }
.clearfix { *zoom: 1 }
|
common.css
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
| @font-face { font-family: 'icomoon'; src: url('../fonts/icomoon.eot?tomleg'); src: url('../fonts/icomoon.eot?tomleg#iefix') format('embedded-opentype'), url('../fonts/icomoon.ttf?tomleg') format('truetype'), url('../fonts/icomoon.woff?tomleg') format('woff'), url('../fonts/icomoon.svg?tomleg#icomoon') format('svg'); font-weight: normal; font-style: normal; font-display: block; }
.w { width: 1200px; margin: 0 auto; }
.fl { float: left; }
.fr { float: right; }
.style_red { color: #c81623; }
.shortcut { height: 31px; line-height: 31px; background-color: #f1f1f1; }
.shortcut ul li { float: left; }
.shortcut .fr ul li:nth-child(even) { width: 1px; height: 12px; background-color: #666; margin: 9px 15px 0; }
.arrow-icon::after { content: '\e91e'; font-family: 'icomoon'; margin-left: 6px; }
.header { position: relative; height: 105px; }
.logo { position: absolute; top: 25px; width: 171px; height: 61px; }
.logo a { display: block; width: 171px; height: 61px; background: url(../images/logo.png) no-repeat; font-size: 0; }
.search { position: absolute; left: 346px; top: 25px; width: 538px; height: 36px; border: 2px solid #b1191a; }
.search input { float: left; width: 454px; height: 32px; padding-left: 10px; }
.search button { float: left; width: 80px; height: 32px; background-color: #b1191a; line-height: 32px; font-size: 16px; color: #fff; }
.hotwords { position: absolute; top: 66px; left: 346px; }
.hotwords a { margin: 0 10px; }
.shopcar { position: absolute; right: 60px; top: 25px; width: 140px; height: 35px; border: 1px solid #dfdfdf; background-color: #f7f7f7; line-height: 35px; text-align: center; }
.shopcar::before { content: '\e93a'; font-family: 'icomoon'; margin-right: 5px; color: #b1191a; }
.shopcar::after { content: '\e920'; font-family: 'icomoon'; margin-left: 10px; }
.count { position: absolute; top: -5px; left: 102px; height: 14px; line-height: 14px; color: #fff; background-color: #e60012; padding: 0 5px; border-radius: 7px 7px 7px 0px; }
.nav { height: 47px; border-bottom: 2px solid #b1191a; }
.nav .dropdown { float: left; width: 210px; height: 45px; background-color: #b1191a; }
.nav .navitems { float: left; }
.dropdown .dt { width: 100%; height: 100%; color: #fff; text-align: center; line-height: 45px; font-size: 16px; }
.dropdown .dd { width: 210px; height: 465px; background-color: #c81623; margin-top: 2px; }
.dropdown .dd ul li { position: relative; height: 31px; line-height: 31px; margin-left: 2px; padding-left: 10px; }
.dropdown .dd ul li:hover { background-color: #fff; }
.dropdown .dd ul li::after { position: absolute; top: 1; right: 10px; content: '\e920'; font-family: 'icomoon'; color: #fff; font-size: 14px; }
.dropdown .dd ul li:hover a { color:#c81623; }
.dropdown .dd ul li a { font-size: 14px; color: #fff; }
.navitems ul li { float: left; }
.navitems ul li a { display: block; height: 45px; line-height: 45px; font-size: 16px; padding: 0 25px; }
.footer { height: 415px; background-color: #f5f5f5; padding-top: 30px; }
.mod_service { height: 80px; border-bottom: 1px solid #ccc; }
.mod_service ul li { float: left; width: 300px; height: 50px; padding-left: 35px; }
.mod_service ul li h5 { float: left; width: 50px; height: 50px; background: url(../images/icons.png) no-repeat -252px -2px; margin-right: 8px; }
.service_txt h4 { font-size: 14px; }
.service_txt p { font-size: 12px; }
.mod_help { height: 185px; border-bottom: 1px solid #ccc; padding-top: 20px; padding-left: 50px; }
.mod_help dl dt { font-size: 16px; margin-bottom: 10px; }
.mod_help dl { float: left; width: 200px; }
.mod_help dl:last-child { width: 90px; text-align: center; }
.mod_copyright { text-align: center; padding-top: 20px; }
.links { margin-bottom: 15px; }
.copyright { line-height: 20px; }
.links a { margin: 0 3px; }
|
index.css
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
| .main { width: 980px; height: 455px; margin-left: 220px; margin-top: 10px; }
.focus { float: left; width: 721px; height: 455px; }
.newsflash { float: right; width: 250px; height: 455px; }
.news { height: 165px; border: 1px solid #e4e4e4; }
.news-hd { height: 33px; line-height: 33px; border-bottom: 1px dotted #e4e4e4; padding: 0 15px; }
.news-hd h5 { float: left; font-size: 14px; }
.news-hd .more { float: right; }
.news-hd .more::after { content: '\e920'; font-family: 'icomoon'; }
.news-bd { padding: 5px 15px 0; }
.news-bd ul li { height: 24px; line-height: 24px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lifeservice { overflow: hidden; height: 209px; border: 1px solid #e4e4e4; border-top: 0; }
.lifeservice ul { width: 252px; }
.lifeservice ul li { float: left; width: 63px; height: 71px; border-right: 1px solid #e4e4e4; border-bottom: 1px solid #e4e4e4; text-align: center; }
.lifeservice ul li i { display: inline-block; width: 24px; height: 28px; background-color: pink; margin-top: 12px; background: url(../images/icons.png) no-repeat -19px -15px; }
.bargain { margin-top: 5px; }
.recom { height: 163px; background-color: #ebebeb; margin-top: 12px; }
.recom_hd { float: left; height: 163px; width: 205px; background-color: #5c5251; text-align: center; line-height: 163px; }
.recom_bd { float: left; }
.recom_bd ul li { position: relative; float: left; }
.recom_bd ul li img { width: 248px; height: 163px; }
.recom_bd ul li:nth-child(-n + 3):after { content: ''; position: absolute; right: 0; top: 10px; width: 1px; height: 145px; background-color: #ddd; }
.box_hd { height: 30px; border-bottom: 2px solid #c81612; }
.box_hd h3 { float: left; font-size: 18px; color: #c81612; font-weight: normal; }
.tab_list { float: right; line-height: 30px; }
.tab_list ul li { float: left; }
.tab_list ul li a { margin: 0 15px; }
.floor .w { margin-top: 30px; }
.box_bd { height: 361px; background-color: pink; }
.tab_list_item>div { float: left; height: 361px; }
.col_210 { width: 210px; background-color: #f9f9f9; text-align: center; }
.col_210 ul { padding-left: 12px; }
.col_210 ul li { float: left; width: 85px; height: 34px; border-bottom: 1px solid #ccc; text-align: center; line-height: 33px; margin-right: 10px; }
.col_329 { width: 329px; }
.col_221 { width: 221px; border-right: 1px solid #ccc; }
.col_219 { width: 219px; }
.bb { display: block; border-bottom: 1px solid #ccc; }
|
list.css
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
| .nav { overflow: hidden; }
.sk { position: absolute; left: 190px; top: 40px; border-left: 1px solid #c81523; padding: 3px 0 0 14px; }
.sk_list { float: left; }
.sk_list ul li { float: left; } .sk_list ul li a { display: block; line-height: 47px; padding: 0 30px; font-size: 16px; font-weight: bolder; color: #000; }
.sk_con { float: left; }
.sk_con ul li { float: left; }
.sk_con ul li a { display: block; line-height: 49px; padding: 0 20px; font-size: 14px; }
.sk_con ul li:last-child a::after { content: '\e91e'; font-family: 'icomoon'; }
.sk_bd ul li { overflow: hidden; float: left; margin-right: 13px; width: 290px; height: 460px; border: 1px solid transparent; }
.sk_bd ul li:nth-child(4n) { margin-right: 0; }
.sk_bd ul li:hover { border: 1px solid #c81523; }
|
register.css
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
| .w { width: 1200px; margin: 0 auto; }
header { height: 84px; border-bottom: 2px solid #c81523; }
.logo { padding-top: 18px; }
.registerarea { height: 522px; border: 1px solid #ccc; margin-top: 20px; }
.registerarea h3 { height: 42px; border-bottom: 1px solid #ccc; background-color: #ececec; line-height: 42px; padding: 0 10px; font-size: 18px; font-weight: normal; }
.login { float: right; font-size: 14px; }
.login a { color: #c81523; }
.reg_form { width: 600px; margin: 50px auto 0; }
.reg_form ul li { margin-bottom: 20px; }
.reg_form ul li label { display: inline-block; width: 88px; text-align: right; }
.reg_form ul li .inp { width: 242px; height: 37px; border: 1px solid #ccc; }
.error { color: #c81523; }
.error_icon { display: inline-block; vertical-align: middle; width: 20px; height: 20px; background: url(../images/error.png); margin-top: -2px; }
.success { color: green; }
.success_icon { display: inline-block; vertical-align: middle; width: 20px; height: 20px; background: url(../images/success.png); margin-top: -2px; }
.safe { padding-left: 162px; }
.safe em { padding: 0 12px; color: #fff; }
.ruo { background-color: #de1111; }
.zhong { background-color: #40b83f; }
.qiang { background-color: #f79100; }
.agree { padding-left: 95px; }
.agree input { vertical-align: middle; }
.agree a { color: #1ba1e6; }
.btn { width: 200px; height: 34px; background-color: #c81623; font-size: 14px; color: #fff; margin: 30px 0 0 120px; }
.mod_copyright { text-align: center; padding-top: 20px; }
.links { margin-bottom: 15px; }
.copyright { line-height: 20px; }
.links a { margin: 0 3px; }
|
html
index.html
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 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
| <!DOCTYPE html> <html lang="zh-CN">
<head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>品优购商城-综合网购首选-正品低价、品质保障、配送及时、轻松购物!</title> <meta name="description" content="品优购商城-专业的综合网上购物商城,销售家电、数码通讯、电脑、家居百货、服装服饰、母婴、图书、食品等数万个品牌优质商品.便捷、诚信的服务,为您提供愉悦的网上购物体验!" /> <meta name="keywords" content="网上购物,网上商城,手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表,存储卡,京东" />
<link rel="shortcut icon" href=" favicon.ico"> <link rel="stylesheet" href="css/base.css"> <link rel="stylesheet" href="css/common.css"> <link rel="stylesheet" href="css/index.css">
</head>
<body> <section class="shortcut"> <div class="w"> <div class="fl"> <ul> <li>品优购欢迎您! </li> <li> <a href="#">请登录</a> <a href="register.html" class="style_red">免费注册</a> </li> </ul> </div> <div class="fr"> <ul> <li>我的订单</li> <li></li> <li class="arrow-icon">我的品优购</li> <li></li> <li>品优购会员</li> <li></li> <li>企业采购</li> <li></li> <li class="arrow-icon">关注品优购</li> <li></li> <li class="arrow-icon">客户服务</li> <li></li> <li class="arrow-icon">网站导航</li> </ul> </div> </div> </section>
<header class="header w"> <div class="logo"> <h1> <a href="index.html" title="品优购商城">品优购商城</a> </h1> </div>
<div class="search"> <input type="search" name="" id="" placeholder="语言开发"> <button>搜索</button> </div>
<div class="hotwords"> <a href="#" class="style_red">优惠购首发</a> <a href="#">亿元优惠</a> <a href="#">9.9元团购</a> <a href="#">每满99减30</a> <a href="#">办公用品</a> <a href="#">电脑</a> <a href="#">通信</a> </div>
<div class="shopcar"> 我的购物车 <i class="count">8</i> </div>
</header>
<nav class="nav"> <div class="w"> <div class="dropdown"> <div class="dt">全部商品分类</div> <div class="dd"> <ul> <li><a href="#">家用电器</a></li> <li><a href="list.html">手机</a>、<a href="#">数码</a>、<a href="#">通信</a></li> <li><a href="#">电脑、办公</a> </li> <li><a href="#">家居、家具、家装、厨具</a> </li> <li><a href="#">男装、女装、童装、内衣</a> </li> <li><a href="#">个户化妆、清洁用品、宠物</a> </li> <li><a href="#">鞋靴、箱包、珠宝、奢侈品</a> </li> <li><a href="#">运动户外、钟表</a> </li> <li><a href="#">汽车、汽车用品</a> </li> <li><a href="#">母婴、玩具乐器</a> </li> <li><a href="#">食品、酒类、生鲜、特产</a> </li> <li><a href="#">医药保健</a> </li> <li><a href="#">图书、音像、电子书</a> </li> <li><a href="#">彩票、旅行、充值、票务</a> </li> <li><a href="#">理财、众筹、白条、保险</a> </li> </ul> </div> </div> <div class="navitems"> <ul> <li><a href="#">服装城</a></li> <li><a href="#">服装城</a></li> <li><a href="#">服装城</a></li> <li><a href="#">服装城</a></li> <li><a href="#">服装城</a></li> <li><a href="#">服装城</a></li> <li><a href="#">服装城</a></li> <li><a href="#">服装城</a></li> </ul> </div> </div> </nav>
<div class="w"> <div class="main"> <div class="focus"> <ul> <li> <img src="upload/focus1.png" alt=""> </li> </ul> </div> <div class="newsflash"> <div class="news"> <div class="news-hd"> <h5>品优购快报</h5> <a href="#" class="more">更多</a> </div> <div class="news-bd"> <ul> <li><a href="#"><strong>[特惠]</strong> 备战开学季 全民半价购数码 怎么会是呢</a></li> <li><a href="#"><strong>[特惠]</strong> 备战开学季 全民半价购数码</a></li> <li><a href="#"><strong>[特惠]</strong> 备战开学季 全民半价购数码</a></li> <li><a href="#"><strong>[特惠]</strong> 备战开学季 全民半价购数码</a></li> <li><a href="#"><strong>[特惠]</strong> 备战开学季 全民半价购数码</a></li> </ul> </div> </div> <div class="lifeservice"> <ul> <li> <i></i> <p>话费</p> </li> <li> <i></i> <p>话费</p> </li> <li> <i></i> <p>话费</p> </li> <li> <i></i> <p>话费</p> </li> <li> <i></i> <p>话费</p> </li> <li> <i></i> <p>话费</p> </li> <li> <i></i> <p>话费</p> </li> <li> <i></i> <p>话费</p> </li> <li> <i></i> <p>话费</p> </li> <li> <i></i> <p>话费</p> </li> <li> <i></i> <p>话费</p> </li> <li> <i></i> <p>话费</p> </li> </ul> </div> <div class="bargain"> <img src="upload/bargain.png" alt=""> </div> </div> </div> </div>
<div class="w recom"> <div class="recom_hd"> <img src="images/recom.png" alt=""> </div> <div class="recom_bd"> <ul> <li><img src="upload/recom_03.jpg" alt=""></li> <li><img src="upload/recom_03.jpg" alt=""></li> <li><img src="upload/recom_03.jpg" alt=""></li> <li><img src="upload/recom_03.jpg" alt=""></li> </ul> </div> </div>
<div class="floor"> <div class="w jiadian"> <div class="box_hd"> <h3>家用电器</h3> <div class="tab_list"> <ul> <li><a href="#" class="style_red">热门</a>|</li> <li><a href="#">大家电</a>|</li> <li><a href="#">生活电器</a>|</li> <li><a href="#">厨房电器</a>|</li> <li><a href="#">个护健康</a>|</li> <li><a href="#">应季电器</a>|</li> <li><a href="#">空气/净水</a>|</li> <li><a href="#">新奇特</a>|</li> <li><a href="#">高端电器</a></li> </ul> </div> </div> <div class="box_bd"> <div class="tab_content"> <div class="tab_list_item"> <div class="col_210"> <ul> <li><a href="#">节能补贴</a></li> <li><a href="#">节能补贴</a></li> <li><a href="#">节能补贴</a></li> <li><a href="#">节能补贴</a></li> <li><a href="#">节能补贴</a></li> <li><a href="#">节能补贴</a></li> </ul> <a href="#"><img src="upload/floor-1-1.png" alt=""></a> </div> <div class="col_329"> <a href="#"><img src="upload/floor-1-b01.png" alt=""></a> </div> <div class="col_221"> <a href="#" class="bb"><img src="upload/floor-1-2.png" alt=""></a> <a href="#"><img src="upload/floor-1-3.png" alt=""></a> </div> <div class="col_221"> <a href="#"><img src="upload/floor-1-4.png" alt=""></a> </div> <div class="col_219"> <a href="#" class="bb"><img src="upload/floor-1-5.png" alt=""></a> <a href="#"><img src="upload/floor-1-6.png" alt=""></a> </div> </div> </div> </div> </div>
<div class="w shouji"> <div class="box_hd"> <h3>手机通讯</h3> <div class="tab_list"> <ul> <li><a href="#" class="style_red">热门</a>|</li> <li><a href="#">大家电</a>|</li> <li><a href="#">生活电器</a>|</li> <li><a href="#">厨房电器</a>|</li> <li><a href="#">个护健康</a>|</li> <li><a href="#">应季电器</a>|</li> <li><a href="#">空气/净水</a>|</li> <li><a href="#">新奇特</a>|</li> <li><a href="#">高端电器</a></li> </ul> </div> </div> <div class="box_bd"> <div class="tab_content"> <div class="tab_list_item"> <div class="col_210"> <ul> <li><a href="#">节能补贴</a></li> <li><a href="#">节能补贴</a></li> <li><a href="#">节能补贴</a></li> <li><a href="#">节能补贴</a></li> <li><a href="#">节能补贴</a></li> <li><a href="#">节能补贴</a></li> </ul> <a href="#"><img src="upload/floor-1-1.png" alt=""></a> </div> <div class="col_329"> <a href="#"><img src="upload/floor-1-b01.png" alt=""></a> </div> <div class="col_221"> <a href="#" class="bb"><img src="upload/floor-1-2.png" alt=""></a> <a href="#"><img src="upload/floor-1-3.png" alt=""></a> </div> <div class="col_221"> <a href="#"><img src="upload/floor-1-4.png" alt=""></a> </div> <div class="col_219"> <a href="#" class="bb"><img src="upload/floor-1-5.png" alt=""></a> <a href="#"><img src="upload/floor-1-6.png" alt=""></a> </div> </div> </div> </div> </div> </div>
<footer class="footer"> <div class="w"> <div class="mod_service"> <ul> <li> <h5></h5> <div class="service_txt"> <h4>正品保证</h4> <p>正品保证,提供发票</p> </div> </li> <li> <h5></h5> <div class="service_txt"> <h4>正品保证</h4> <p>正品保证,提供发票</p> </div> </li> <li> <h5></h5> <div class="service_txt"> <h4>正品保证</h4> <p>正品保证,提供发票</p> </div> </li> <li> <h5></h5> <div class="service_txt"> <h4>正品保证</h4> <p>正品保证,提供发票</p> </div> </li> </ul> </div>
<div class="mod_help"> <dl> <dt>服务指南</dt> <dd><a href="#">购物流程</a></dd> <dd><a href="#">会员介绍</a></dd> <dd><a href="#">生活旅行/团购</a></dd> <dd><a href="#">常见问题</a></dd> <dd><a href="#">大家电</a></dd> <dd><a href="#">联系客服</a></dd> </dl> <dl> <dt>服务指南</dt> <dd><a href="#">购物流程</a></dd> <dd><a href="#">会员介绍</a></dd> <dd><a href="#">生活旅行/团购</a></dd> <dd><a href="#">常见问题</a></dd> <dd><a href="#">大家电</a></dd> <dd><a href="#">联系客服</a></dd> </dl> <dl> <dt>服务指南</dt> <dd><a href="#">购物流程</a></dd> <dd><a href="#">会员介绍</a></dd> <dd><a href="#">生活旅行/团购</a></dd> <dd><a href="#">常见问题</a></dd> <dd><a href="#">大家电</a></dd> <dd><a href="#">联系客服</a></dd> </dl> <dl> <dt>服务指南</dt> <dd><a href="#">购物流程</a></dd> <dd><a href="#">会员介绍</a></dd> <dd><a href="#">生活旅行/团购</a></dd> <dd><a href="#">常见问题</a></dd> <dd><a href="#">大家电</a></dd> <dd><a href="#">联系客服</a></dd> </dl> <dl> <dt>服务指南</dt> <dd><a href="#">购物流程</a></dd> <dd><a href="#">会员介绍</a></dd> <dd><a href="#">生活旅行/团购</a></dd> <dd><a href="#">常见问题</a></dd> <dd><a href="#">大家电</a></dd> <dd><a href="#">联系客服</a></dd> </dl> <dl> <dt>帮助中心</dt> <dd> <img src="images/wx_cz.jpg" alt=""> 品优购客户端 </dd> </dl> </div>
<div class="mod_copyright"> <div class="links"> <a href="#">关于我们</a> | <a href="#">联系我们</a> | 联系客服 | 商家入驻 | 营销中心 | 手机品优购 | 友情链接 | 销售联盟 | 品优购社区 | 品优购公益 | English Site | Contact U </div> <div class="copyright"> 地址:北京市昌平区建材城西路金燕龙办公楼一层 邮编:100096 电话:400-618-4000 传真:010-82935100 邮箱: zhanghj+itcast.cn <br> 京ICP备08001421号京公网安备110108007702 </div> </div> </div> </footer>
</body>
</html>
|
list.html
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
| <!DOCTYPE html> <html lang="en">
<head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>列表页-综合网购首选-正品低价、品质保障、配送及时、轻松购物!</title> <meta name="description" content="品优购商城-专业的综合网上购物商城,销售家电、数码通讯、电脑、家居百货、服装服饰、母婴、图书、食品等数万个品牌优质商品.便捷、诚信的服务,为您提供愉悦的网上购物体验!" /> <meta name="keywords" content="网上购物,网上商城,手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表,存储卡,京东" /> <link rel="shortcut icon" href=" favicon.ico"> <link rel="stylesheet" href="css/base.css"> <link rel="stylesheet" href="css/common.css"> <link rel="stylesheet" href="css/list.css">
</head>
<body>
<section class="shortcut"> <div class="w"> <div class="fl"> <ul> <li>品优购欢迎您! </li> <li> <a href="#">请登录</a> <a href="#" class="style_red">免费注册</a> </li> </ul> </div> <div class="fr"> <ul> <li>我的订单</li> <li></li> <li class="arrow-icon">我的品优购</li> <li></li> <li>品优购会员</li> <li></li> <li>企业采购</li> <li></li> <li class="arrow-icon">关注品优购</li> <li></li> <li class="arrow-icon">客户服务</li> <li></li> <li class="arrow-icon">网站导航</li> </ul> </div> </div> </section>
<header class="header w"> <div class="logo"> <h1> <a href="index.html" title="品优购商城">品优购商城</a> </h1> </div>
<div class="sk"> <img src="images/sk.png" alt=""> </div>
<div class="search"> <input type="search" name="" id="" placeholder="语言开发"> <button>搜索</button> </div>
<div class="hotwords"> <a href="#" class="style_red">优惠购首发</a> <a href="#">亿元优惠</a> <a href="#">9.9元团购</a> <a href="#">每满99减30</a> <a href="#">办公用品</a> <a href="#">电脑</a> <a href="#">通信</a> </div>
<div class="shopcar"> 我的购物车 <i class="count">8</i> </div>
</header>
<nav class="nav"> <div class="w"> <div class="sk_list"> <ul> <li><a href="#">品优秒杀</a></li> <li><a href="#">即将售罄</a></li> <li><a href="#">超值低价</a></li> </ul> </div> <div class="sk_con"> <ul> <li><a href="#">女装</a></li> <li><a href="#" class="style_red">女鞋</a></li> <li><a href="#">男装</a></li> <li><a href="#">男鞋</a></li> <li><a href="#">母婴童装</a></li> <li><a href="#">食品</a></li> <li><a href="#">智能数码</a></li> <li><a href="#">运动户外</a></li> <li><a href="#">更多分类</a></li> </ul> </div> </div> </nav>
<div class="sk_container w"> <div class="sk_hd"> <img src="upload/bg_03.png" alt=""> </div> <div class="sk_bd"> <ul class="clearfix"> <li><img src="upload/list.jpg" alt=""></li> <li><img src="upload/list.jpg" alt=""></li> <li><img src="upload/list.jpg" alt=""></li> <li><img src="upload/list.jpg" alt=""></li> <li><img src="upload/list.jpg" alt=""></li> <li><img src="upload/list.jpg" alt=""></li> <li><img src="upload/list.jpg" alt=""></li> <li><img src="upload/list.jpg" alt=""></li> <li><img src="upload/list.jpg" alt=""></li> </ul> </div> </div>
<footer class="footer"> <div class="w"> <div class="mod_service"> <ul> <li> <h5></h5> <div class="service_txt"> <h4>正品保证</h4> <p>正品保证,提供发票</p> </div> </li> <li> <h5></h5> <div class="service_txt"> <h4>正品保证</h4> <p>正品保证,提供发票</p> </div> </li> <li> <h5></h5> <div class="service_txt"> <h4>正品保证</h4> <p>正品保证,提供发票</p> </div> </li> <li> <h5></h5> <div class="service_txt"> <h4>正品保证</h4> <p>正品保证,提供发票</p> </div> </li> </ul> </div>
<div class="mod_help"> <dl> <dt>服务指南</dt> <dd><a href="#">购物流程</a></dd> <dd><a href="#">会员介绍</a></dd> <dd><a href="#">生活旅行/团购</a></dd> <dd><a href="#">常见问题</a></dd> <dd><a href="#">大家电</a></dd> <dd><a href="#">联系客服</a></dd> </dl> <dl> <dt>服务指南</dt> <dd><a href="#">购物流程</a></dd> <dd><a href="#">会员介绍</a></dd> <dd><a href="#">生活旅行/团购</a></dd> <dd><a href="#">常见问题</a></dd> <dd><a href="#">大家电</a></dd> <dd><a href="#">联系客服</a></dd> </dl> <dl> <dt>服务指南</dt> <dd><a href="#">购物流程</a></dd> <dd><a href="#">会员介绍</a></dd> <dd><a href="#">生活旅行/团购</a></dd> <dd><a href="#">常见问题</a></dd> <dd><a href="#">大家电</a></dd> <dd><a href="#">联系客服</a></dd> </dl> <dl> <dt>服务指南</dt> <dd><a href="#">购物流程</a></dd> <dd><a href="#">会员介绍</a></dd> <dd><a href="#">生活旅行/团购</a></dd> <dd><a href="#">常见问题</a></dd> <dd><a href="#">大家电</a></dd> <dd><a href="#">联系客服</a></dd> </dl> <dl> <dt>服务指南</dt> <dd><a href="#">购物流程</a></dd> <dd><a href="#">会员介绍</a></dd> <dd><a href="#">生活旅行/团购</a></dd> <dd><a href="#">常见问题</a></dd> <dd><a href="#">大家电</a></dd> <dd><a href="#">联系客服</a></dd> </dl> <dl> <dt>帮助中心</dt> <dd> <img src="images/wx_cz.jpg" alt=""> 品优购客户端 </dd> </dl> </div>
<div class="mod_copyright"> <div class="links"> <a href="#">关于我们</a> | <a href="#">联系我们</a> | 联系客服 | 商家入驻 | 营销中心 | 手机品优购 | 友情链接 | 销售联盟 | 品优购社区 | 品优购公益 | English Site | Contact U </div> <div class="copyright"> 地址:北京市昌平区建材城西路金燕龙办公楼一层 邮编:100096 电话:400-618-4000 传真:010-82935100 邮箱: zhanghj+itcast.cn <br> 京ICP备08001421号京公网安备110108007702 </div> </div> </div> </footer>
</body>
</html>
|
register.html
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
| <!DOCTYPE html> <html lang="zh-CN">
<head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>个人注册</title> <link rel="shortcut icon" href="favicon.ico"> <link rel="stylesheet" href="css/base.css"> <link rel="stylesheet" href="css/register.css"> </head>
<body> <div class="w"> <header> <div class="logo"> <a href="index.html"><img src="images/logo.png" alt=""></a> </div> </header> <div class="registerarea"> <h3>注册新用户 <div class="login">我有账号,去<a href="#">登录</a></div> </h3> <div class="reg_form"> <form action=""> <ul> <li><label for="">手机号:</label><input type="text" class="inp"><span class="error"> <i class="error_icon"></i> 手机号码格式不正确,请重新输入</span></li> <li><label for="">短信验证码:</label><input type="text" class="inp"><span class="success"> <i class="success_icon"></i> 短信验证码输入正确</span> </li> <li><label for="">登录密码:</label><input type="password" class="inp"><span class="error"> <i class="error_icon"></i> 手机号码格式不正确,请重新输入</span> </li> <li class="safe">安全程度 <em class="ruo">弱</em> <em class="zhong">中</em> <em class="qiang">强</em> </li> <li><label for="">确认密码:</label><input type="password" class="inp"><span class="error"> <i class="error_icon"></i> 手机号码格式不正确,请重新输入</span> </li> <li class="agree"><input type="checkbox" name="" id=""> 同意协议并注册 <a href="#">《用户协议》</a> </li> <li><input type="submit" value="完成注册" class="btn"></li> </ul> </form> </div> </div> <footer> <div class="mod_copyright"> <div class="links"> <a href="#">关于我们</a> | <a href="#">联系我们</a> | 联系客服 | 商家入驻 | 营销中心 | 手机品优购 | 友情链接 | 销售联盟 | 品优购社区 | 品优购公益 | English Site | Contact U </div> <div class="copyright"> 地址:北京市昌平区建材城西路金燕龙办公楼一层 邮编:100096 电话:400-618-4000 传真:010-82935100 邮箱: zhanghj+itcast.cn <br> 京ICP备08001421号京公网安备110108007702 </div> </div> </footer> </div> </body>
</html>
|
images
这个文件夹存一些网页上固定的图。
upload
这个文件夹存一些不固定的图,比如说商品的图,广告等。
最后再说点什么
还有些font文件没传上来,实在要用的话就去icomoon上找吧,不过我估计也不会再去实现这个代码了,毕竟是我初学阶段练手的,不是很规范,看着也有点乱,等以后学像样了再传到git上保存。