Blogger Information
Blog 40
fans 2
comment 1
visits 38930
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
7.CSS固定定位制作广告位-2019年01月15号
万物皆对象
Original
704 people have browsed it

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>固定定位制作广告位</title>
    <style>
        body{
            background: lightcoral;
            height: 2000px;
        }
        .ad{
            width: 350px;
            height: 250px;
            background: lightcyan;
            position: fixed; /* 固定定位 */
            right: 0;
            bottom: 0;
        }
        .ad button{
            float: right;
            border: none;
        }
    </style>
</head>
<body>
    <h1>固定定位制作广告位</h1>
    <div class="ad">
        <button onclick="this.parentNode.style.display = 'none';">关闭</button>
        <h1>学而不思则罔,思而不学则殆</h1>
        <h2>知识改变命运</h2>
    </div>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

666.png

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post