Blogger Information
Blog 20
fans 0
comment 0
visits 14192
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
固定定位制作广告位-2019年1月15日23点39分
kszyd的博客
Original
809 people have browsed it

固定定位制作广告位

实例

<!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">
    <link rel="stylesheet" href="static/css/style05.css">
    <title>固定定位实现广告位</title>
</head>
<body>
    <h1>广告位制作</h1>
    <div class="box1">
        <button onclick="this.parentNode.style.display = 'none' ">戳我</button>
        <h2>测试广告位</h2>
        <h1>大写字特别大</h1>

    </div>
</body>
</html>

运行实例 »

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

实例

body {
    background-color: bisque;
    height: 2000px;
}

.box1 {
    width: 200px;
    height: 200px;
    background-color: blue;
    position: fixed;
    left:0;
    bottom: 0;
}

.box1 button {
    float: right;
    margin-right: 30px;
}

运行实例 »

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

 

Correction status:qualified

Teacher's comments:
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