如何打印Horizo​​ntaly我的项目成员头像在laravel刀片文件中?

时间:2017-12-19 09:13:46

标签: php css html5 laravel-5

我的Laravel刀片文件中有一些成员头像打印。

@foreach( $project->collaborators as $collaborator)
    <div>
        <span>
            <img src="{{ $collaborator->user()->first()->getAvatarUrl() }}" />
            {{ $collaborator->user()->first()->name}}
        </span>
    </div>
@endforeach

这是在我的刀片文件中垂直打印。但我需要水平打印。我怎么能这样做?

1 个答案:

答案 0 :(得分:0)

尝试将div显示方法更改为内联,而不是默认块:

if (_calendar.get(Calendar.MONTH) == shownMonth.get(Calendar.MONTH)) {
    int day = _calendar.get(Calendar.DAY_OF_MONTH);
    String str = Integer.toString(day);
    drawCell(canvas, row, col, textColor, backgroundColor, str, false);
}
_calendar.add(Calendar.DAY_OF_MONTH, 1);

在css中:

 @foreach( $project->collaborators as $collaborator)
     <div class="collaborator">
         <span>
             <img src="{{ $collaborator->user()->first()->getAvatarUrl() }}" />
                             {{ $collaborator->user()->first()->name}}
         </span>
      </div>
 @endforeach