asp:按钮边框出现在Chrome页面上点击 [英] asp: button border appears on page click in Chrome

查看:203
本文介绍了asp:按钮边框出现在Chrome页面上点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp:按钮,当点击Chrome时,按钮周围有一个金色边框。当页面刷新时,这会消失。我已经尝试更新像访问,悬停,链接这样的CSS操作但没有成功。任何帮助深表感谢。谢谢,



这是我的HTML:

I have an asp: Button that when clicked in Chrome it has a gold border around the Button. This goes away when the page refreshes. I have tried updating the CSS actions like "visited, hover, link" with no success. Any help is much appreciated. Thanks,

Here is my HTML:

<asp:Button runat="server" Onclick="AllMessages" class="EmailFilters" Text="All"/>





这是我的CSS课程:



Here is my CSS class:

.EmailFilters {
	color: #fff;
	font-size: 14px;
	padding-right: 2EM;
	background-color: transparent;
	border: none;
}

	.EmailFilters:visited {
		text-decoration: none;
		border: none;
	}

推荐答案

这不是边框的大纲。

Chrome知道浏览器为所选元素声明大纲(css)。

在你的css规则中输入 outline:none; 它将会消失......
It's not border it's outline.
Chrome know as a browser that declare outline (css) for selected element.
Put outline: none; in your css rule an it's will be gone...


这篇关于asp:按钮边框出现在Chrome页面上点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆