2011-12-28 76 views
0

我的整个网站有两个图像,只在Opera上看起来不合适。我想知道是否有一种方法可以在图像顶部添加填充或边距,以便在Opera中对其进行设置。Opera上的图像边缘风格看起来不合适

请让我知道是否有任何特定的标签,我可以在Opera内使用。

感谢

编辑:

我试过,但没有奏效:

@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) { 
.logo_style { 
margin-top:-40px; 
} 

回答

0

像这样的东西来很好地工作,不过答案通常是有一个非黑客攻击方式解决问题

@media not screen and (1) { 
.yourClass {background:red} /* OP 11 */ 
} 
@media not screen and (orientation) { 
.yourClass {background:green} /* for the earlier versions of Opera that pick the first media query's rule + chrome/safari */ 
} 
+0

我试过上面的但它没有工作,谢谢 – Sam 2011-12-28 20:21:53

+0

编辑与唯一的其他方式我见过 – 2011-12-28 20:24:01

+0

作品非常感谢 – Sam 2011-12-28 20:30:00