Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

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); }

  • 2 trả lời
  • 1 gặp vấn đề này
  • 9 lượt xem
  • Trả lời mới nhất được viết bởi user633449

more options

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; }

Tất cả các câu trả lời (2)

more options

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.

more options

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