用HTML和CSS做一个简单的静态京东手机端页面含源码分享 您所在的位置:网站首页 仿拼多多商城html源码 用HTML和CSS做一个简单的静态京东手机端页面含源码分享

用HTML和CSS做一个简单的静态京东手机端页面含源码分享

2023-09-10 03:10| 来源: 网络整理| 查看: 265

10分钟内的时间可以完成,具体完成效果如下:

百度链接:https://pan.baidu.com/s/11XGuDfeDZsY2xYYmq4KcRg  提取码:42jq

整体文件为:

代码部分: index.html 京东移动端页面 打开京东App,购物更轻松 立即打开 登陆 京东超市 数码电器 京东服饰 京东生鲜 京东到家 充值缴费 9.9元拼 领卷 领金贴 PLUS会员 index.css body { width: 100%; min-width: 320px; max-width: 640px; margin: 0 auto; font-size: 14px; font-family: -apple-system, Helvetica, sans-serif; color: #666; line-height: 1.5; } * { -webkit-tap-highlight-color: transparent; } input { -webkit-appearance: none; } img, a { -webkit-touch-callout: none; } a { color: #666; text-decoration: none; } ul { margin: 0; padding: 0; list-style: none; } img { vertical-align: middle; } div { box-sizing: border-box; } .clearfix:after { content: ""; display: block; line-height: 0; visibility: hidden; height: 0; clear: both; } .app { height: 45px; } .app ul li { float: left; height: 45px; line-height: 45px; background-color: #333333; text-align: center; color: #fff; } .app ul li:nth-child(1) { width: 8%; } .app ul li:nth-child(1) img { width: 10px; } .app ul li:nth-child(2) { width: 10%; } .app ul li:nth-child(2) img { width: 30px; vertical-align: middle; } .app ul li:nth-child(3) { width: 57%; } .app ul li:nth-child(4) { width: 25%; background-color: #F63515; } .search-wrap { position: fixed; overflow: hidden; width: 100%; height: 44px; min-width: 320px; max-width: 640px; } .search-btn { position: absolute; top: 0; left: 0; width: 40px; height: 44px; } .search-btn::before { content: ""; display: block; width: 20px; height: 18px; background: url(../images/s-btn.png) no-repeat; background-size: 20px 18px; margin: 14px 0 0 15px; } .search-login { position: absolute; right: 0; top: 0; width: 40px; height: 44px; color: #fff; line-height: 44px; } .search { position: relative; height: 30px; background-color: #fff; margin: 0 50px; border-radius: 15px; margin-top: 7px; } .jd-icon { width: 20px; height: 15px; position: absolute; top: 8px; left: 13px; background: url(../images/jd.png) no-repeat; background-size: 20px 15px; } .jd-icon::after { content: ""; position: absolute; right: -8px; top: 0; display: block; width: 1px; height: 15px; background-color: #ccc; } .sou { position: absolute; top: 8px; left: 50px; width: 18px; height: 15px; background: url(../images/jd-sprites.png) no-repeat -81px 0; background-size: 200px auto; } .slider img { width: 100%; } .brand { overflow: hidden; border-radius: 10px 10px 0 0; } .brand div { float: left; width: 33.33%; } .brand div img { width: 100%; } nav { padding-top: 5px; } nav a { float: left; width: 20%; text-align: center; } nav a img { width: 40px; margin: 10px 0; } nav a span { display: block; } .news { margin-top: 20px; } .news img { width: 100%; } .news a { float: left; box-sizing: border-box; } .news a:nth-child(1) { width: 50%; } .news a:nth-child(n+2) { width: 25%; border-left: 1px solid #ccc; } nor.css html { font-family: sans-serif; line-height: 1.15; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; } body { margin: 0; } article, aside, footer, header, nav, section { display: block; } h1 { font-size: 2em; margin: 0.67em 0; } figcaption, figure, main { display: block; } figure { margin: 1em 40px; } hr { box-sizing: content-box; height: 0; overflow: visible; } pre { font-family: monospace, monospace; font-size: 1em; } a { background-color: transparent; -webkit-text-decoration-skip: objects; } a:active, a:hover { outline-width: 0; } abbr[title] { border-bottom: none; text-decoration: underline; text-decoration: underline dotted; } b, strong { font-weight: inherit; } b, strong { font-weight: bolder; } code, kbd, samp { font-family: monospace, monospace; font-size: 1em; } dfn { font-style: italic; } mark { background-color: #ff0; color: #000; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } audio, video { display: inline-block; } audio:not([controls]) { display: none; height: 0; } img { border-style: none; } svg:not(:root) { overflow: hidden; } button, input, optgroup, select, textarea { font-family: sans-serif; font-size: 100%; line-height: 1.15; margin: 0; } button, input { overflow: visible; } button, select { text-transform: none; } button, html [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; } button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; } button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; } fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } progress { display: inline-block; vertical-align: baseline; } textarea { overflow: auto; } [type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; } [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; } [type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } [type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } details, menu { display: block; } summary { display: list-item; } canvas { display: inline-block; } template { display: none; } [hidden] { display: none; }

images和upload都为图片部分,链接下载即可~



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有