Created
February 29, 2012 22:15
-
-
Save h4/1944884 to your computer and use it in GitHub Desktop.
Прочая магия
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*------------------- | |
Задание дополнительного свойства, которое магическим образом исправляет ошибки | |
*/ | |
/* | |
Удвоение полей плавающих блоков | |
*/ | |
div { | |
float:left; | |
display:inline; | |
margin-left:20px; | |
} | |
/* | |
«Замораживание» абсолютно позиционированных элементов | |
*/ | |
body { | |
position:relative; | |
} | |
.container { | |
position:relative; | |
} | |
.ap-block { | |
position:absolute; | |
top:20px; | |
left:20px; | |
} | |
/* | |
Пропадание текста во вложенных плавающих блоках | |
*/ | |
body { | |
line-height:1.4; | |
} | |
/* Зачистка плавающих блоков */ | |
.wrapper { | |
overflow:hidden; | |
zoom:1; | |
} | |
/* | |
Inline-block в IE6 | |
*/ | |
.box { | |
display:inline; | |
zoom:1; | |
display:inline-block; | |
} | |
/* | |
Поведение шрифта | |
исключает проблему в IE с непропорциональным увеличением или уменьшением размера шрифта, если он установлен в em | |
в Opera шрифт 100% может отобразиться более мелким, чем в других браузерах | |
*/ | |
html { | |
font-size: 100.01%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Замена стандартных свойств на проприетарные */ | |
/* | |
Inline-block в старых FF | |
*/ | |
.box { | |
display:-moz-inline-block; | |
display:inline-block; | |
} | |
/* | |
RGBA-прозрачность | |
*/ | |
.someBlock { | |
background: rgb( 255, 0, 0); | |
background: rgba( 255, 0, 0, 0.5); | |
} | |
/* в ie-fix.css */ | |
.someBlock { | |
background:transparent; | |
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#80ff0000,endColorstr=#80ff0000); | |
zoom: 1; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment