当前位置:网站首页>淘宝焦点图布局实战
淘宝焦点图布局实战
2022-07-06 02:36:00 【若水cjj】


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>淘宝焦点图</title>
<style>
* {
padding: 0%;
}
.tb-promo {
position: relative;
width: 564px;
height: 315px;
margin: 100px auto;
}
.tb-promo img {
width: 100%;
border-radius: 12px;
}
li {
list-style: none;
}
a {
position: absolute;
width: 20px;
height: 30px;
background: rgba(0, 0, 0, .3);
text-align: center;
line-height: 30px;
/* 加了绝对定位a会变成块元素,可以直接设置宽度和高度 */
text-decoration: none;
color: #fff;
}
.prev {
bottom: 0;
top: 0;
left: 0;
margin: auto 0;
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
}
.next {
bottom: 0;
top: 0;
right: 0;
margin: auto 0;
border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
}
.promo-nav {
position: absolute;
bottom: 15px;
left: 0;
right: 0;
margin: 0 auto;
width: 70px;
height: 13px;
background: rgba(0, 0, 0, .3);
border-radius: 6px;
}
.promo-nav li {
float: left;
width: 8px;
height: 8px;
border-radius: 50%;
background-color: skyblue;
margin: 3px 3px;
}
.promo-nav .selected {
/* 覆盖.promo-nav li 中的颜色要注意权重大小,权重不够,不能覆盖 */
background-color: orange;
}
</style>
</head>
<body>
<div class="tb-promo">
<img src="img/focus.jpg" alt="">
<!-- 左侧箭头 -->
<a href="#" class="prev"><</a>
<!-- 右侧箭头 -->
<a href="#" class="next">></a>
<!-- 小圆点 -->
<ul class="promo-nav">
<li class="selected"></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</body>
</html>
边栏推荐
- Is there a case where sqlcdc monitors multiple tables and then associates them to sink to another table? All operations in MySQL
- 有没有sqlcdc监控多张表 再关联后 sink到另外一张表的案例啊?全部在 mysql中操作
- 继承的构造函数
- Number conclusion LC skimming review - 1
- 【机器人库】 awesome-robotics-libraries
- Sword finger offer 30 Stack containing min function
- MySQL (IV) - transactions
- ReferenceError: primordials is not defined错误解决
- 剑指 Offer 30. 包含min函数的栈
- Large scale DDoS attacks take Myanmar offline
猜你喜欢

Zero basic self-study STM32 wildfire review of GPIO use absolute address to operate GPIO

Minecraft 1.16.5 biochemical 8 module version 2.0 storybook + more guns

Paper notes: graph neural network gat
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 18](/img/1a/94ef8be5c06c2d1c52fc8ce7f03ea7.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 18

2022年版图解网络PDF

A copy can also produce flowers

QT release exe software and modify exe application icon

3D drawing ()

爬虫(9) - Scrapy框架(1) | Scrapy 异步网络爬虫框架

技术管理进阶——什么是管理者之体力、脑力、心力
随机推荐
好用的 JS 脚本
SSM assembly
550 permission denied occurs when FTP uploads files, which is not a user permission problem
继承的构造函数
Number conclusion LC skimming review - 1
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
模板_快速排序_双指针
【机器人库】 awesome-robotics-libraries
会员积分营销系统操作的时候怎样提升消费者的积极性?
剑指 Offer 29. 顺时针打印矩阵
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6
HDU_p1237_简单计算器_stack
[Digital IC manual tearing code] Verilog asynchronous reset synchronous release | topic | principle | design | simulation
vs code保存时 出现两次格式化
米家、涂鸦、Hilink、智汀等生态哪家强?5大主流智能品牌分析
Template_ Find the reverse pair of permutations_ Sort based on merge
零基础自学STM32-复习篇2——使用结构体封装GPIO寄存器
Minecraft 1.18.1, 1.18.2 module development 22 Sniper rifle
[robot library] awesome robots Libraries
Is there a case where sqlcdc monitors multiple tables and then associates them to sink to another table? All operations in MySQL