The relationship between ul high crash and overflow caused by float floating, uloverflow

Source: Internet
Author: User

The relationship between ul high crash and overflow caused by float floating, uloverflow
The problem we encountered today is really annoying, because it took me half a day to solve it. I always think that I should have a good understanding of Html and Css, but what I encounter today makes me have to reflect on my learning mentality errors. The problem with Html and Css is a big problem, because once a layout error occurs, it is often not a problem with your own code, but an error that you do not understand the concept of a browser. This tells us that we must continue to practice and encounter problems so that we can have a deeper understanding of the principles of browsers. Do not think that you have learned almost the same thing. In fact, you are at the point where you are not getting started. Therefore, you must always be modest to learn more. The problem today occurs when I use CSS3 to write the accordion effect. Error: When this error occurs, you never understand where the problem occurs. Because you have set ul: hover, once the mouse appears in ul, all li will be reduced. Here, if ul has a height, it will happen. Because ul has a height, the text in the figure will also narrow down all li. So here we will use the ul crash function. Once ul has no height, there will be no blank parts. Because li is still part of ul, it will change. However, I carelessly used the overflow to close the floating, which resulted in ul's height. Later. Here we use ul's highly crash. We can see that this is not necessarily a bug, but sometimes it can be used to achieve our goal. In fact, sometimes technology is not a real limitation, but thinking is a real limitation. In addition, do not be afraid of making mistakes, because every mistake is a chance for you to learn again.

Related Article

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.