Giter VIP home page Giter VIP logo

fixed's People

Watchers

James Cloos avatar

fixed's Issues

fixed实践

<title>JS Bin</title> <style> _{padding:0; margin:0;} html{min-height:200%; font-size:1em;} .f-tal{text-align:left;} .f-tac{text-align:center;} .f-tar{text-align:right;} .demo{height:100px; background:#f0f3f9; max-width:60%; margin:20px auto;} .fixed{position:fixed; /_position:absolute;*/ display:inline-block;} .fixed span{display:block; position:relative; background:#f60; color:#fff;} .fixed-left span{left:-100%;} .fixed-center span{left:-50%; margin-left:-8px;} .fixed-right2 span{left:-100%; margin-left:-8px;} </style>
定位左外侧示例
定位左内例示例
<div class="demo f-tac">
    &nbsp;<div class="fixed fixed-center">
        <span>定位居中示例</span>
    </div>
</div>

<div class="demo f-tar">
    &nbsp;<div class="fixed fixed-right">
        <span>定位右外侧示例</span>
    </div>
</div>
<div class="demo f-tar">
    &nbsp;<div class="fixed fixed-right2">
        <span>定位右内侧示例</span>
    </div>
</div>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.