且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

嵌套< a>里面<按钮>在Firefox中不起作用

更新时间:2023-01-03 08:53:18

,你也必须把Firefox改成

To make it work in all browser, Firefox too you have to change it to

<a href="#"><button class="btn"></button></a>

或者像Billy Moat建议的那样,在bootstrap中不需要 < button>< / code>您可以这样做:

or as suggested by Billy Moat in case of bootstrap there was no need of <button> you could just do

<a href="#" class="btn">GO</a>