gpt4 book ai didi

css - 如何在 laravel Blade 语法按钮中添加内联 css?

转载 作者:行者123 更新时间:2023-12-03 08:46:00 24 4
gpt4 key购买 nike

我想像普通 HTML 按钮元素一样添加样式属性

<button type="button" style="background-color: #b4b7b7">Load</button>

在此按钮中

{{ Form::submit('Load', ['class'=>'btn btn-primary']) }}

最佳答案

Laravel Blade 中的此代码带有 LaravelCollective's HTML

{{ Form::button('Load', ['type' => 'button', 'style' => 'background-color: #b4b7b7']) }}

应该生成以下 html

<button type="button" style="background-color: #b4b7b7">Load</button>

关于css - 如何在 laravel Blade 语法按钮中添加内联 css?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61454990/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com