The impact of flex layout on yourself

Source: Internet
Author: User

The impact of flex layout on yourself

This can be achieved with an effect in this figure. For me, today we are making progress. The specific operation is that the box model is true, the flex is applied to the place where it is located.

At first, I had a problem. After thinking for a long time, it turned out that my control code encountered a certain error, that is, I did not put the corresponding control in the thought box, but placed it under the child element, what's really wrong is that

I tried a lot and tried a lot. Naturally, I knew why it was like this. Thanks to myself, I have completed the authentication for a very simple static page, this is to improve your CAPTCHA code capabilities,

Haha, the Code is as follows!

 

<! DOCTYPE html>
<Html lang = "en">
<Head>
<Meta charset = "UTF-8">
<Meta name = "viewport" content = "initial-scale = 1, maximum-scale = 1, minimum-scale = 1, user-scalable = no">
<Meta content = "yes" name = "apple-mobile-web-app-capable">
<Meta content = "yes" name = "apple-touch-fullscreen">
<Meta content = "telephone = no, email = no" name = "format-detection">
<Meta name = "wap-font-scale" content = "no">
<Script src = "js/flexible. js"> </script>
<Title> logon </title>
<Link rel = "stylesheet" type = "text/css" href = "css/common.css">
<Link rel = "stylesheet" type = "text/css" href = "css/index.css">
</Head>
<Body>
<Div class = "login">
<Div class = "login-header">
<Ul class = "list3">
<Li class = "facing-left">
<Div class = "facing-left1"> </div>
</Li>
<Li class = "facing-center">
<H2> logon
</Li>
<Li class = "facing-right">
<Span> Registration </span>
</Li>
</Ul>
</Div>
<Div class = "login-content">
<Div class = "content-head"> <span> reward Logon account </span> </div>
<Div class = "content-t">
<Input type = "text" placeholder = "email phone">
<Input type = "text" placeholder = "password">
</Div>
<Div class = "content-footer"> <span> forgot password? </Span> </div>
<Div class = "footer-content"> <p> click log on, that means you have read and agreed to <span> User License Agreement </span> </p> </div>
</Div>
<Div class = "login-footer">
<Div class = "footer-head">
<P> log on with a third-party account </p>
</Div>
<Div>
<Ul class = "list4">
<Li> </li>
<Li> </li>
<Li> </li>
</Ul>
</Div>
</Div>
</Div>

</Body>
</Html>

 

 

. Login-header {
Width: 100%;
Height: 1.3438rem;
}

. Login-header. list3 {
Width: 100%;
Display: flex;
Justify-content: space-;
}

. Login-header. list3. facing-center {
Margin-top: 0.3438rem;
}

. Login-header. list3. facing-right {
Margin: 0.4438rem 0.4688rem 0 0;
Color: #404040;
}

. Login-header. list3. The facing-left1 {
Display: inline-block;
Justify-content: flex-start;
Margin: 0.5062rem 0 0 0.4688rem;
Border-left: 0.0469rem solid; border-bottom: 0.0469rem solid;
Width: 0.3281rem; height: 0.3281rem;
Transform: rotate (45deg );
}

. Login-content {
Width: 100%;
}

. Login-content. content-head {
Text-align: center;
Margin-top: 0.625rem;
}

. Login-content. content-head span {
Font-size: 0.4375rem;
Color: #808080;

}

. Content-t {
Margin-top: 0.9375rem;
}

. Content-t input {
Height: 1.2188rem;
Margin-left: 0.3125rem;
Display: block;
Padding-left: 0.3125rem;
Outline: none;
Width: 90%;
Background: # f8f9f9;
}


. Content-t input: hover {
Background: # ebeced;
Border-radius: 0.3125rem;
}

. Content-t input: nth-child (2 ){
Margin-top: 0.2344rem;
}

. Content-footer {
Margin: 0.1562rem 0 0 0.3125rem;
}

. Content-footer span {
Font-size: 0.3238rem;
Color: #404040;
}

. Footer-content {
Text-align: center;
Margin-top: 3.1875rem;
}

. Footer-content p {
Font-size: 0.3438rem;
Color: #888888;
}

. Footer-content p span {
Color: red;
}

. Login-footer. footer-head p {
Text-align: center;
Margin-top: 3.1875rem;
Font-size: 0.3438rem;
Color: #888888;
}

. Login-footer. list4 {
Margin-top: 1.0rem;
Display: flex;
Justify-content: space-around
}

. Login-footer. list4 li {
Width: 1.5rem;

}

. Login-footer. list4 li img {
Max-width: 100%;
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.