当前位置:网站首页>淘宝焦点图布局实战
淘宝焦点图布局实战
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>
边栏推荐
- Trends in DDoS Attacks
- 一个复制也能玩出花来
- Thinking on Architecture Design (under continuous updating)
- Global and Chinese markets of screw rotor pumps 2022-2028: Research Report on technology, participants, trends, market size and share
- Sword finger offer 29 Print matrix clockwise
- [community personas] exclusive interview with Ma Longwei: the wheel is not easy to use, so make it yourself!
- [robot library] awesome robots Libraries
- 【MySQL 15】Could not increase number of max_open_files to more than 10000 (request: 65535)
- 在线怎么生成富文本
- vs code保存时 出现两次格式化
猜你喜欢
2022年版图解网络PDF
Pat grade a 1033 to fill or not to fill
构建库函数的雏形——参照野火的手册
【机器人库】 awesome-robotics-libraries
零基础自学STM32-复习篇2——使用结构体封装GPIO寄存器
2022 China eye Expo, Shandong vision prevention and control exhibition, myopia, China myopia correction Exhibition
MySQL winter vacation self-study 2022 11 (9)
GifCam v7.0 极简GIF动画录制工具中文单文件版
力扣今日题-729. 我的日程安排表 I
2345文件粉碎,文件强力删除工具无捆绑纯净提取版
随机推荐
QT release exe software and modify exe application icon
2022年版图解网络PDF
[community personas] exclusive interview with Ma Longwei: the wheel is not easy to use, so make it yourself!
Black high-end responsive website dream weaving template (adaptive mobile terminal)
2022 eye health exhibition, vision rehabilitation exhibition, optometry equipment exhibition, eye care products exhibition, eye mask Exhibition
Spherical lens and cylindrical lens
Yyds dry inventory comparison of several database storage engines
Global and Chinese markets for single beam side scan sonar 2022-2028: Research Report on technology, participants, trends, market size and share
技术管理进阶——什么是管理者之体力、脑力、心力
MySQL winter vacation self-study 2022 11 (8)
会员积分营销系统操作的时候怎样提升消费者的积极性?
【无标题】数据库中一条查询SQL执行的过程
好用的 JS 脚本
Network Security Learning - Web vulnerabilities (Part 1)
模板_求排列逆序对_基于归并排序
【社区人物志】专访马龙伟:轮子不好用,那就自己造!
更换gcc版本后,编译出现make[1]: cc: Command not found
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 12
构建库函数的雏形——参照野火的手册
[Wu Enda machine learning] week5 programming assignment EX4 - neural network learning