Get the App
SLTechnology News&Howtos  ›  Development  › 

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

Shulou Source: shulou.com Published: 2022-06-01 06:50:45 11月18日 Update

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!

Tags: Border height object file style content decoration more article good practical next code sequence bump method bottom achievement effect article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Redmi Shulou Tech Info Shulou Technology Linux