当前位置:网站首页>淘宝焦点图布局实战
淘宝焦点图布局实战
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>
边栏推荐
- 2022 edition illustrated network pdf
- 2022 eye health exhibition, vision rehabilitation exhibition, optometry equipment exhibition, eye care products exhibition, eye mask Exhibition
- PAT甲级 1033 To Fill or Not to Fill
- Minecraft 1.18.1, 1.18.2 module development 22 Sniper rifle
- Déduisez la question d'aujourd'hui - 729. Mon emploi du temps I
- HttpRunnerManager安装(三)-Linux下配置myql数据库&初始化数据
- Compact lidar global and Chinese markets 2022-2028: technology, participants, trends, market size and share Research Report
- 【MySQL 15】Could not increase number of max_ open_ files to more than 10000 (request: 65535)
- 数据工程系列精讲(第四讲): Data-centric AI 之样本工程
- Data preparation
猜你喜欢

Ue4- how to make a simple TPS role (II) - realize the basic movement of the role

HttpRunnerManager安装(三)-Linux下配置myql数据库&初始化数据

"Hands on learning in depth" Chapter 2 - preparatory knowledge_ 2.5 automatic differentiation_ Learning thinking and exercise answers

Easy to use js script

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

A copy can also produce flowers

从顶会论文看2022年推荐系统序列建模的趋势

Reset nodejs of the system

QT release exe software and modify exe application icon

【机器人库】 awesome-robotics-libraries
随机推荐
JS events (add, delete) and delegates
Ue4- how to make a simple TPS role (II) - realize the basic movement of the role
2022.02.13
Data preparation
Advanced technology management - what is the physical, mental and mental strength of managers
SQL table name is passed as a parameter
Thinking on Architecture Design (under continuous updating)
技术管理进阶——什么是管理者之体力、脑力、心力
Looking at the trend of sequence modeling of recommended systems in 2022 from the top paper
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
Formatting occurs twice when vs code is saved
Shell script updates stored procedure to database
[robot hand eye calibration] eye in hand
SSM assembly
力扣今日題-729. 我的日程安排錶 I
模板_求排列逆序对_基于归并排序
ReferenceError: primordials is not defined错误解决
Keyword static
After changing the GCC version, make[1] appears in the compilation: cc: command not found
Paper notes: limit multi label learning galaxc (temporarily stored, not finished)