jonathantneal / flexibility

A JavaScript polyfill for Flexbox
https://jonathantneal.github.io/flexibility/
MIT License
4.33k stars 479 forks source link

No align - items is set, and the align - items is also automatically centered #93

Open ShiChenCong opened 7 years ago

ShiChenCong commented 7 years ago

Here's my code <!DOCTYPE html>

Document
1 2 3
ShiChenCong commented 7 years ago
<!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>Document</title>
    <script src='flexibility.js'></script>
    <style>
         div {
            width: 500px;
            height: 500px;
            border:1px solid red;
            -js-display: flex;
            display: flex;
            justify-content: space-around;
        }
        span{
            display: inline-block;
            width: 50px;
            height: 50px;
            background: lightblue;
        } 
    </style>    
</head>
<body>
    <div>
        <span>1</span>
        <span>2</span>
        <span>3</span>
    </div>
</body>
<script>
    flexibility(document.documentElement);
</script>
</html>