使用这些CSS样式
a:active, a:focus,input, input:active, input:focus{ outline: 0; outline-style:none; outline-width:0; }
a:active, a:focus,button::-moz-focus-inner, input[type="reset"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner, input[type="submit"]::-moz-focus-inner, input[type="file"] > input[type="button"]::-moz-focus-inner
{ border: none; }
OR
:focus {outline:none;} ::-moz-focus-inner {border:0;}
一旦CSS样式部分已经完成了,那么你可能还需要设置IE-模拟器。更新您的Web应用程序web.config文件并包含下面的键。
<system.webServer>
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=7; IE=9; IE=8; IE=5;" />
</customHeaders>
</httpProtocol>
</system.webServer>
来源
2011-04-19 10:13:41
VIP
欢迎SO杰克。 – 2010-02-13 23:23:26
不是直接为您的问题提供解决方案,但可以通过将表单中的defaultbutton属性设置为所需的按钮控件ID来指定哪个按钮应该获得焦点。 – Filburt 2010-02-13 23:42:05
你可以在某个地方放置截图或示例页面吗? “厚”有多厚?你有没有按钮的CSS规则? – Pointy 2010-02-14 03:33:38