gpt4 book ai didi

CSS/Bootstrap 容器

转载 作者:行者123 更新时间:2023-11-28 18:14:43 27 4
gpt4 key购买 nike

我想要两个容器,因为当我改变大小时,它也会改变菜单的大小。这是我的索引 http://paste.laravel.com/GN8 ,我想要这部分:

     @if ($news->count())
@foreach($news as $news)
<div class="container">
<div class="doc-content-box">
<legend>{{ $news->title }} <div id="spaceholder"></div>

<p>
<h6><i class="icon-calendar"></i> {{ $news->created_at }} &nbsp;&nbsp;&nbsp;&nbsp;<a href="/profile/{{ $news->author }}">{{ $news->author }}</a>
</p>
</h6>
</legend>
<div style="margin-top:7px">

<p>{{ $news->content }}</p>
</div>

</div> <!-- /container -->
<div id="spaceholder">&nbsp;</div>
@endforeach
@else
{{ 'There are no news.' }}
@endif

宽度为 749px,当我复制之前添加的 .container 时,它只是将它拉到左边。我希望它类似于 container-two

我还有覆盖容器的自定义 CSS: http://paste.laravel.com/JEt

最佳答案

添加容器这个样式:

margin: 0 auto;

关于CSS/Bootstrap 容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18063886/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com