zoukankan      html  css  js  c++  java
  • 【HTML】一个简单的返回顶部

    直接给出代码:

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>返回顶部</title>
        <style>
            
    .btns{
        font-weight: bold;
        display: inline-block;
        width: 60px;
        height: 27px;
        border: #000000;
        background: #1890ff;
        font-size: 0.5em;
        text-align: center;
        padding-top: 5px;
        color: rgb(255, 255, 255);
        border-radius: 8px;
        font-weight:bold
        }
    a:hover{
        color:#000000
    }
    
         
        </style>
    </head>
    
    <body>
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
    
    
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
        <h1>0000000000000000000000000000000000000000</h1>
        <h1>0000000000000000000000000000000000000000</h1>
    
    
        <div style="overflow: hidden;position: fixed;left: 10px;bottom: 20px;z-index: 10;">
            <div style="overflow: hidden;">
                <div style="padding-right:50px;">
                    <a href="/" class="btns" style=" text-decoration: none;">未添加</a>
                </div>
                <div style="padding-top:20px;padding-lift:50px;">
                    <a href="/" class="btns" style=" text-decoration: none;">未添加</a>
                </div>
                <div style="padding-top:20px;padding-right:50px;padding-bottom:50px">
                    <a href="#" style="float: left;" class="btns" style=" text-decoration: none;">TOP</a>
                </div>
            </div>
    
    </body>
    
    </html>

    效果:

  • 相关阅读:
    如何在xml中存储图片
    软件开发平台化催生软件产业链新层级(1)
    在sql server 中如何移动tempdb到新的位置
    Base64在XML中存储图片的解决方案
    东软金算盘VP*台:拆分标准与个性
    浪潮“楼上”开发平台简介
    python模块整理3random模块
    python模块整理1os模块
    python学习笔记18重点和忘记知识点总结
    python模块整理8glob(类似grep)和fnmatch(匹配文件名)
  • 原文地址:https://www.cnblogs.com/HGNET/p/14096074.html
Copyright © 2011-2022 走看看