1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>01</title>
<style>
.box{
width: 800px;
height: 25px;
margin: auto;
position: relative;
}
.box-son{
width: 25px;
height: 25px;
background-image: url(d.png);
background-repeat: no-repeat;
background-position: 0px -50px;
position:absolute;
left: 780px;
top: 5px;
}
</style>
</head>
<body>
<div class="box" >
<input type="text" name="text" id="text" style="width: 100%; height: 100%;" >
<div class="box-son"></div>
</div>
</body>
</html>
2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>02</title>
<style>
.box{
width: 800px;
height: 300px;
margin: auto;
border: 1px solid black;
position: relative;
}
.box-son{
width: 600px;
height: 200px;
margin: auto;
border: 1px dashed rgb(99, 99, 99);
position:absolute;
left: 100px;
top: 25px;
}
.box-sons{
width: 250px;
height: 25px;
background-image: url(img/d.png);
background-repeat: no-repeat;
background-position: 0px -50px;
position:absolute;
left: 300px;
top: 100px;
}
.box-son > input{
color: transparent;
opacity: 0;
}
</style>
</head>
<body>
<form action="/upload" method="post" enctype="multipart/form-data">
<div class="box">
<div class="box-son">
<input type="file" id="file" name="file" style=" height: 100%; width: 100%; ">
<div class="box-sons" ></div>
</div>
<input type="file" id="file" name="file" style="position: absolute; left: 370px;top: 250px;color: transparent;">
</div>
</form>
</body>
</html>
3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>03</title>
<style>
.box{
width: 800px;
height: 30px;
border: 2px solid orange;
border-radius: 10px;
margin: auto;
}
.box > input{
border: none;
outline: none;
width: 90%;
height: 90%;
}
</style>
</head>
<body>
<div class="box">
<select name="goods" id="goods">
<option value=" 宝贝">宝贝</option>
<option value="汽车">汽车</option>
</select>
<input type="text" id="text" name="text" placeholder="手机壳">
</div>
</body>
</html>
4
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>04</title>
<style>
.box{
width: 800px;
height: 600px;
border: 1px solid black;
margin: auto;
position: relative;
}
.box-son{
width: 60px;
height: 400px;
border: 1px solid rgb(122, 122, 122);
border-radius: 10px;
background-color: aliceblue;
position: absolute;
left: -60px;
top: 50px;
}
.box-son span {
color: #787676;
text-align: center;
font-size: 13px;
display: block;
}
table{
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div class="box">
<div class="box-son">
<table>
<tr><td> <span>联系客服</span></td> </tr>
<tr><td><span>购物车</span></td> </tr>
<tr><td><span>官方客服</span></td> </tr>
<tr><td> <span>反馈</span></td> </tr>
<tr><td><span>举报</span></td> </tr>
<tr><td> <span>回顶部</span></td> </tr>
</table>
</div>
</div>
</body>
</html>
5
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>05</title>
<style>
.box{
width: 845px;
height: 450px;
margin: auto;
border: 1px solid orange;
border-radius: 10px;
background-image: url(img/sprite1.png);
background-repeat: no-repeat;
background-position: 0px 0px;
}
.box-son{
width: 60px;
height: 50px;
position: absolute;
left: 275px;
top: 220px;
color:transparent;
border: 3px solid rgb(135, 134, 134);
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
}
.box > input:nth-child(1){
position: absolute;
left: 700px;
top: 420px;
}
.box > input:nth-child(2){
position: absolute;
left: 720px;
top: 420px;
}
</style>
</head>
<body>
<div class="box">
<input type="radio" name="1" value="手办" checked="checked">
<input type="radio" name="1" value="日用品">
<div class="box-son">
</div>
</div>
</body>
</html>
6
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>06</title>
<style>
.box{
width: 680px;
height: 350px;
margin: auto;
}
.goods{
width: 420px;
height: 200px;
border-radius: 10px;
background-color: #FEF6F1;
border: 1px solid transparent;
float: left;
margin: 10px;
}
.title{
font-size: 16px;
font-weight: bold;
}
.text{
font-size: 13px;
}
.img{
width: 80px;
}
.price{
color: orange;
font-size: 16px;
}
.goods1{
width: 200px;
height: 200px;
border-radius: 10px;
border: 1px solid transparent;
float: left;
margin: 10px;
}
.title::before{
content: " ";
margin-left: 10px;
}
.title::after{
content: ">";
color: #999;
}
</style>
</head>
<body>
<div class="box">
<div class="goods">
<table>
<tr><td colspan="4"><p class="title">淘工厂•良心工厂货</p></td></tr>
<tr><td rowspan="3"><img class="img" src="./img/胶带.png" alt="胶带" >
<td><p class="text">纳米魔力双面胶</p></td>
<td rowspan="3"><img class="img" src="./img/防风罩.png" alt=""></td>
<td><p class="text">75pvc排气风口防风罩110不...</p></td>
</td></tr>
<tr>
<td></td>
<td> <span class="price">和风行(机械...</span></td>
</tr>
<tr><td>
<span class="price">¥6.05</span>
</td>
<td> <span class="price">¥13.5</span></td>
</tr>
</table>
</div>
<div class="goods1" style="background-color: #FEF1F4;" >
<table>
<tr><td><p class="title">拍卖捡漏</p></td></tr>
<tr><td ><img class="img" src="./img/茅台.png" alt=""></td>
<td><img class="img" src="./img/表.png" alt=""></td>
</tr>
<tr><td><span class="price">¥1起</span></td>
<td><span class="price">¥200起</span></td>
</tr>
</table>
</div>
<div class="goods1" style="background-color: #F1F2FE;" >
<table>
<tr><td><p class="title">潮牌数码</p></td></tr>
<tr><td ><img class="img" src="./img/电一.png" alt=""></td>
<td><img class="img" src="./img/电脑.png" alt=""></td>
</tr>
<tr><td><span class="price">¥29.8</span></td>
<td><span class="price">¥8699</span></td>
</tr>
</table>
</div>
<div class="goods1" style="background-color: #F1FAFE;" >
<table>
<tr><td><p class="title">春夏出行</p></td></tr>
<tr><td ><img class="img" src="./img/电驴.png" alt=""></td>
<td><img class="img" src="./img/摩托.png" alt=""></td>
</tr>
<tr><td><span class="price">¥8299</span></td>
<td><span class="price">¥400</span></td>
</tr>
</table>
</div>
<div class="goods1" style="background-color: #FEF6F1;" >
<table>
<tr><td><p class="title">零食秒杀</p></td></tr>
<tr><td ><img class="img" src="./img/点7.png" alt=""></td>
<td><img class="img" src="./img/点心.png" alt=""></td>
</tr>
<tr><td><span class="price">¥3</span></td>
<td><span class="price">¥2.1</span></td>
</tr>
</table>
</div>
</div>
</body>
</html>
7
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>07</title>
<style>
.box{
width: 350px;
height: 500px;
margin: auto;
border: 1px solid rgb(252, 69, 69);
position: relative;
}
.box-son{
width: 100px;
height: 50px;
border: 1px solid rgb(252, 69, 69);
border-radius: 50px;
background-color: red;
margin: auto;
position: absolute;
left: 145px;
top: 50px;;
}
.box-son1{
width: 100px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
color: rgb(252, 69, 69);
border: 1px solid rgb(248, 101, 101);
border-radius: 10px;
}
.box > table{
position: absolute;
left: 80px;
top: 150px;
width: 250px;
height: 300px;
}
</style>
</head>
<body>
<div class="box">
<div class="box-son">
<p style="color: white; font-size: 15px; text-align: center;">精选热点</p>
</div>
<table>
<tr>
<td>
<div class="box-son1">电视柜</div>
</td>
<td>
<div class="box-son1">脸部卸妆油</div>
</td>
</tr>
<tr>
<td>
<div class="box-son1">苏泊尔无烟锅</div>
</td>
<td>
<div class="box-son1">电动牙刷</div>
</td>
</tr>
<tr>
<td>
<div class="box-son1">衣服烘干机</div>
</td>
<td>
<div class="box-son1">燃气壁挂炉</div>
</td>
</tr>
<tr>
<td>
<div class="box-son1">鱼竿</div>
</td>
<td>
<div class="box-son1">防尘鞋架</div>
</td>
</tr>
</table>
</div>
</body>
</html>
8
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>08</title>
<style>
.box{
width: 600px;
height: 660px;
background-color: #eceaea;
border: 5px solid transparent;
margin: auto;
}
.box-son{
width: 580px;
height: 150px;
background-color: white;
border: 3px solid transparent;
margin: 10px;
}
.box--son{
width: 180px;
height: 130px;
border-radius: 5px;
margin: 5px;
float: left;
}
.img{
width: 60px;
height: 60px;
border-radius: 100%;
margin: auto;
display: block;
}
.box--son1{
width: 110px;
height: 130px;
border: 1px solid rgb(250, 8, 8);
border-radius: 5px;
margin: 5px;
float: left;
background-color: #FEF0F0;
}
.box--son2{
width: 440px;
height: 130px;
margin: 5px;
float: left;
}
.prise{
font-size: 18px;
font-weight: bold;
color: red;
}
</style>
</head>
<body>
<div class="box">
<div class="box-son">
<div class="box--son" >
<img class="img" src="./img/22.jpg">
<p style="text-align: center;">hi,<span style="color: rgb(188, 0, 0); font-size: 18px;">花开富贵</span></p>
<p style="text-align: center;">退出</p>
</div>
<div class="box--son" style="background-color: #FEDE8B; ">
<p style="font-size: 20px; ">plus会员</p>
<p style="color: #B38E18; ">专享立减</p>
<p style="color: #c79f1b; ">立即开通></p>
</div>
<div class="box--son" style="background-color: #D0DEFE;">
<p style="font-size: 20px; ">企业会员</p>
<p style="color: #0a3cb3; ">新客补贴3000元</p>
<p style="color: #623ae7; ">立即开通></p>
</div>
</div>
<div class="box-son">
<div class="box--son1">
<p style="font-size: 20px; text-align: center; margin: 1px;">京东秒杀</p>
<img class="img" style="height: 30px;" src="./img/闹钟.png">
<p style="text-align: center;">20:00场</p>
<p style="text-align: center;">00:21:41</p>
</div>
<div class="box--son2">
<table style="width: 100%;">
<tr>
<td><img style="height: 80px;" src="img/辣条png.png"></td>
<td><img style="height: 80px;" src="img/华为.png"></td>
<td><img style="height: 80px;" src="img/剃须刀.png"></td>
</tr>
<tr>
<td class="prise">¥25.5</td>
<td class="prise">¥884</td>
<td class="prise">¥1999</td>
</tr>
</table>
</div>
</div>
<div class="box-son">
<div class="box--son1">
<p style="font-size: 20px; text-align: center; margin: 1px;">便宜包邮</p>
<img class="img" style="height: 50px;" src="./img/电.png">
<p style="text-align: center;">一元也包邮</p>
</div>
<div class="box--son2">
<table style="width: 100%;">
<tr>
<td><img style="height: 80px;" src="img/7.png"></td>
<td><img style="height: 80px;" src="img/8.png"></td>
<td><img style="height: 80px;" src="img/0.png"></td>
</tr>
<tr>
<td class="prise">¥2.98</td>
<td class="prise">¥15.9</td>
<td class="prise">¥2.85</td>
</tr>
</table>
</div>
</div>
<div class="box-son">
<table style="width: 100%;">
<tr>
<td><img style="width: 30px;" src="./img/111.png"></td>
<td><img style="width: 30px;" src="./img/222.png"></td>
<td><img style="width: 30px;" src="./img/333.png"></td>
<td><img style="width: 30px;" src="./img/444.png"></td>
<td><img style="width: 30px;" src="./img/555.png"></td>
</tr>
<tr>
<td>礼品卡</td>
<td>加油卡</td>
<td>话费</td>
<td>游戏</td>
<td>酒店</td>
</tr>
<tr>
<td><img style="width: 30px;" src="./img/666.png"></td>
<td><img style="width: 30px;" src="./img/777.png"></td>
<td><img style="width: 30px;" src="./img/888.png"></td>
<td></td>
<td></td>
</tr>
<tr>
<td>云建站</td>
<td>五金城</td>
<td>plus会员</td>
<td></td>
<td></td>
</tr>
</table>
</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>
@keyframes myRote {
from{
transform: rotate(360deg);
}
to{
transform: rotate(0deg);
}
}
body{
background-color: #999;
}
.box{
width: 0px;
height: 300px;
border-left: 150px solid white;
border-right: 150px solid black;
border-radius: 50%;
position: relative;
animation: myRote 4s linear infinite;
box-shadow: 0px -5px 5px #ff0000,
0px 5px 5px rgb(0, 255, 0) ;
}
.box::before{
content: "";
display: block;
width: 50px;
height: 50px;
border-radius: 50%;
border: 50px solid white;
position: absolute;
left: -75px;
top: 150px;
background-color: black;
}
.box::after{
content: "";
display: block;
width: 50px;
height: 50px;
border-radius: 50%;
border: 50px solid black;
position: absolute;
left: -75px;
background-color: white;
}
</style>
</head>
<body>
<div class="box"></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: 100px;
height: 50px;
background-color: greenyellow;
border: 3px solid rgb(97, 177, 121);
margin: auto;
border-radius: 50px;
}
.box:hover{
box-shadow: 0px -5px 5px #ff0000,
0px 5px 5px #ff0000,
5px 0px 5px #ff0000,
-5px 0px 5px #ff0000;
}
</style>
</head>
<body>
<div class="box" style="font-size: 13px; color: rgb(73, 156, 184); text-align: center;">这个按钮会发光</div>
</body>
</html>