【发布时间】:2011-11-17 11:05:50
【问题描述】:
我在这个页面上使用了 input:hover 和 input:focus 的 CSS 样式:
Lenticular Printing and 3D Promotional Products
效果在 Chrome 和 Firefox 中有效,但在 IE 中无效。我做错了什么?
【问题讨论】:
标签: css internet-explorer internet-explorer-8 focus hover
我在这个页面上使用了 input:hover 和 input:focus 的 CSS 样式:
Lenticular Printing and 3D Promotional Products
效果在 Chrome 和 Firefox 中有效,但在 IE 中无效。我做错了什么?
【问题讨论】:
标签: css internet-explorer internet-explorer-8 focus hover
如果您在使用 IE9 时在本地计算机(或 Intranet 站点)上没有看到焦点颜色充电,请使用 Tools >> Compatibility View Settings,并禁用 Compatability 复选框。
这将覆盖浏览器级别的设置,与网站代码无关。
【讨论】:
:focus。
【讨论】:
检查 html 文档是否有效,因为 Internet Explorer 可能处于 quirks 模式,为此请确保您的文档有效,并检查 html 文档标题:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
【讨论】: