【发布时间】:2021-03-05 18:27:39
【问题描述】:
我正在使用 AdminLte 模板,我将其用作布局。在我要放置内容的部分是这样的:
<div class="content-wrapper">
<section class="content">
@yield('content')
</section>
<!-- /.content -->
</div>
在我有要显示的内容的视图中:
@extends('layouts.app')
@section('content')
<div>
<img class="mx-auto my-auto d-block" src="{{ asset('dist/img/logo.png')}}" alt="logo" style="opacity: .2">
</div>
@endsection
执行时,徽标图像水平居中显示,但垂直显示附加到上边缘。我尝试了各种形状,但无法使其垂直居中。我不知道如何解决它。我将不胜感激。
【问题讨论】:
标签: html css laravel bootstrap-4