静态网页Html+CSS期末作业仿照淘宝

 整体页面效果:

 部分html代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/tb.css">
    <link rel="stylesheet" href="css/rester.css">
    <link rel="stylesheet" href="iconfont/font_4254713_zdw04ibv3ih/iconfont.css">
</head>
<body>
    <div class="top-Bar">  <!-- 顶部栏 -->
        
        
        
        <div class="top-Content">
            <ul >
                <li class="color">
                    中国大陆
                </li>

                <li>

                    <a href="" class="color-Red">
                        亲,请登录
                    </a>

                </li>

                <li>

                    <a href="" class="color-Graw">
                        免费注册
                    </a>

                </li>

                
                <li>

                    <a href="" class="color-Graw">
                        免费注册
                    </a>

                </li>
                
                <li>

                    <a href="" class="color-Graw">
                        免费注册
                    </a>

                </li>


            </ul>

            <!-- 右边顶部栏 -->
            <ul class="top-Bar-Right">
				
                <li >
                    <a href="" class="color-a"> 
                       <span>我的淘宝</span>  
                    </a>
					<span class="mytb-iocn">></span>
                
						<div class="taobao-hidden">		
							<div class="tb-hidden">				
								<a href="" class="a-hidden">已购买到的宝贝</a>
									<a href="" class="a-hidden">我的足迹</a>
							</div>
							
						</div>
                </li>

                <li >
                    <a href="" class="color-a">
                        购物车
					</a>
			
                </li>

                <li>
                    <a href=""class="color-a">
                        购物车
                    </a>
                </li>

                <li>
                    <a href="" class="color-a">
                        购物车
                    </a>
                </li>
                <li>
                    <a href="" class="color-a">
                        购物车
                    </a>
                </li>

                <li>
                    <a href="" class="color-a">
                        购物车
                    </a>
                </li>
                <li>
                    <a href="" class="color-a">
                        购物车
                    </a>
                </li>
               

            </ul>



        </div> 

    
    </div><!-- 顶部栏 -->
</body>
</html>

部分css代码:

body{
    background-color: #eae8eb;
}
.top-Bar{
    width: 100%;
    height: 36px;
    background-color:#f5f5f5;
}

.top-Content{
    width: 1190px;
    height: 35px;
    margin-left: 20%;
    
}
.color{
    color: #000;
    font-size: 12px;
    float: left;
}

.color-Red{
    color:#df4322;
    font-size: 12px;
    float: left;
    margin-left: 10px;
}
.color-Graw{
    color: #6c6c6c;
    font-size: 12px; 
    float: left;
    margin-left: 10px;
    
}

 完整代码在GitHub

完整代码链接   mrsgu/Taobao-Mall at master (github.com)icon-default.png?t=N7T8https://github.com/mrsgu/Taobao-Mall/tree/master

我也同样是个小白,制作不易,喜欢的话,留下个赞吧。

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值