我在创建一个漂亮的电子商务页面时遇到了问题,该页面具有一张卡片列表,并且在电子商务站点中具有页面分页功能。
我尝试创建一些卡片,但是做到了,但是没有网格或分页,请提供任何帮助。
<div class="main-content">
<div class="row">
<!-- Grid column -->
<div class="column-2 px-2 mb-r">
<!--Card-->
<div class="card default-color-dark">
<!--Card image-->
<div class="view">
<img src="https://mdbootstrap.com/img/Photos/Slides/img%2810%29.jpg" class="card-img-top" alt="photo">
<a href="#">
<div class="mask rgba-white-slight"></div>
</a>
</div>
<!--Card content-->
<div class="card-body text-center">
<!--Title-->
<h4 class="card-title white-text">Title of the news</h4>
<!--Text-->
<p class="card-text white-text">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium
doloremque laudantium, totam rem
aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
Nemo enim ipsam voluptatem quia voluptas.</p>
<a href="#" class="btn btn-outline-white btn-md">Button</a>
</div>
</div>
<!--/.Card-->
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="column-1 px-2 mb-r">
<!--Card-->
<div class="card primary-color-dark">
<!--Card image-->
<div class="view">
<img src="https://mdbootstrap.com/img/Photos/Slides/img%2811%29.jpg" class="card-img-top" alt="photo">
<a href="#">
<div class="mask rgba-white-slight"></div>
</a>
</div>
<!--Card content-->
<div class="card-body text-center">
<!--Title-->
<h4 class="card-title white-text">Title of the news</h4>
<!--Text-->
<p class="card-text white-text">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium
doloremque laudantium, totam rem
aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
Nemo enim ipsam voluptatem quia voluptas.</p>
<a href="#" class="btn btn-outline-white btn-md">Button</a>
</div>
</div>
<!--/.Card-->
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="column-1 px-2">
<!--Card-->
<div class="card warning-color-dark">
<!--Card image-->
<div class="view">
<img src="https://mdbootstrap.com/img/Photos/Slides/img%2812%29.jpg" class="card-img-top" alt="photo">
<a href="#">
<div class="mask rgba-white-slight"></div>
</a>
</div>
<!--Card content-->
<div class="card-body text-center">
<!--Title-->
<h4 class="card-title white-text">Title of the news</h4>
<!--Text-->
<p class="card-text white-text">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium
doloremque laudantium, totam rem
aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
Nemo enim ipsam voluptatem quia voluptas.</p>
<a href="#" class="btn btn-outline-white btn-md">Button</a>
</div>
</div>
<!--/.Card-->
</div>
<!-- Grid column -->
</div>
我希望在分页和更漂亮的购物卡方面拥有更专业的商业页面。