IE8.0 image path formatting problems

IE8.0 image path formatting problems

IE8.0 path format can be identified:

In normal HTML page:

  1. Before IE8.0 unsaved, file path format.
    Image-background: url (File: /// D | / the BACKUP / My % 20 Documents / YE% 20web / Image / 1.jpg);
  2. After IE8.0 saved relative "Documents" path format.
    Image-background: URL (Image / 1.jpg) ;
  3. IE8.0 after storage, the relative "site directory" Path shape:
    background-Image: URL (/Image/1.jpg) ;

In DWT template page:

  1. As opposed to "document":
    background-Image: url (../Image/1.jpg) ;
  2. As opposed to "site root":
    background-Image: url (/Image/1.jpg)

IE8.0 not recognize the path format:

solution:

  1. First, generate a template based on an existing page, and then add background template (as opposed to "document"), the last saved time to choose "Update." In this case the software will automatically format conversion path is relative in ordinary HTML pages to the path of "document" format.
    p1 p2
    p3
    In this case, the template is used in a format that it recognizes, in turn updated page is converted into a common web page to identify the path format.
  2. In advance to save the image file paths do not add a space can be!

 

 

 

[By:Asion Tang]

December 20, 2010 18:24:24

Reproduced in: https: //www.cnblogs.com/AsionTang/archive/2010/12/20/1911712.html

Guess you like

Origin blog.csdn.net/weixin_34347651/article/details/93270767