How do I hide CSS from Opera 10.0 and earlier?
Opera 10.0 has some bugs related to SVG background images. These are fixed in 10.5.
I’d like to use SVG background images for gradients in Opera, but hide the code from t开发者_开发百科hose poor souls still on Opera 10.0.
Does anyone know any CSS hacks or similar to hide CSS from Opera 10.0 and earlier?
there is an answer here:
Future proof CSS hack for LTE Opera 10
this piece of code works only in Opera >= 9.5 and < 10.50:
@media all and (resolution = 0dpi) { // exclude Opera 10.50 and higher
:root #box { // you need to append :root to all selectors to exclude Opera lt 9.5
background: #f00;
}
}
精彩评论