Online 0 Posted June 17, 2008 Report Share Posted June 17, 2008 Вот есть код, но в Firefox фон второго блока не отображается. Если их поменять местами, все ок. В IE6 фон всегда отображается. Как это исправить?<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"></head><body><div style="height:50px; background:#CCCCCC; border:1px solid"></div><div style="height:28px; background:url('fone.gif') left top repeat-x fixed; border:1px solid;"></div></body></html> Quote Link to post Share on other sites
Иван Шумов 4 Posted June 17, 2008 Report Share Posted June 17, 2008 проверил - все работает Quote Link to post Share on other sites
Online 0 Posted June 17, 2008 Author Report Share Posted June 17, 2008 А если фоновая картинка ровно 28 пикселей по высоте? Quote Link to post Share on other sites
rez_spb 0 Posted June 17, 2008 Report Share Posted June 17, 2008 Попробуйте вставить в . Лучше в оба.А в идеале вообще избегать пустых абзацев.P.S> достаточно просто #ccc Quote Link to post Share on other sites
Online 0 Posted June 17, 2008 Author Report Share Posted June 17, 2008 Ничего не изменилось. Quote Link to post Share on other sites
rez_spb 0 Posted June 18, 2008 Report Share Posted June 18, 2008 Вы знаете, проверил на FF 2.0.0.14 - вс? отлично.На FF3 RC3 - точно так же.Может быть, влияет какая-то другая разметка у вас.Ещ? хотел сказать, что по умолчанию фон начинает заполняться с левого верхнего угла, потому явно указывать left top вовсе не обязательно. Quote Link to post Share on other sites
yopopt 1 Posted June 18, 2008 Report Share Posted June 18, 2008 to OnlineПроверьте регистр букв в имени файла. Он должен совпадать с прописанным в css. Quote Link to post Share on other sites
Online 0 Posted June 18, 2008 Author Report Share Posted June 18, 2008 2 rez_spbА картинка точно по высоте 28px? Просто если я беру большую картинку, то она отображается, но ее верхняя часть находится под первым блоком, словно фоном заливается не от края блока, а от края окна браузера.2 yopoptРегистр соблюден! Quote Link to post Share on other sites
ZoNT 0 Posted June 18, 2008 Report Share Posted June 18, 2008 fixed убери Quote Link to post Share on other sites
Online 0 Posted June 18, 2008 Author Report Share Posted June 18, 2008 2 ZoNTТочно! Спасибо! Quote Link to post Share on other sites
ZoNT 0 Posted June 18, 2008 Report Share Posted June 18, 2008 не за что... Quote Link to post Share on other sites
rez_spb 0 Posted June 19, 2008 Report Share Posted June 19, 2008 Очень странно, но у меня с fixed вс? прекрасно работало.И с мелкой картинкой (менее 28х28) тоже. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.