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

推荐订阅源

美团技术团队
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
IT之家
IT之家
月光博客
月光博客
U
Unit 42
K
Kaspersky official blog
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
GbyAI
GbyAI
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
云风的 BLOG
云风的 BLOG
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
Engineering at Meta
Engineering at Meta
Recorded Future
Recorded Future
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security @ Cisco Blogs
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Security Archives - TechRepublic
Security Archives - TechRepublic
Webroot Blog
Webroot Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Schneier on Security
S
Secure Thoughts
The Register - Security
The Register - Security
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog
P
Palo Alto Networks Blog
爱范儿
爱范儿
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
C
Cisco Blogs
Spread Privacy
Spread Privacy
F
Full Disclosure
博客园 - 聂微东
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>

赞赏作者

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

浮动练习 淘宝轮播图

 •