javascript - 配置文件脚本未正确显示

标签 javascript php html laravel

我正在设置一个新脚本,我希望得到支持。我需要在哪里更改我的代码,因为现在看起来很奇怪。我想显示配置文件,而不是两个向上和两个向下。这是一个正确显示方式的示例:https://imgur.com/a/zOv2mjP

这是我的代码:

<div class="tab-v2 margin-bottom-40">

<?php $count_user = 0; ?>
@foreach($user->contact as $contact)
@if($count_user == 0)
@endif
<?php $count_user++; ?>

<ul class="nav nav-tabs">

    <li class="active">
        <a data-toggle="tab" href="#contact1">
            <?php $img = asset('thumbnail').'/'.$contact->profile_picture; ?>
            <img class="img-circle noticeboard-profile-picture" src="{{ url('ass/50/50?'.$img) }}" alt=""></a>
        </li>
        <li>
            <a data-toggle="tab" href="#contact2">
                <?php $img = asset('thumbnail').'/'.$contact->profile_picture; ?>
                <img class="img-circle noticeboard-profile-picture" src="{{ url('ass/50/50?'.$img) }}" alt=""></a>
            </li>

        </ul>
        <div class="tab-content">
            <div id="contact1" class="tab-pane magazine-sb-categories active">
                <div class="row team-v1">
                    <ul class="list-unstyled col-xs-12" style="margin-bottom: -10px">

                        <li><h3 style="margin-top: 5px !important;text-transform: none; "><a href="{{ url('') }}/{{ $contact->username }}"> {{ $contact->username }}</a></h3><p>
                            <strong><i class="icon-real-estate-020 u-line-icon-pro"></i> : </strong><a href="#">{{ $contact->country->country }}</a><br>
                            <strong><i class="icon-screen-tablet fa-" aria-hidden="true"></i> : </strong><a href="#">{{ $contact->industry->industry }}</a><br>
                            <strong><i class="icon-frame fa-" aria-hidden="true"></i> : </strong><a href="#">{{ $contact->organization_type->organization_type }}</a><br>
                        </p>
                    </li></ul>

                </div>

                @if($count_user == 2)
            </div>
            @break;
            <?php  $count_user = 0; ?>
            @endif
            @endforeach

最佳答案

您可以尝试修改样式表以内联显示无序列表元素:

ul li { display: inline; }

关于javascript - 配置文件脚本未正确显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56577331/

相关文章:

javascript - 循环遍历表并将特定单元格存储在数组中(如果选中行)

php - Laravel - Mongodb [jenssegers/laravel-mongodb] - 架构生成器

PHP mysql select查询where(通配符)

javascript - 在我的 href 中添加一些内容

javascript - 如何创建一个新对象,并将其父类(super class)型的名称分配给变量?

javascript - 如何创建javascript多维数组?

javascript - JavaScript 中的 "symbol"原始数据类型是什么

Javascript (Ajax) 解析 JSON 值

html - 使用 Qt 5.5.1 从 QWebView 获取网站内容

html - 图片不会垂直拉伸(stretch)到浏览器大小