我使用这样的代码,它在IE和Firefox上运行得很好:
.tytulmalykom {
color:#666666;
font-size:11px;
font-variant:small-caps;
}我只想在Opera,Safari和Chrome上使用这段代码:
.tytulmalykom {
color:#666666;
font-size:11px;
text-transform:uppercase;
}我所有的样式表都在stylesheet.css文件中。
到目前为止,我使用了这么多的链接rel:
<link rel="stylesheet" href="files/stylesheet.css" type="text/css" />
<![if !IE]><link rel="stylesheet" type="text/css" href="files/firefox.css" media="screen" /><![endif]>
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="files/ie7.css" /><![endif]-->发布于 2012-06-28 06:40:03
下面是我为解决这个问题所做的工作:
我在每一页上都添加了:
<style type="text/css">
@-moz-document url-prefix() {
.tytulmalykom { font-variant:small-caps; text-transform:none }
}
</style>然后
在stylesheet.css中:
.tytulmalykom {
color:#666666;
font-size:11px;
text-transform:uppercase;
}和ie7.css:
.tytulmalykom {
font-variant:small-caps;
}在firefox.css中不需要任何其他东西
https://stackoverflow.com/questions/11234068
复制相似问题