【发布时间】:2010-03-04 05:54:09
【问题描述】:
在另一个标签内使用<noscript> 似乎会导致它采用自己的样式(即无),并强制其中的文本采用自己的行(即使display:inline 使用CSS 设置)。有什么方法可以避免这种情况,或者可以使用替代方法吗?
这就是我的意思:http://www.webdevout.net/test?01I
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Test</title>
<style type="text/css">
p { font-family:sans-serif; font-size:12px;}
noscript {display:inline !important;}
</style>
</head>
<body>
<p>This is some text<noscript> that should be displayed on the same line with the same style if JS if disabled.</noscript></p>
</body>
</html>
【问题讨论】:
-
顺便说一句,你用的是什么UA?在 IE8、fx3.5 中,这一切都在一条线上。
标签: html css stylesheet inline noscript