lesprit Posted March 11, 2008 Report Share Posted March 11, 2008 function set_size() { [i]document.getElementById("leftShadow").style.height[/i]=document.getElementById("copyright").offsetTop-138; alert(document.getElementById("leftShadow").style.height); }Выделенное курсивом отменно работает в IE, но не в FF. Как исправить? Link to comment Share on other sites More sharing options...
0 homm Posted March 11, 2008 Report Share Posted March 11, 2008 А в каких единицах ты задаешь высоту? Link to comment Share on other sites More sharing options...
0 yopopt Posted March 11, 2008 Report Share Posted March 11, 2008 Добавь к этой строке px:[i]document.getElementById("leftShadow").style.height[/i]=document.getElementById("copyright").offsetTop-138 + "px"; Link to comment Share on other sites More sharing options...
0 homm Posted March 11, 2008 Report Share Posted March 11, 2008 Добавь к этой строке px:document.getElementById("leftShadow").style.height=document.getElementById("copyright").offsetTop-138 + "px";Не верно.document.getElementById("leftShadow").style.height=(document.getElementById("copyright").offsetTop-138).toString() + "px"; Link to comment Share on other sites More sharing options...
0 yopopt Posted March 11, 2008 Report Share Posted March 11, 2008 homm, нет необходимости. Link to comment Share on other sites More sharing options...
Question
lesprit
Выделенное курсивом отменно работает в IE, но не в FF. Как исправить?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts