京東商城項目實戰(1)------京東商城首頁

項目實戰:京東商城(1)----京東商城首頁javascript

     京東商城(2)----京東商城登陸頁面css

     京東商城(3)----京東商城註冊頁面html

效果圖:java

 

首頁源代碼(如需頁面其他源碼請在下方評論留言):jquery

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>京東商城</title>
    <link rel="shortcut icon" href="favicon.ico"/>
    <link rel="stylesheet" href="css/base.css"/>
    <link rel="stylesheet" href="css/index.css"/>
</head>
<body>
<!--右側toolbar-->
<div class="toolbar" id="toolbar">
    <div class="t1">
        <a href=""><i class="icon1"></i><span>京東會員</span></a>
    </div>
    <div class="t2">
        <a href=""><i class="icon2"></i><span>購物車</span></a>
    </div>
    <div class="t3">
        <a href=""><i class="icon3"></i><span>個人關注</span></a>
    </div>
    <div class="t4">
        <a href=""><i class="icon4"></i><span>個人足跡</span></a>
    </div>
    <div class="t5">
        <a href=""><i class="icon5"></i><span>個人消息</span></a>
    </div>
    <div class="t6">
        <a href=""><i class="icon6"></i><span>諮詢JIMI</span></a>
    </div>
    <div class="t7">
        <a href=""><i class="icon7"></i><span>反饋</span></a>
    </div>
</div>

<!--返回頂部-->

<div id="fhdb">
    <a href="#"><i class="icon7"></i><span id="fhdbspan">返回頂部</span></a>
</div>

<div class="mod_container" id="app">
    <!--頂部圖片-->
    <div class="J_event" id="topbanner">
        <div class="grid_c1">
            <a href="#" class="banner"></a>
            <a href="javascript:;" class="jd_close" id="jd_close"></a>
        </div>
    </div>

    <!--頂部shortcut-->
    <div class="shortcut" id="shortcut">
        <div class="w">
            <div class="fl" id="pfl">
                <div class="wzt" id="wzt">
                    <i class="iconfont" id="nowi">&#xe868;</i>
                    <span id="nowpt">北京</span>
                </div>
                <div class="pt" id="pt">
                    <div class="gn"></div>
                    <div class="gw">
                        <h3>Available Sites</h3>
                        <i class="i1"></i><a href="#">Global Site</a>
                        <i class="i2"></i><a href="#">Сайт России</a>
                        <i class="i3"></i><a href="#">Situs Indonesia</a>
                        <i class="i4"></i><a href="#">Sitio de España</a>
                        <i class="i5"></i><a href="#">เว็บไซต์ประเทศไทย</a>
                    </div>
                </div>
            </div>
            <div class="fr">
                <ul>
                    <li id="sjjd">
                        <div id="sjjdt"><a href="#">手機京東</a></div>
                        <div class="ewm">
                            <img src="images/mobile_qrcode.png" alt=""/>
                        </div>
                        <div class="sj"></div>
                        <div id="ewm">
                            <div>
                                <div class="l"><img src="images/ewmd1.png" alt=""/></div>
                                <div class="r">
                                    <h3><a href="#">手機京東</a></h3>
                                    <p>新人專享大禮包</p>
                                    <p><a href="#" class="t1"></a><a href="#" class="t2"></a><a href="#" class="t3"></a>
                                    </p>
                                </div>
                            </div>
                            <div>
                                <div class="l"><img src="images/ewmd2.jpg" alt=""/></div>
                                <div class="r">
                                    <h3><a href="#">關注京東微信</a></h3>
                                    <p style="width: 100px;line-height: 18px;margin-top: 5px">微信掃一掃關注新粉最高180元驚喜禮包</p>
                                </div>
                            </div>
                            <div>
                                <div class="l"><img src="images/ewmd3.jpg" alt=""/></div>
                                <div class="r">
                                    <h3><a href="#">京東金融客戶端</a></h3>
                                    <p>新人專享大禮包</p>
                                    <p><a href="#" class="t1"></a><a href="#" class="t2"></a>
                                    </p>
                                </div>
                            </div>
                        </div>
                    </li>
                    <li class="spacer"></li>
                    <li id="wzdh">
                        <div id="wzdht"><a href="#">網站導航</a><i class="iconfont1">&#xe7ec;</i></div>
                        <div id="wzdh_inner"></div>
                    </li>
                    <li class="spacer"></li>
                    <li id="khfw">
                        <div id="khfwt">
                            <a href="#">客戶服務</a><i class="iconfont1">&#xe7ec;</i>
                        </div>
                        <div id="khfw_inner">
                            <h3>客戶</h3>
                            <a href="#">幫助中心</a>
                            <a href="#">售後服務</a>
                            <a href="#">在線客服</a>
                            <a href="#">意見建議</a>
                            <a href="#">電話客服</a>
                            <a href="#">客服郵箱</a>
                            <a href="#">金融諮詢</a>
                            <a href="#">全球售客服</a>
                            <h3>商戶</h3>
                            <a href="#">合做招商</a>
                            <a href="#">學習中心</a>
                            <a href="#">商家後臺</a>
                            <a href="#">京麥工做臺</a>
                            <a href="#">商家幫助</a>
                            <a href="#">規則平臺</a>
                        </div>
                    </li>
                    <li class="spacer"></li>
                    <li id="qycg">
                        <div id="qycgt">
                            <a href="#">企業採購</a><i class="iconfont1">&#xe7ec;</i>
                        </div>
                        <div id="qycg_inner">
                            <p>
                                <a href="#">企業購</a><a href="#">商用場景館</a><br>
                                <a href="#">工業品</a><a href="#">禮品卡</a>
                            </p>
                        </div>
                    </li>
                    <li class="spacer"></li>
                    <li><a href="#">京東會員</a></li>
                    <li class="spacer"></li>
                    <li id="wdjd">
                        <div id="wdjdt">
                            <a href="#">個人京東</a><i class="iconfont1">&#xe7ec;</i>
                        </div>
                        <div id="wdjd_inner">
                            <p>
                                <a href="#">待處理訂單</a><a href="#">返修退換貨</a><a href="#">降價商品</a><a href="#">消息</a><a href="#">個人問答</a><a
                                    href="#">個人關注</a>
                            </p>
                            <p>
                                <a href="#">個人京豆</a><a href="#">個人白條</a><a href="#">個人優惠券</a><a href="#">個人理財</a>
                            </p>
                        </div>
                    </li>
                    <li class="spacer"></li>
                    <li class="sc_ts1"><a href="#">個人訂單</a></li>
                    <li class="spacer" style="margin: 11px 10px 0"></li>
                    <li class="sc_ts2"><a href="login.html" id="login">你好,請登陸</a>&nbsp;&nbsp;<a href="regist.html" class="col-red">免費註冊</a></li>
                </ul>
            </div>
        </div>
    </div>
    <!--頭部分-->
    <div class="header" id="header">
        <div class="w">
            <div class="logo clearfix">
                <a href="#"></a>
            </div>
            <div class="search fl">
                <label class="form">
                    <label for="text" class="searchbg" id="searchbg">希捷移動硬盤</label>
                    <input type="text" id="text" name="key" class="search_input" autocomplete="off">
                    <span class="zxj"></span>
                    <button type="submit"><i class="iconfont2">&#xe7e3;</i></button>
                </label>
            </div>
            <div class="shopcar">
                <div class="left fl"><i class="iconfont3 col-red fr">&#xe71b;</i></div>
                <a href="#" class="col-red">個人購物車</a>
                <i class="count">0</i>
            </div>
            <div class="hotwords font_col1">
                <a href="#" class="col-red ts">搶百元空調</a>
                <a href="#">調味5折</a>
                <a href="#">巧克力</a>
                <a href="#">七夕</a>
                <a href="#">遊戲手機</a>
                <a href="#">電腦裝備</a>
                <a href="#">電視影音</a>
                <a href="#">姨媽節</a>
                <a href="#">火力全開</a>
            </div>
            <div class="navitems">
                <ul>
                    <li><a href="#">秒殺</a></li>
                    <li><a href="#">優惠券</a></li>
                    <li><a href="#">PLUS會員</a></li>
                    <li><a href="#">閃購</a></li>
                </ul>
                <ul>
                    <li class="spacer"></li>
                    <li class="tsle"><a href="#">拍賣</a></li>
                    <li><a href="#">京東服飾</a></li>
                    <li><a href="#">京東超市</a></li>
                    <li><a href="#">生鮮</a></li>
                </ul>
                <ul>
                    <li class="spacer"></li>
                    <li class="tsle"><a href="#">全球購</a></li>
                    <li><a href="#">京東金融</a></li>
                </ul>
            </div>
            <div class="treasure">
                <a href="#"></a>
            </div>
        </div>
    </div>

    <!--第二部分-->
    <div class="fs clearfix">
        <div class="w">
            <div class="fs_col1" id="fs_col1">
                <ul id="tul">
                    <li><a href="#">家用電器</a></li>
                    <li><a href="#">手機</a><span class="spacer">/</span><a href="#">運營商</a><span class="spacer">/</span><a href="#">數碼</a></li>
                    <li><a href="#">電腦</a><span class="spacer">/</span><a href="#">辦公</a></li>
                    <li><a href="#">家居</a><span class="spacer">/</span><a href="#">傢俱</a><span class="spacer">/</span><a href="#">家裝</a><span class="spacer">/</span><a href="#">廚具</a></li>
                    <li><a href="#">男裝</a><span class="spacer">/</span><a href="#">女裝</a><span class="spacer">/</span><a href="#">童裝</a><span class="spacer">/</span><a href="#">內衣</a></li>
                    <li><a href="#">美妝</a><span class="spacer">/</span><a href="#">個護清潔</a><span class="spacer">/</span><a href="#">寵物</a></li>
                    <li><a href="#">女鞋</a><span class="spacer">/</span><a href="#">箱包</a><span class="spacer">/</span><a href="#">鐘錶</a><span class="spacer">/</span><a href="#">珠寶</a></li>
                    <li><a href="#">男鞋</a><span class="spacer">/</span><a href="#">運動</a><span class="spacer">/</span><a href="#">戶外</a></li>
                    <li><a href="#">房產</a><span class="spacer">/</span><a href="#">汽車</a><span class="spacer">/</span><a href="#">汽車用品</a></li>
                    <li><a href="#">母嬰</a><span class="spacer">/</span><a href="#">玩具樂器</a></li>
                    <li><a href="#">食品</a><span class="spacer">/</span><a href="#">酒類</a><span class="spacer">/</span><a href="#">生鮮</a><span class="spacer">/</span><a href="#">特產</a></li>
                    <li><a href="#">藝術</a><span class="spacer">/</span><a href="#">禮品鮮花</a><span class="spacer">/</span><a href="#">農資綠植</a></li>
                    <li><a href="#">醫藥保健</a><span class="spacer">/</span><a href="#">計生情趣</a></li>
                    <li><a href="#">圖書</a><span class="spacer">/</span><a href="#">音像</a><span class="spacer">/</span><a href="#">電子書</a></li>
                    <li><a href="#">機票</a><span class="spacer">/</span><a href="#">酒店</a><span class="spacer">/</span><a href="#">旅遊</a><span class="spacer">/</span><a href="#">生活</a></li>
                    <li><a href="#">理財</a><span class="spacer">/</span><a href="#">衆籌</a><span class="spacer">/</span><a href="#">白條</a><span class="spacer">/</span><a href="#">保險</a></li>
                    <li><a href="#">安裝</a><span class="spacer">/</span><a href="#">維修</a><span class="spacer">/</span><a href="#">清洗保養</a></li>
                </ul>
            </div>
            <div class="fs_col2" id="fs_col2">
                <button type="button" class="button1" id="button1">
                    <i class="iconfont4">&#xe7ee;</i>
                </button>
                <div class="lbt">
                    <ul>
                        <li><a href="#"><img src="images/index_lbt/t0.jpg" alt=""/></a></li>
                        <li><a href="#"><img src="images/index_lbt/t1.jpg" alt=""/></a></li>
                        <li><a href="#"><img src="images/index_lbt/t2.jpg" alt=""/></a></li>
                        <li><a href="#"><img src="images/index_lbt/t3.jpg" alt=""/></a></li>
                        <li><a href="#"><img src="images/index_lbt/t4.jpg" alt=""/></a></li>
                        <li><a href="#"><img src="images/index_lbt/t5.jpg" alt=""/></a></li>
                        <li><a href="#"><img src="images/index_lbt/t6.jpg" alt=""/></a></li>
                        <li><a href="#"><img src="images/index_lbt/t7.jpg" alt=""/></a></li>
                        <li><a href="#"><img src="images/index_lbt/t0.jpg" alt=""/></a></li>
                    </ul>
                </div>
                <button type="button" class="button2" id="button2">
                    <i class="iconfont5">&#xe7ed;</i>
                </button>
                <div class="yd" id="yd"></div>
            </div>
            <div class="fs_col3">
                <a href="#"><img src="images/gg1.jpg" alt=""/></a>
                <a href="#" class="mid"><img src="images/gg2.jpg" alt=""/></a>
                <a href="#"><img src="images/gg3.jpg" alt=""/></a>
            </div>
            <div class="j_fs_col4">
                <div class="login_tx">
                    <a href="#">
                        <img src="images/no_login.jpg" alt=""/>
                    </a>
                </div>
                <div class="user_show">
                    <p class="user_tip">Hi~歡迎來到京東!</p>
                    <p>
                        <a href="">登陸</a>&nbsp;<a href="">註冊</a>
                    </p>
                </div>
                <div class="user_profit">
                    <a href="#" class="link1">新人福利</a>
                    <a href="#" class="link2">PLUS會員</a>
                </div>
                <div class="news" id="news">
                    <p><a href="javascript:;" id="newsa1" class="news_active">促銷</a><span class="spacer">|</span><a href="javascript:;" id="newsa2">公告</a><a href="#" class="fr">更多</a></p>
                    <div class="inner_news" id="inner_news">
                        <ul>
                            <li><a href="#">0元抽刃7000遊戲臺機。</a></li>
                            <li><a href="#">大閘蟹滿499減150</a></li>
                            <li><a href="#">滿199減100</a></li>
                            <li><a href="#">珠海房產旺鋪8.18開拍</a></li>
                        </ul>
                        <ul class="news_show">
                            <li><a href="#">意大利奢侈品牌菲拉格慕入...</a></li>
                            <li><a href="#">京東PLUS會員權益更新及會...</a></li>
                            <li><a href="#">京東啓用全新客服電話「95...</a></li>
                            <li><a href="#">關於召回普利司通(天津)...</a></li>
                        </ul>
                    </div>
                </div>
                <div class="j_service">
                    <dl>
                        <dt><a href="#">話費</a><a href="#">機票</a><a href="#">酒店</a><a href="#">遊戲</a></dt>
                        <dd><a href="#">花費充值</a><a href="#">流量充值</a><a href="#">套餐變動</a></dd>
                        <p class="p1">號碼 <input type="text" placeholder="移動/聯通/電信"/></p>
                        <p class="p1">面值
                            <select name="" id="">
                                <option value="10">10元</option>
                                <option value="20">20元</option>
                                <option value="30">30元</option>
                                <option value="50">50元</option>
                                <option value="100">100元</option>
                                <option value="200">200元</option>
                                <option value="300">300元</option>
                                <option value="500">500元</option>
                            </select>
                        </p>
                        <p class="money">¥98.0-¥100.0</p>
                        <p><a href="#" class="cz">快速充值</a></p>
                        <p class="quan"><a href="#">搶90減50元話費券</a></p>
                    </dl>
                </div>
            </div>
        </div>
        <div class="bg">
            <a href="#" class="dt"></a>
        </div>
    </div>
    <!--底部-->
    <div class="footer">
        <div class="service">
            <div class="slogen">
                <span  class="item slogen1"><img src="images/slogen1.png" alt=""/></span>
                <span  class="item slogen2"><img src="images/slogen2.png" alt=""/></span>
                <span  class="item slogen3"><img src="images/slogen3.png" alt=""/></span>
                <span  class="item slogen4"><img src="images/slogen4.png" alt=""/></span>
            </div>
            <div class="w shopping clearfix">
                <dl>
                    <dt><a href="#">購物指南</a></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><a href="#">配送方式</a></dt>
                    <dd><a href="#">上門自提</a></dd>
                    <dd><a href="#">211限時達</a></dd>
                    <dd><a href="#">配送服務查詢</a></dd>
                    <dd><a href="#">配送費收取標準</a></dd>
                    <dd><a href="#">海外配送</a></dd>
                </dl>
                <dl>
                    <dt><a href="#">支付方式</a></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>
                </dl>
                <dl>
                    <dt><a href="#">售後服務</a></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>
                </dl>
                <dl>
                    <dt><a href="#">特點服務</a></dt>
                    <dd><a href="#">奪寶島</a></dd>
                    <dd><a href="#">DIY裝機</a></dd>
                    <dd><a href="#">延保服務</a></dd>
                    <dd><a href="#">京東E卡</a></dd>
                    <dd><a href="#">京東通訊</a></dd>
                    <dd><a href="#">京東JD+</a></dd>
                </dl>
                <div class="coverage">
                    <div class="dt">京東自營覆蓋區縣</div>
                    <div class="dd">
                        <p> 京東已向全國2661個區縣提供自營配送服務,支持貨到付款、POS機刷卡和售後上門服務。</p>
                        <p class="looklook fr"><a href="#">查看詳情 ></a></p>
                    </div>
                </div>
            </div>
        </div>
        <div class="w aginw">
            <div class="links">
                <a href="#">關於咱們</a>
                <span class="spacer">|</span>
                <a href="#">聯繫咱們</a>
                <span class="spacer">|</span>
                <a href="#">聯繫客服</a>
                <span class="spacer">|</span>
                <a href="#">合做招商</a>
                <span class="spacer">|</span>
                <a href="#">商家幫助</a>
                <span class="spacer">|</span>
                <a href="#">營銷中心</a>
                <span class="spacer">|</span>
                <a href="#">手機京東</a>
                <span class="spacer">|</span>
                <a href="#">友情連接</a>
                <span class="spacer">|</span>
                <a href="#">銷售聯盟</a>
                <span class="spacer">|</span>
                <a href="#">京東社區</a>
                <span class="spacer">|</span>
                <a href="#">風險監測</a>
                <span class="spacer">|</span>
                <a href="#">隱私政策</a>
                <span class="spacer">|</span>
                <a href="#">京東公益</a>
                <span class="spacer">|</span>
                <a href="#">English Site</a>
                <span class="spacer">|</span>
                <a href="#">Media & IR</a>
            </div>
            <div class="copyright">
                <a href="#">京公網安備 11000002000088號</a><span class="spacer">|</span>京ICP證070359號<span class="spacer">|</span><a
                    href="#">互聯網藥品信息服務資格證編號(京)-經營性-2014-0008</a><span class="spacer">|</span>新出發京零 字第大120007號<br/>

                互聯網出版許可證編號新出網證(京)字150號<span class="spacer">|</span><a href="#">出版物經營許可證</a><span class="spacer">|</span><a
                    href="#">網絡文化經營許可證京網文[2014]2148-348號</a><span class="spacer">|</span>違法和不良信息舉報電話:4006561155<br/>

                Copyright © 2004 - 2018  京東JD.com 版權全部<span class="spacer">|</span>消費者維權熱線:4006067733&nbsp;&nbsp;<a
                    href="#">經營證照</a><span class="spacer">|</span>(京)網械平臺備字(2018)第00003號<br/>

                <i class="city1"></i><a href="#">Global Site</a><span class="spacer">|</span><i class="city2"></i><a href="#">Сайт России</a><span class="spacer">|</span><i class="city3"></i><a href="#">Situs Indonesia</a><span class="spacer">|</span><i class="city4"></i><a href="#">Sitio de España</a><span class="spacer">|</span><i class="city5"></i><a href="#">เว็บไซต์ประเทศไทย</a><br/>

                京東旗下網站:<a href="#">京東錢包</a><span class="spacer">|</span><a href="#">京東雲</a><br/>
            </div>
            <div class="message">
                <a href="#" class="icon1"></a>
                <a href="#" class="icon2"></a>
                <a href="#" class="icon3"></a>
                <a href="#" class="icon4"></a>
                <a href="#" class="icon5"></a>
                <a href="#" class="icon6"></a>
            </div>
        </div>
    </div>
</div>
<script src="js/jquery-1.12.4.js"></script>

<script type="text/javascript" src="js/index.js"></script>
</body>
</html>
相關文章
相關標籤/搜索