website表示支持,但以下样式不显示。Internet Explorer 8如何支持CSS大纲属性?
<style type="text/css">
a[href="#"]{outline:#f00 dotted 2px !important}
</style>
然而,以下情形将导致
<style type="text/css">
a[href="#"]{border:#f00 dotted 2px !important}
</style>
这里是我的文档
<?xml version="1.0" encoding="UTF-8"?>
<!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">
<head>
<title>...</title>
<link type="text/css" rel="stylesheet" href="../content/style.css" />
</head>
<body>...</body>
</html>
你确定规则被应用?我认为IE8支持属性选择器(http://www.quirksmode.org/css/contents.html),但这值得检查。 – 2009-10-08 14:04:18
它仅在标准模式下受支持......您的页面处于什么渲染模式? – 2009-10-08 14:06:20
doctype是xhtml 1.0严格 – Dave 2009-10-08 14:14:24