Blogger Information
Blog 29
fans 0
comment 0
visits 25410
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
4.CSS固定定位制作广告位--2019年1月15日作业
连界现代周伟的博客
Original
645 people have browsed it

实例(CSS固定定位制作广告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>
    <link rel="stylesheet" href="static/css/gudingdingwei.css">
        <style>
          body {
              background-color:lightgray;
              height: 2000px;
         }

          .ads {
               width: 320px;
               height: 200px;
               background-color: aqua;

               position: fixed;
               right: 0;
               bottom: 0;
          }

           .ads button {
                float: right;
                margin-right: 15px;
           }
        </style>
</head>
<body>
    <h1>实现广告位</h1>
    <div class="ads">
        <button onclick="this.parentNode.style.display = 'none'">关闭</button>
        <h2>广告牌招商:电话123456</h2>
        <h1>招商进行中...</h1>
    </div>
</body>
</html>


运行实例 »

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


Correction status:Uncorrected

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