zoukankan      html  css  js  c++  java
  • DAY09 ~ DAY13

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>fixed</title>
        <style type="text/css">
        .div1{
            position: fixed;
            left: 100%;
            top: 50%;
            margin-left: -200px;/*向左移动一个DIV的宽度就可以显示了的*/
            margin-top: -100px;
             200px;
            height: 200px;
            border: 1px solid blue;
            background: pink;
            z-index: 999;
        }
        .div2{
            margin: 0 auto;
             500px;
            height: 1000px;
            border: 1px solid blue;
            background: silver;

        }
        </style>
    </head>
    <body>
        <div class="div1">
            11111111111111111111
        </div>
        <div class="div2"></div>
    </body>
    </html>

  • 相关阅读:
    windows 程序设计的一些总结
    Ubuntu 16.04 LTS 安装开发工具
    C++ 虚函数表
    day 14 函数的嵌套,作用域
    命名空间(名称空间)
    day15编码
    day16迭代器
    day5
    day4
    day3
  • 原文地址:https://www.cnblogs.com/qianjilou/p/6368772.html
Copyright © 2011-2022 走看看