表单CSS输入:悬停和输入:焦点在IE中不起作用

时间:2011-09-14 23:33:37

标签: css internet-explorer internet-explorer-8 focus hover

我正在使用输入的CSS样式:悬停和输入:专注于此页面:

Lenticular Printing and 3D Promotional Products

效果适用于Chrome和Firefox,但不适用于IE。我做错了什么?

3 个答案:

答案 0 :(得分:3)

如果在使用IE9时未在本地计算机(或Intranet站点)上看到焦点颜色充电,请使用Tools >> Compatibility View Settings,并禁用Compatability复选框。

这将覆盖浏览器级别的设置,无论网站的代码如何。

答案 1 :(得分:2)

<不支持

:focus IE8。

答案 2 :(得分:2)

检查html文档是否有效,因为Internet Explorer可能处于怪癖模式,为此请确保您的文档有效,并检查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">
相关问题