this is my first question asked here a stack overflow.

这是我在这里提出的第一个问题,堆栈溢出。

I have a problem that has been bugging me for a bit now.

我有一个困扰我一段时间的问题。

When I have a page loaded with multiple buttons on the page the first button in the HTML Markup seems to get this think border around the button.

当我在页面上加载了多个按钮的页面时,HTML标记中的第一个按钮似乎在按钮周围设置了思考边界。

I'm sorry if this has been asked before but I've read many forums that are related to this issue but so far have been unsuccessful with combating this issue with suggestions that address this issue. I am guessing it has something to do with the focus of the button on page load, for usability when pressing a keyboard button.

如果之前有人问过这个问题,我很抱歉,但是我读过很多与这个问题相关的论坛,但是到目前为止,我还没有成功地用解决这个问题的建议来解决这个问题。我猜这与页面加载按钮的焦点有关,因为按下键盘按钮时可用性更好。

I was hoping that there is a way to style this button when is focus mode for IE 7 and above either through javascript or in this code behind. I am using VB.net but would greatly appreciate C# example's if the code behind is the way to go.

我希望有一种方法可以在IE 7的焦点模式下,通过javascript或者在后面的代码中,来设计这个按钮。我正在使用VB.net,但是如果后面的代码是正确的,那么非常感谢c#示例。

Any help would be greatly appreciated.

如有任何帮助,我们将不胜感激。

Thanks Jake

感谢杰克

4 个解决方案

#1


1

Try applying a CSS style for the button with the :focus pseudo class, which may allow to change the style of the button. Don't know if that's supported in all major browsers.

尝试使用:focus pseudo类为按钮应用CSS样式,可以更改按钮的样式。不知道这在所有主流浏览器中是否都被支持。

http://www.w3schools.com/CSS/pr_pseudo_focus.asp

http://www.w3schools.com/CSS/pr_pseudo_focus.asp

更多相关文章

  1. 我可以禁用“后退”按钮浏览器功能吗?
  2. 调用另一个html页面后,选择列表值不会保持不变
  3. JavaScript实际应用:父子页面交互
  4. 如何禁用IE和Firefox中的后退按钮? [重复]
  5. 使用Jquery Ajax更改按钮的颜色(从外部PHP文件接收颜色)
  6. 执行javascript作为coldfusion页面加载
  7. 在单选按钮上选中/取消选中,加载/隐藏部分视图
  8. 如何在页面上获得带有javascript的特定单词的链接
  9. 我可以在JavaScript中从不同的页面传递参数吗?

随机推荐

  1. android判断软件是否第一次运行的方法
  2. Linux下安装配置Android开发环境
  3. Error:Execution failed for task ':app:
  4. linux下eclipse构建并编译android一个简
  5. 系统屋索引
  6. android中json解析及使用(中)
  7. Android FrameLayout
  8. Android获取RecyclerView滑动距离
  9. Android Handler消息处理机制面试5连问
  10. Android拨打电话权限总结