删除按钮周围的蓝色框。 HTML [英] Remove blue box around buttons. HTML
本文介绍了删除按钮周围的蓝色框。 HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前正在制作网站并添加菜单按钮。我的问题是,当我点击一个按钮时,它周围有一个蓝色框。我试图在
I am currently making a site and adding the menu buttons. My problem is that when ever i click a button there is a blue box around it. I have try to at
<button type="button" style="border:none; border-style:none"></button>
<li style="border:none; border-style:none"></li>
<a style="border:none; border-style:none" href="#">Home</a>
而且它们都不起作用。我的代码目前是..
And they all don't work. My code is currently..
<button type="button"><li><a href="music.html">Music</a></li></button>
我尝试了所有border = none,并尝试使用边框样式和边框颜色。任何帮助将非常感激。
I have tried all the border = none and tried 0 with both border-style and border-color. Any help would be much appreciated.
推荐答案
尝试下面的CSS风格,
Try the below CSS style,
button
{
outline: 0 none;
}
这篇关于删除按钮周围的蓝色框。 HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文