Daily pitfall-margin merge between adjacent elements ., Margin

Source: Internet
Author: User

Daily pitfall-margin merge between adjacent elements ., Margin

Step-by-Step: Use the v-for rendering component. Of course, the id in the figure has been replaced with a class, but it still does not solve this problem, I don't believe that simple CSS problems are so difficult to solve!

 

V-for rendering component-level value transfer:

<Div class = "faqList"> <card v-for = "item in faq": key = item. title: faqTitle = item. title: userName = item. userName: userLevel = item. userLevel: solve = item. solve> </card> </div>

 

 

 

Sure enough, it is a pitfall. The margin between adjacent elements is merged. You only need to change each element to an element in the row, if the element in the row affects other styles, you only need to let every element float to solve this problem.

The following is the original article to solve the problem. Record the issue so as not to forget it later.

Original article: http://blog.csdn.net/github_37037281/article/details/55505825

 

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.