Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

双飞翼布局那个问题可能有bug #82

Open
charlesix59 opened this issue Mar 16, 2023 · 0 comments
Open

双飞翼布局那个问题可能有bug #82

charlesix59 opened this issue Mar 16, 2023 · 0 comments

Comments

@charlesix59
Copy link

双飞翼的代码可能会有bug(或者因为您的代码有注释没有正常显示导致我对您的代码理解出现偏差),我拷贝到浏览器中并为出现对应的效果,我简单修改过的代码如下:

<head>
    <style>
        .outer {
            height: 100px;
        }

        .wrapper {
            float: left;
            width: 100%;
            height: 100px;
            background: lightgreen;
        }

        .left {
            float: left;
            width: 100px;
            height: 100px;
            background: tomato;
        }

        .right {
            float: right;
            margin-left: -200px;

            width: 200px;
            height: 100px;
            background: gold;
        }

        .center {
            margin-left: 100px;
            margin-right: 200px;
            height: 100px;
        }
    </style>
</head>

<body>
    <div class="outer">
        <div class="left"></div>
        <div class="right"></div>
        <div class="center">
            <div class="wrapper"> </div>
        </div>
    </div>
</body>

并且圣杯布局也存在类似的错误,烦请明察

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant