【发布时间】:2009-10-08 22:21:53
【问题描述】:
website 表示支持,但无法呈现以下样式。
<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 确实支持属性选择器 (quirksmode.org/css/contents.html),但这值得一试。
-
它仅在标准模式下受支持...您的页面处于哪种渲染模式?