Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Претражи подршку

Избегните преваре подршке. Никада од вас нећемо тражити да зовете или шаљете поруке на број или да делите личне податке. Пријавите сумњиве радње преко „Пријавите злоупотребу” опције.

Сазнај више
Архивирано

An image set as the background of a DIV is displayed in IE, but not in Firefox.why? like:#logo{ float: left; background-image:url(images\logo.jpg); }

user633449 одговорено
elham1367

a DIV id is logo

  1. logo{

float: left; background-image:url(images\logo.jpg); background-repeat: no-repeat; width:97px; height:92px; background-size: auto; margin:30px 0px 0px 150px; }

a DIV id is logo #logo{ float: left; background-image:url(images\logo.jpg); background-repeat: no-repeat; width:97px; height:92px; background-size: auto; margin:30px 0px 0px 150px; }

Сви одговори (2)

IE is liberal about allowing the backslash separator, which normally is used on Windows for local files paths. However, most browsers requires the forward slash separator (images/logo.jpg). That will work in IE, too.

Please update to Firefox 20.0.1 as well. Firefox 12 is no longer supported and is quite insecure. Update Firefox to the latest release