javascript - Fancybox - Can't Set CSS with jQuery? -
i trying adjust position of fancybox jquery:
$('#fancybox-wrap').css("top", "200px !important");
and wasn't working @ !important bit. if css, it's ok deal:
#fancybox-wrap { top: 200px !important; }
which leaves me curious: there inside fancybox' codes that's preventing me changing wrapper's css via javascript?
the css function put styles in style
attribute. navigators seem not allow usage of !important
in inline style. inline style should overpass css rule if "important". so
$('#fancybox-wrap').css("top", "200px");
should work?
Comments
Post a Comment