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

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

噜啦 - 浮动

浮动带来的问题以及解决方法 - 噜啦 浮动 - 噜啦
浮动练习 淘宝轮播图 - 噜啦
博主: 噜啦 · 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>

赞赏作者

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

浮动练习 淘宝轮播图

 •