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

232.[html]一个大divl里三个小div水平均匀分布 #232

Open
webVueBlog opened this issue May 15, 2020 · 1 comment
Open

232.[html]一个大divl里三个小div水平均匀分布 #232

webVueBlog opened this issue May 15, 2020 · 1 comment
Labels
web综合 web综合

Comments

@webVueBlog
Copy link
Member

No description provided.

@webVueBlog webVueBlog added the web综合 web综合 label May 15, 2020
@webVueBlog
Copy link
Member Author

//css
.mainDiv {
    float: left;
    margin-left: 10%;
    width: 80%;
    margin-top: 2%;
    height: 200px;
    background-color: #FFEBCD;

}

.viceDiv_1,.viceDiv_2,.viceDiv_3 {
    float: left;
    background-color: #7FFFD4;
    margin-top: 2% ;
    margin-left: 2.5%;
    width: 30%;
    height: 150px;  
}
//html
    <body>
        <div class="mainDiv">
            <div class="viceDiv_1">
            </div>
            <div class="viceDiv_2">
            </div>
            <div class="viceDiv_3">
            </div>
        </div>
    </body>

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

No branches or pull requests

1 participant