当前位置:网站首页>淘宝焦点图布局实战
淘宝焦点图布局实战
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>
边栏推荐
- What should we pay attention to when using the built-in tool to check the health status in gbase 8C database?
- Initial understanding of pointer variables
- 米家、涂鸦、Hilink、智汀等生态哪家强?5大主流智能品牌分析
- Qt发布exe软件及修改exe应用程序图标
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 18
- "Hands on learning in depth" Chapter 2 - preparatory knowledge_ 2.3 linear algebra_ Learning thinking and exercise answers
- QT release exe software and modify exe application icon
- 【coppeliasim】6自由度路径规划
- 大厂镜像库
- 从顶会论文看2022年推荐系统序列建模的趋势
猜你喜欢
vs code保存时 出现两次格式化
How to generate rich text online
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 10
Building the prototype of library functions -- refer to the manual of wildfire
Httprunnermanager installation (III) - configuring myql Database & initialization data under Linux
Easy to use js script
2345 file shredding, powerful file deletion tool, unbound pure extract version
Structural theme model (I) STM package workflow
3D drawing ()
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 24
随机推荐
SQL table name is passed as a parameter
一位博士在华为的22年
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 23
729. My schedule I / offer II 106 Bipartite graph
有沒有sqlcdc監控多張錶 再關聯後 sink到另外一張錶的案例啊?全部在 mysql中操作
MySQL winter vacation self-study 2022 11 (9)
[postgraduate entrance examination English] prepare for 2023, learn list5 words
How to generate rich text online
2022.02.13
Y a - t - il des cas où sqlcdc surveille plusieurs tables et les associe à une autre? Tout fonctionne dans MySQL
[coppeliasim] 6-DOF path planning
550 permission denied occurs when FTP uploads files, which is not a user permission problem
【机器人手眼标定】eye in hand
HDU_ p1237_ Simple calculator_ stack
Method of changing object properties
Zero foundation self-study STM32 - Review 2 - encapsulating GPIO registers with structures
Paper notes: graph neural network gat
Black high-end responsive website dream weaving template (adaptive mobile terminal)
LeetCode 103. Binary tree zigzag level order transverse - Binary Tree Series Question 5
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16