How can bootstrap achieve interlaced color change?

WBOY
Release: 2021-12-28 09:44:27
Original
3369 people have browsed it

In bootstrap, you can use the ".table-striped" table class to achieve alternate row color change. This table class is used to set the background of odd rows to gray in the tbody tag. You only need to add "class=" to the table element. table table-striped "" style is enough.

How can bootstrap achieve interlaced color change?

The operating environment of this tutorial: Windows 7 system, bootsrap version 3.3.7, DELL G3 computer

What can be achieved with bootstrap Alternate row color change

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

.

You can use the ".table-striped" table class to achieve alternating row colors. You only need to add the "class="table table-striped"" style to the table element.

The example is as follows:

   Bootstrap 实例 - 条纹表格    
条纹表格布局
名称 城市 邮编
Tanmay Bangalore 560001
Sachin Mumbai 400003
Uma Pune 411027
Copy after login

Output result:

How can bootstrap achieve interlaced color change?

Recommended study: "bootstrap usage tutorial"

The above is the detailed content of How can bootstrap achieve interlaced color change?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!