1. 程式人生 > >網站購物車界面(div+css實現)

網站購物車界面(div+css實現)

網站購物車界面(div+css實現)

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>叮咚網購物車</title>
<style type="text/css">
.main{
width:100%;
height:590px;
border:1px solid #000;
text-decoration: none;
}
.top{
width:100%;
height:52px;
border:1px solid #000;
}
.downMenu{
width:100%;
height:30px;
font:normal normal 20px "宋體";
color:#fff;
background-color: #000000;
}
#search{
margin-left:520px;
}
a{
text-decoration: none;
}
#img1{
margin-left:330px;
}
#logo{
font:normal normal 20px "宋體";
padding-bottom: 5px;
}
#d{
padding-bottom:30px;
margin-left:290px;
}
a:link{
font-size: 20px;
color:aquamarine;
}
a:visited{
color:darkgray;
}
a:hover{
color:#FFFFFF;
}
a:active{
color:cadetblue;
}
.bottom{
text-align: center;
}
#img5{
width:100%;
height:80px;
}
#indent{
width:100%;
height:300px;
padding-left: 180px;
padding-top:60px;
}
table{
text-align: center;
border-collapse:collapse;
}
#tr1{
background-color:antiquewhite;
}
#tr2{
background-color:aliceblue;
}
#font1{
margin-left:530px;
font:italic normal 16px "黑體";
}
#font2{
margin-left:770px;
font:normal normal 16px "黑體";
}
</style>

</head>
<body>
    <div class="main">
        <div class="top">
            <div id="logo">
                <img src="img/logo.gif" title="叮咚網logo" alt="logo"></img>    
                <img src="img/header.png" title="img1"   alt="img1" id="img1"></img>    
                <a href="登錄.html" target="_blank" id="d"><font color="darkcyan">登錄</font></a>&nbsp;&nbsp;
                <a href="註冊.html" target="_blank"><font color="darkcyan">註冊</font></a>&nbsp;&nbsp;
                <a href="購物車.html" target="_blank"><font color="darkcyan">購物車</font></a>
            </div>
        </div>
        <div class="downMenu">
                <a href="#" target="_blank">首頁</a>&nbsp;&nbsp;
                <a href="#" target="_blank">手機數碼</a>&nbsp;&nbsp;
                <a href="#" target="_blank">電腦辦公</a>&nbsp;&nbsp;
                <a href="#" target="_blank">學習用品</a>&nbsp;&nbsp;
                <a href="#" target="_blank">家具電器</a>
                <input  id="search" type="text" name="search" value="search">
                <input type="submit" name="submit" value="submit">
        </div>
        <div id="indent">
            <font color="#000000" size="5px" weight="bold">訂單詳情</font>
            <table border="1px" width="960px" height="100px">
                <tr id="tr1">
                    <td>圖片</td>
                    <td>商品</td>
                    <td>價格</td>
                    <td>數量</td>
                    <td>小計</td>
                    <td>操作</td>
                </tr>
                <tr id="tr2">
                    <td>
                        <img src="img/dadonggua.jpg" width="80px" height="60px">
                    </td>
                    <td>
                        <font color="aqua"> 有機蔬菜&nbsp;&nbsp;大冬瓜</font>
                    </td>
                    <td>
                        ¥298.00
                    </td>
                    <td>
                        <input type="text" name="price" value="1">
                    </td>
                    <td>
                        ¥596.00
                    </td>
                    <td>
                        刪除
                    </td>
                </tr>
            </table>
            <div id="price">
                <font color="darkorange" id="font1">登錄後是否享有優惠</font>&nbsp;&nbsp;
                贈送積分:
                <font color="darkorange">596</font>
                商品金額:
                <font color="darkorange">¥596.00元</font><br />
                <font color="deepskyblue" id="font2">清空購物車</font>&nbsp;&nbsp;&nbsp;
                <input type="submit" name="redister" value="提交訂單" id="submit">
            </div>
        </div>

        <div class="img5">
            <img src="img/footer.jpg" id="img5">
        </div>
        <div class="bottom">
            <a href="#" target="_blank"><font color="dodgerblue" size="3px"> 關於我們</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">聯系我們</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">招賢納士</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">法律聲明</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">友情鏈接</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">支付方式</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">配送方式</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">服務聲明</font></a>&nbsp;&nbsp;&nbsp;
            <a href="#" target="_blank"><font color="dodgerblue" size="3px">廣告聲明</font></a>
        </div>
        <div class="bottom">
            <font size="2px">Copyright&copy;2015-2016西部開源&nbsp;版權所有</font>
        </div>
    </div>
</body>

</html>

網站購物車界面(div+css實現)