Css
Материал из GutenWeb Wiki
Изящные CSS-решения
CSS хаки
opera
/* opera hack */
@media all and (-webkit-min-device-pixel-ratio:10000),
not all and (-webkit-min-device-pixel-ratio:0) {
div.mcdropdown input {
background:red !important;
}
}
ie6, ie7
*position:relative; *top:2px;
ie7
/* IE7 hack only */
*:first-child+html .class {}
firefox
@-moz-document url-prefix() {
button {
position:relative;
left:-3px;
}
}
ie8
bottom:-0.25em\0/;
.ie8only { color /*\**/: #fff\9 }
@font-face {
font-family: 'IzisOne';
src: url('izis_one-webfont.eot');
src: local('O'),
url('izis_one-webfont.woff') format('woff'),
url('izis_one-webfont.ttf') format('truetype'),
url('izis_one-webfont.svg#webfontgBdfVWtt') format('svg');
font-weight: normal;
font-style: normal;
}
#submenu #logo {
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/i/otdelstroy_logo.png', sizingMethod='image');
}
* html*.g-png {
filter: expression(
(runtimeStyle.filter == '')
? runtimeStyle.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='+currentStyle.backgroundImage.split('\"')[1]+', sizingMethod=crop)'
: runtimeStyle.filter,
runtimeStyle.backgroundImage = 'none'
);
}