web前端练习:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设计边框</title>
    <style>
        .box{
            width: 200px;
            height: 100px;
            border: 1px black solid;
            margin: auto;
            background-color: rgb(241, 239, 239);         
        }
        .box{
            position: relative; 
        }
       .box1{
            width: 130px;
            height: 100px;
            position: absolute;
            right: 0;
            top: 0;
            font-size: 15px;
            margin: auto;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="left-img">
            <img width="50px" height="100px"src="https://p1.ssl.qhimg.com/t01dbec68158ec63e0e.jpg">
       </div>
    <div class="box1">   
       <P><b>张惠妹aMEI</b></P>
       <p>台湾歌手张惠妹</p>
    </div>
    </div>
</body>
</html>

​
​
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>歌手页面</title>
    <style>
    .content {
        width: 1300px;
        height: 1800px;
        border: 1px red solid;
        margin: auto;
    }

    .box {
        width: 200px;
        height: 280px;
        border: 1px solid #ccc;
        box-shadow: 2px 2px 3px #999;
        float: left;
        margin: 10px 28px;
    }
    .top-img {
        position: relative;
        cursor: pointer;
    }
    .top-img:hover .img-content {
        display: block;
    }
    .top-img > img {
        width: 200px;
        height: 200px;
    }
    .img-content {
        width: 200px;
        height: 40px;
        background-color: rgba(0, 0, 0, .5);
        position: absolute;
        left: 0;
        bottom: 0;
        font-size: 12px;
        color: white;
        /* text-align: center; */
        line-height: 40px;
        display: none;
    }


    .clear-float {
        clear: both;
    }
</style>
</head>
<body>
<div class="content">
    <div class="box">
        <div class="top-img">
            <img src=https://ts1.cn.mm.bing.net/th/id/R-C.7993c51bcf8ff37a199016608d0d8d55?rik=K%2bdHFVjPp4zoDg&riu=http%3a%2f%2fp0.ifengimg.com%2fa%2f2017_06%2f137b7dc35622a62_size571_w1600_h1066.jpeg&ehk=2N6hXyBHWo1D8iHqgLSh0H80gYnte56a4vKh4JRiM80%3d&risl=&pid=ImgRaw&r=0 alt="">
            <div class="img-content">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;播放量:3000W+
            </div>
        </div>
        <p>
            「武侠影视金曲100首』每个人心中的江湖梦
        </p>
    </div>
</body>
</html>

​

​

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>飙升榜</title>
    <style>
        .box{
            width:300px;
            height: 500px;
            border: 1px rgb(166, 163, 163) solid;
            margin-top: 20px;
            background-color: rgb(244, 247, 247);
        }
        ol > div > img{
            margin-top: 10px;
            box-shadow: 10px 0px 10px #beb8b8,;
        }   
        .box1{
            position: absolute;
            left: 70px;
            top: 55px;
            color: white;                                  
        }
        .box2{
            position: absolute;
            right: 1500px;
            top: 20px;
            color: black;
        }
        .odd{
            background-color: #ddd;
        }
        .even{
            background-color: #eee;
        }
    </style>
</head>
<body>
    <ol class="box">
        <div class="left-img">
            <img src="C:\Users\26235\Desktop\微信图片_20250112184126.png">
        </div>
        <div class="box1">
            <p>飙升榜</p>
        </div>
        <div class="box2">
            <p><b>飙升榜</b></p>
        </div>
        <li class="odd">
            <span>不重逢</span> 
        <li class="even">
            <span>温暖的房子</span>
        <li class="odd">
            <span>不重逢</span> 
        <li class="even">
            <span>不重逢</span> 
        <li class="odd">
            <span>不重逢</span>
        <li class="even">
            <span>不重逢</span>
        <li class="odd">
            <span>不重逢</span>
        <li class="even">
            <span>不重逢</span>
        <li class="odd">
            <span>不重逢</span>  
        <li class="even">
            <span>不重逢</span>         
</body>
</html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>九宫格</title>
    <style>
        .box{
            width: 400px;
            height: 400px;
            background-color: antiquewhite;
            text-align: center;
        }
        .box1{
            width: 400px;
            height: 50px;
        }
        .img{
            width: 120px;
            height: 100px;
            float: left;
        }
        .img > img{
            width: 50px;
            height: 50px;
        }   
    </style>

</head>
<body>
    <div class="box">
        <div class="box1">
            <div class="img">
                <img src="C:\Users\26235\Desktop\微信图片_20250115112305.png">
                <p>&nbsp;&nbsp;京东</p>
            </div>    
            <div class="img">
                <img src="C:\Users\26235\Desktop\微信图片_2025011511230511.png">
                <p>&nbsp;&nbsp;充值中心</p>
            </div>
            <div class="img">
                <img src="C:\Users\26235\Desktop\微信图片_202501151123051111.png">
                <p>&nbsp;&nbsp;政府消费劵</p>
            </div>    
            <div class="img">
                <img src="C:\Users\26235\Desktop\微信图片_20250115112305111111.png">
                <p>&nbsp;&nbsp;礼品卡</p>
            </div>
            <div class="img">
                <img src="C:\Users\26235\Desktop\微信图片_202501151123051222.png">
                <p>&nbsp;&nbsp;金条借款</p>
            </div>
            <div class="img">
                <img src="C:\Users\26235\Desktop\微信图片_202501151123051333.png">
                <p>&nbsp;&nbsp;国家补贴</p>
            </div>
            <div class="img">
                <img src="C:\Users\26235\Desktop\微信图片_202501151123051666.png">
                <p>&nbsp;&nbsp;爱回收</p>
            </div>
            <div class="img">
                <img src="C:\Users\26235\Desktop\微信图片_2025011511230515555.png">
                <p>&nbsp;&nbsp;企业计划购</p>
            </div>
            <div class="img">
                <img src="C:\Users\26235\Desktop\微信图片_202501151123051888.png">
                <p>&nbsp;&nbsp;买贵双倍赔</p>    
            </div>    
        </div>            
    </div>
</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索栏</title>
    <style>
        .box{
            width: 1000px;
            height: 50px;
            border: 1px red solid;
            border-radius: 10px;
            margin: auto;
        }
        .box1{
            width: 80px;
            height: 40px;
            background-color: red;
            color: white;
            position: absolute;
            right: 360px;
            top: 13px;
            border-radius: 10px;
            margin: auto;
        }
        div > p{
            text-align: center;
            line-height: 10px
        }
        div > div{
            color: rgb(177, 183, 183);
        }

        div > div > img{
            position: absolute;
            right: 450px;
            top: 15px;
            margin: auto;
            color: black;
        }


    </style>
</head>
<body>
    <div class="box">
        <div class="right-img">
                    <img width="50px" height="30px"src="C:\Users\26235\Desktop\微信图片_20250112132416.jpg">
       </div>
        <div> &nbsp;  &nbsp; &nbsp;  小白熊恒温跳奶器</div>
    </div>
    <div class="box1">
        <p>搜索</p>
    </div>
    

</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>一行页面</title>
    <style>
        .box{
            width: 1400px;
            height: 150px;
            border: 1px solid red;
            margin: auto;
           
        }
        .img{
            width: 180px;
            height: 100px;
            float: left;
            margin-top: 10px;
            margin-left: 15px;
        }
        .p{
            font-size: 10px;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="img">
            <img src="C:\Users\26235\Desktop\微信图片_20250115121059111.png">
            <p>音乐开发平台</p>
        </div>
        <div class="img">
            <img src="C:\Users\26235\Desktop\微信图片_20250115121059555.png">
            <p>云村交易所</p>
        </div>
        <div class="img">
            <img src="C:\Users\26235\Desktop\微信图片_202501151210599999.png">
            <p>X studioAl歌手</p>
        </div>
        <div class="img">
            <img src="C:\Users\26235\Desktop\微信图片_20250115121059888.png">
            <p>用户认证</p>
        </div>
        <div class="img">
            <img src="C:\Users\26235\Desktop\微信图片_202501151210597777.png">
            <p>Al免费写歌</p>
        </div>
        <div class="img">
            <img src="C:\Users\26235\Desktop\微信图片_2025011512105955555.png">
            <p>云推歌</p>
        </div>
        <div class="img">
            <img src="C:\Users\26235\Desktop\微信图片_20250115121059444.png">
            <p>赞赏</p>
        </div>
    </div>
    
</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人页面</title>
    <style>
		.box{
			width: 450px;
			height: 800px;
			margin: auto;
			background-color: rgb(245, 245, 245);
		}
		.box1{
			width: 450px;
			height: 200px;
			display: flex;
			margin: auto;
		}
		.content{
			width: 80%;
			height: 80%;
		}
		.content img{
			width: 150px;
			height: 150px;
			margin: 20px;
		}
		.text{
			display: flex;
			width: 200px;
			height: 50px;
			margin-top: 20px;
			margin-left: -180px;
		}
		.text-info{
			display: flex;
			width: 200px;
			height: 50px;
			margin-top: 60px;
			margin-left:-200px;
			color: rgb(126, 126, 126);
 
		}
		.box2{
			width: 450px;
			height: 120px;
			display: flex;
			margin: auto;
		}
		.itme{
			width: 200px;
			height: 40px;
			margin: 20px;
		}
 
		.box3{
			width: 450px;
			height: 130px;
			display: flex;
			margin: auto;
		}
		.box4{
			width: 400px;
			height: 120px;
			display: flex;
			margin: auto;
			display: flex;
		}
		.oder{
			width: 450px;
			height: 130px;
			display: flex;
		}
		.oder-text1{
			width: 200px;
			height: 40px;
			margin-left: 20px;
			margin-top: 20px;
			display: flex;
		}
		.oder-text2{
			width: 200px;
			height: 40px;
			margin-left: -201px;
			margin-top: 60px;
			display: flex;
		}
		.box5{
			width: 450px;
			height: 120px;
			display: flex;
			margin: auto;
		}
		.vip{
			display: flex;
			width: 450px;
			height: 20px;
		}
		.vip a{
			width: 1200px;
			height: 110px;
			margin-left: 2px;
			margin-top: 20px;
		}
		.vip-img{
			width: 200px;
			height: 150px;
			margin-left: 10px;
			margin-top: 20px;
		}
        .box4 > img{
            margin-top: 20px;
            margin-bottom: 10px;
        }
 
	</style>
</head>
<body>
    <div class="box">
        <div class="box1">
			<div class="content">
				<img style="border-radius: 100%;" src=https://c-ssl.duitang.com/uploads/blog/202112/18/20211218130922_db103.jpeg>
			</div>
			<div class="text">
				<h2>93296zjth852h8</h2>
			</div>
			<div class="text-info">
				<p style="font-size: 22px;">切换账号|退出</p>
			</div>
		</div>
		<div class="box2">
			<div class="itme">
				<img src="C:\Users\26235\Desktop\微信图片_20250115183813555.png">
				<p>浏览记录</p>
			</div>
			<div class="itme">
				<img src="C:\Users\26235\Desktop\微信图片_20250115183813777.png">
				<p>商品收藏</p>
			</div>
			<div class="itme">
				<img src="C:\Users\26235\Desktop\微信图片_20250115183813888.png">
				<p>店铺关注</p>
			</div>
			<div class="itme">
				<img src="C:\Users\26235\Desktop\微信图片_20250115183813222.png">
				<p>我的京东</p>
			</div>
		</div>
		<div class="box3">
			<div class="itme">
				<h3 style="font-size: 25px;">0</h3>
				<p>待付款</p>
			</div>
			<div class="itme">
				<h3 style="font-size: 25px;">0</h3>
				<p>待收货</p>
			</div>
			<div class="itme">
				<h3 style="font-size: 25px;">7</h3>
				<p>待评价</p>
			</div>
			<div class="itme">
				<h3 style="font-size: 25px;">1</h3>
				<p>退还售后</p>
			</div>
		</div>
		<div class="box4">
			<div class="oder">
				<div class="jd-img">
					<img style="width: 100px;height: 120px;" src="C:\Users\26235\Desktop\微信图片_202501151838132525.png">
				</div>
				<div class="oder-text1">
					<h3>暂无订单信息</h3>
				</div>
				<div class="oder-text2">
					<p>下单后查看更多订单信息</p>
				</div>
			</div>
		</div>
		<div class="box5">
			<div class="vip">
				<a href="#"><img class="vip-img" style="border-radius: 10%;"  src="C:\Users\26235\Desktop\微信图片_202501151838131212.png"></a>
				<a href="#"><img  class="vip-img" style="border-radius: 10%;" src="C:\Users\26235\Desktop\微信图片_202501151838136666.png"></a>
			</div>
		</div>
	</div> 
</body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值