Bootstrap pull right在laravel中不起作用

时间:2018-06-04 16:19:31

标签: bootstrap-4

我正在尝试将删除链接添加到编辑链接的最右侧 我尝试了拉右,这是折旧的,并用浮动右替换它,但没有工作。 截图:

screenshot image

@extends('layouts.app')

@section('content')
<br>
<a href ="/posts" class="btn btn-default">Back</a>
<h1>{{$post->title}}</h1>

<div>
{!! $post->body!!}
</div>
<hr>
<small>Written on {{$post->created_at}}</small>
<hr>
<a href="/posts/{{$post->id}}/edit" class="btn btn-default">Edit</a>
{!! Form::open(['action'=>['PostsController@destroy',$post->id,'method'=>'POST','class'=>'float-right']])!!}
{{Form::hidden('_method','DELETE')}}
{{Form::submit('Delete',['class'=>'btn btn-danger'])}}
{!! Form::close() !!}
@endsection

0 个答案:

没有答案