小编LeR*_*ur1的帖子

使用 Boostrap 连续 4 列

我正在使用 Bootstrap 4.5.1 来显示 4 列,看起来像这样。

我的 4 列的实际显示。

1

我希望这 4 列在一行中对齐(它们不应该换行)。

这是代码:

html

<div class="container flex-nowrap">
            <div class="featured-boxes">
                <div class="row">
                    <a href="<?= $this->Url->build(['controller' => 'Academy' , 'action' => 'index', 'language' => $this->request->getSession()->read('Config.language')]); ?>">
                        <div class="col-sm">
                            <div class="featured-box featured-box-primary featured-box-effect-1 mt-xlg" style="height: 358px;">
                                <div class="box-content">
                                    <i class="icon-featured fa fa-graduation-cap"></i>
                                    <h4 class="text-uppercase"><?= __('Academy'); ?></h4>
                                    <p><?= __(''); ?></p>
                                    <?= $this->Html->image('academy.png', ['alt' =>  __('Academy'), 'class' => 'img-responsive img-rounded']); ?>
                                </div>
                            </div>
                        </div>
                    </a>
                    <a href="<?= $this->Url->build(['controller' => 'Esports' , 'action' => 'index', 'language' …
Run Code Online (Sandbox Code Playgroud)

html bootstrap-4

1
推荐指数
1
解决办法
117
查看次数

标签 统计

bootstrap-4 ×1

html ×1