【发布时间】:2011-10-12 14:47:59
【问题描述】:
我知道以前有人问过这个问题,但我很难让它在 IE9 中工作。我有一个 html 页面,其中包含 3 个表单(因为每个表单都包含对网站上不同资源的请求)。 html 看起来像这样:
<form action="/SomeController1/Action" method="get"><button name="action" value="someValue">Request the first thing</button></form>
<form action="/SomeController2/Action" method="get"><button name="action" value="someValue">Request the second thing</button></form>
<form action="/SomeController3/Action" method="get"><button name="action" value="someValue">Request the third thing</button></form>
我正在尝试禁用页面加载时所有三个按钮上显示的蓝光。我觉得它看起来真的很混乱......
我正在尝试实施但似乎不起作用的解决方案是:
button
{
outline-width: 0px;
outline: none;
}
无论如何,发光不会出现在 Firefox 或 Chrome 中,它似乎只是出现在 IE 中。我想我可以只使用一个表单并在其中放置 3 个按钮,但这似乎更像是一种解决方法而不是解决方案。有没有办法使用 CSS 或 javascript 来做到这一点?任何帮助将不胜感激!
谢谢!
编辑 - 这是问题的图片:
【问题讨论】:
标签: html css internet-explorer