Bootstrap类“label label-danger”在laravel中不起作用 [英] Bootstrap class "label label-danger" does not work in laravel

查看:196
本文介绍了Bootstrap类“label label-danger”在laravel中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对所有人来说,美好的一天,我想通过使用bootstrap的标签label-danger类给出链接某种装饰,但我不知道它不起作用。以下是代码:< h2>< a href =/ category / {{$ cat-> id}}class =label label-danger> {{$ cat-> TypeOfAccounting}}< ; / a>< / h2>



我尝试过:



试图在卡类之外使用,但所有相同的

解决方案

cat-> id}}class =label label-danger> { {


cat-> TypeOfAccounting}}< / a>< / h2>



我是什么尝试过:



尝试在卡类之外使用但是都一样


事实上你'提到类表示你正在使用Bootstrap 4.



label-danger class是Bootstrap 3的一部分。在Bootstrap 4中,你应该使用 badge badge-danger 代替。



标签和徽章 - 迁移到v4 - Bootstr ap [ ^ ]

Good day to all, I wanted to give a link some kind of decoration by using bootstrap's label label-danger class but I dunno it does not work. Here is the code: <h2><a href="/category/{{$cat->id}}" class="label label-danger">{{$cat->TypeOfAccounting}}</a></h2>

What I have tried:

Tried to use outside of card class but all the same

解决方案

cat->id}}" class="label label-danger">{{


cat->TypeOfAccounting}}</a></h2>

What I have tried:

Tried to use outside of card class but all the same


The fact that you've mentioned the card class suggests that you're using Bootstrap 4.

The label-danger class was part of Bootstrap 3. In Bootstrap 4, you should use badge badge-danger instead.

Labels and badges - Migrating to v4 - Bootstrap[^]


这篇关于Bootstrap类“label label-danger”在laravel中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆