Home >Web Front-end >HTML Tutorial >Regarding the display:flex effect, what is it mainly used for? _html/css_WEB-ITnose

Regarding the display:flex effect, what is it mainly used for? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:56:511972browse

Today I came into contact with a small game from Tencent. There is a question in it

The answer is to set dipslay:flex on the parent element; and set flex:1 on the second div
I would like to ask, what does this do? What is it?


Reply to discussion (solution)

No one has used it?

Very few people use it like this

Very few people use it like this


I checked, this is the content of CSS3, you have never used this before New technology?

This is the flexible layout in css3

http://css-tricks.com/snippets/css/a-guide-to-flexbox/

?Layout method , you can get it after solving it
If you don’t understand the website yet, let’s take a look first

I haven’t used it before, I checked it online and I understand the purpose

This is the flexible layout in CSS3


Do you use it often?

I haven’t used it before, but I checked it online and understood its use.


What are the most commonly used ones in CSS3?
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn