webForumDet fria alternativet

Varför detta: !important; width /**/:415px...

3 svar · 562 visningar · startad av Travoni

TravoniMedlem sedan okt. 20041 556 inlägg
#1
#content{width:405px !important; width /**/:415px; margin: 3px auto; padding:15px;}

Är det någon slags hack? Och i sådanafall på vilket sätt funkar den?

bossseMedlem sedan juni 2003772 inlägg
MancinaMedlem sedan okt. 200668 inlägg
dAEkMedlem sedan feb. 20041 816 inlägg
#4

Internet Explorer 6 and below had a problem with the !important identifier that caused it to be ignored if another declaration of the same property appeared later in the same style declaration block. This can be used to feed Internet Explorer 6 and below special property values that are ignored by other browsers. Internet Explorer 7 fixed this issue.

Källa: http://www.javascriptkit.com/dhtmltutors/csshacks2.shtml (scrolla ner tills du ser rubriken "!important")

/r
är dock inte helt säker på att det här är det hack du söker.

128 ms totalt · 3 externa anrop · v20260731065814-full.3ab8d573
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
125 ms — hämta tråd, inlägg och bilagor (db)