当前位置:网站首页>淘宝焦点图布局实战
淘宝焦点图布局实战
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>
边栏推荐
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 22
- 怎么检查GBase 8c数据库中的锁信息?
- LeetCode 103. Binary tree zigzag level order transverse - Binary Tree Series Question 5
- [coppeliasim] efficient conveyor belt
- Crawler (9) - scrape framework (1) | scrape asynchronous web crawler framework
- 微软语音合成助手 v1.3 文本转语音工具,真实语音AI生成器
- 2022.02.13
- 零基础自学STM32-野火——GPIO复习篇——使用绝对地址操作GPIO
- 高数_向量代数_单位向量_向量与坐标轴的夹角
- 在线怎么生成富文本
猜你喜欢

微软语音合成助手 v1.3 文本转语音工具,真实语音AI生成器

【社区人物志】专访马龙伟:轮子不好用,那就自己造!

高数_向量代数_单位向量_向量与坐标轴的夹角
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 19](/img/7c/f728e88ca36524f92c56213370399b.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 19
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 9](/img/ed/0edff23fbd3880bc6c9dabd31755ac.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 9

Keyword static

主数据管理理论与实践

2022年版图解网络PDF

Qt发布exe软件及修改exe应用程序图标
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 8](/img/16/33f5623625ba817e6e022b5cb7ff5d.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 8
随机推荐
技术管理进阶——什么是管理者之体力、脑力、心力
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 7
UE4 - how to make a simple TPS role (I) - create a basic role
Global and Chinese markets of general purpose centrifuges 2022-2028: Research Report on technology, participants, trends, market size and share
[untitled] a query SQL execution process in the database
Differences and usage scenarios between TCP and UDP
Global and Chinese markets of screw rotor pumps 2022-2028: Research Report on technology, participants, trends, market size and share
力扣今日題-729. 我的日程安排錶 I
2020.02.11
Y a - t - il des cas où sqlcdc surveille plusieurs tables et les associe à une autre? Tout fonctionne dans MySQL
How to check the lock information in gbase 8C database?
High number_ Vector algebra_ Unit vector_ Angle between vector and coordinate axis
【coppeliasim】高效传送带
【机器人库】 awesome-robotics-libraries
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 15
【社区人物志】专访马龙伟:轮子不好用,那就自己造!
数据工程系列精讲(第四讲): Data-centric AI 之样本工程
HDU_p1237_简单计算器_stack
07 单件(Singleton)模式