gpt4 book ai didi

html - Bootstrap .btn 在 Safari 上看起来不一样

转载 作者:行者123 更新时间:2023-12-02 16:23:57 25 4
gpt4 key购买 nike

我有这个 HTML 代码:

      <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<a href="poweron.php" type="button" class="btn btn-danger text-white">Power On</a>
</div>

这是它在 Safari 和 Chrome 上的样子:

enter image description here

为什么电源按钮看起来是“灰色”的,而且它在 Safari 上的大小不同,但在 Chrome 上却能正常工作?如何让它看起来和 Google Chrome 上的一模一样?

最佳答案

您可以尝试将此样式添加到您的 <a>使用此代码标记:

 a[type='button'] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;

}

关于html - Bootstrap .btn 在 Safari 上看起来不一样,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64912537/

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