Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How css sets the pre-insertion height of this style object to 0

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how css sets this style object before inserting a height of 0. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

When opening up the wasteland of MUI framework, class=mui-table-view comes with the same border as the top frame and the bottom frame. How to remove the top and bottom borders of mui-table-view?

Setting equipment border: none; (border-top:0;border-bottom bump frame is 0) are all useful and cannot be removed.

How to get rid of it:

.mui-table-view:after {height:0} .mui-table-view:before {height:0}

The insertion height is 0 before setting this fancy object and 0 after the object.

MUI allows the configuration of .mui-table-view:after and .mui-table-view:before height to 1px in the CSS file, and sets the gray background of the equipment to imitate the border effect, so you can join the above code after introducing the CSS library.

For example, the steps for introducing CSS files into HTML link (not to be mistaken):

Next, mystyle.css customizes itself and puts it in the new CSS file

Mui-table-view:after {height:0} .mui-table-view:before {height:0} Thank you for reading! This is the end of this article on "how to set the insertion height of css to 0 before setting this style object". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report