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

CSS #68

Open
ynchuan opened this issue Sep 15, 2019 · 0 comments
Open

CSS #68

ynchuan opened this issue Sep 15, 2019 · 0 comments

Comments

@ynchuan
Copy link
Owner

ynchuan commented Sep 15, 2019

<!DOCTYPE html>
<html>

<head>
    <title>margin</title>
    <style>
    .first0 {
        width: 100px;
        height: 100px;
        margin: 50px;
        overflow: hidden;
        background-color: red;
    }

    .first1 {
        width: 100px;
        height: 100px;
        margin: 50px;
        overflow: hidden;
        background-color: yellow;
    }

    </style>
</head>

<body>
    <div class="first0"></div>
    <div class="first1"></div>
</body>

</html>

如果标签产生margin折叠,只是在产生margin的元素上触发bfc,无法解决折叠问题

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