LoginSignup
upbook0426
@upbook0426 (Upbook)

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

Laravel button のCSSが上手く反映されません。

解決したいこと

Laravelでform内のデータを取得してのbuttonではなく、
単にページ遷移のbuttonの作成はどのようにすれば良いでしょうか。
色々試していますが、上手くcssが反映されません。
補足として、ページ遷移は出来ています。また他のコードはCSSはちゃんと反映しています。

解決方法を教えて頂きたく宜しくお願い致します。

下記コードを試しましたが上手く反映されません。

<button class="edit_button"><a href="{{route('edit_list')}}" >編集</a></button>

<button class="edit_button" type="button" formaction="{{ route('edit_list')}}" formmethod="post">button</button>

<button class="edit_button" type="button" onclick="window.location='{{ route("edit_list" }}'">Button</button>

宜しくお願い致します。

0

1Answer


<button class="edit_button"><a href="{{route('edit_list')}}" >編集</a></button>

のところですが、

<a class="edit_button" href="{{route('edit_list')}}" >編集</a>

と書いたら、解決しませんか?

0

Comments

  1. @upbook0426

    Questioner
    それでも解決できなかっので、もしかしたらと思い、ブラウザのキャッシュをクリアすると反映されました。ご回答にお時間を割いていただき有り難うございました。感謝します。

Your answer might help someone💌