惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
Google DeepMind News
Google DeepMind News
P
Privacy International News Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Threatpost
GbyAI
GbyAI
V
Visual Studio Blog
H
Help Net Security
Vercel News
Vercel News
P
Palo Alto Networks Blog
Project Zero
Project Zero
AWS News Blog
AWS News Blog
Latest news
Latest news
Cyberwarzone
Cyberwarzone
C
Cybersecurity and Infrastructure Security Agency CISA
The Register - Security
The Register - Security
博客园_首页
WordPress大学
WordPress大学
G
GRAHAM CLULEY
T
Tor Project blog
有赞技术团队
有赞技术团队
Know Your Adversary
Know Your Adversary
AI
AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
O
OpenAI News
博客园 - 聂微东
月光博客
月光博客
S
Security Affairs
Webroot Blog
Webroot Blog
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
NISL@THU
NISL@THU
N
News and Events Feed by Topic
Blog — PlanetScale
Blog — PlanetScale
S
Securelist
V
Vulnerabilities – Threatpost
aimingoo的专栏
aimingoo的专栏
阮一峰的网络日志
阮一峰的网络日志
Stack Overflow Blog
Stack Overflow Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
DataBreaches.Net
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Y
Y Combinator Blog
Cisco Talos Blog
Cisco Talos Blog
The Cloudflare Blog
IT之家
IT之家
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
L
Lohrmann on Cybersecurity
T
The Blog of Author Tim Ferriss

噜啦 - 浮动

浮动带来的问题以及解决方法 - 噜啦 浮动 - 噜啦
浮动练习 淘宝轮播图 - 噜啦
博主: 噜啦 · 2019-05-10 · via 噜啦 - 浮动

浮动练习 淘宝轮播图

  • 发布时间:
  • 1861 次浏览
  • 1664字数
  • 分类: 前端笔记本
  1. 首页
  2. 正文  

图片

代码

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        
        <style type="text/css">
            #wrap{
                width: 520px;
                height: 280px;
                margin: 50px auto;
                position: relative;
            }
            
            ul{
                padding: 5px 9px 0px 3px;
                height: 13px;
                margin: 0;
                border-radius: 10px;
                background-color: rgb(255,255,255,0.3);
                /* 根据外层div(wrap)定位 */
                position: absolute;
                left: 50%;
                bottom: 15px;
                text-align: center;
                margin-left: -39px;
            }
            
            li{
                display: block;
                /* padding-top: 8px; */
                /* 去掉小点点 */
                list-style: none;
                width: 8px;
                height: 8px;
                /* 让li成为下方的圆点 */
                border-radius: 50%;
                background-color: #FFFFFF;
                /* 让li在一行内显示 */
                float: left;
                margin-left: 4px;
                /* position: relative;
                left: 50%;
                top: 50%; */
                
            }
            
            .active{
                background-color: #ff5000;
            }
            
            .span{
                /* 箭头 */
                width: 100%;
                color: white;
                /* background-color: red; */
                position: absolute;
                top: 50%;
                
            }
            #left{
                width: 20px;
                height: 30px;
                /* 垂直居中 */
                line-height: 30px;
                /* 水平居中 */
                text-align: center;
                display: block;
                float: left;
                background-color: rgba(6,6,6,0.5);
            }
            #right{
                width: 20px;
                height: 30px;
                /* 垂直居中 */
                line-height: 30px;
                /* 水平居中 */
                text-align: center;
                display: block;
                float: right;
                background-color: rgba(6,6,6,0.5);
            }
            
        </style>
    </head>
    <body>
        <div id="wrap">
            <div class="img">
                <img src="./img/photo.webp" >
            </div>
            
            <div class="span">
                <span id="left"><</span>
                <span id="right">></span>
            </div>
            
            <ul>
                <li class="active"></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
            </ul>
        </div>
        
        
        
    </body>
</html>

赞赏作者

如果觉得我的文章对你有用,请随意赞赏

浮动练习 淘宝轮播图

 •