Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize interlaced discoloration in bootstrap

Shulou Source: shulou.com Published: 2022-06-02 05:04:30 10月03日 Update

This article will explain in detail how to achieve interlace color for bootstrap, Xiaobian thinks it is quite practical, so share it for everyone to make a reference, I hope you can gain something after reading this article.

In bootstrap, you can use the ".table-striped" table class to achieve interlaced color, which is used to set the background of odd rows in tbody tags to gray. You only need to add the "class="table table-striped"" style to the table elements.

Operating environment of this tutorial: Windows 7 system, bootsrap3.3.7 version, DELL G3 computer

By adding the.table-striped class, you will see stripes on the rows inside.

You can use the ".table-striped" table class to achieve interlaced color, just add the "class="table table-striped"" style to the table elements.

Examples are as follows:

Bootstrap Example-Stripe Table Stripe Table Layout Name City Postcode TanmayBangalore560001SachinMumbai400003UmaPune411027

Output:

About "bootstrap how to achieve interlaced color" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.

Tags: Tables discoloration stripes articles elements more styles good practical content names cities odd numbers examples layouts tutorials articles tags gray environment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Linux vpn Apple Shulou Technology