IE8.0 image path formatting problems
IE8.0 path format can be identified:
In normal HTML page:
- Before IE8.0 unsaved, file path format.
Image-background: url (File: /// D | / the BACKUP / My % 20 Documents / YE% 20web / Image / 1.jpg); - After IE8.0 saved relative "Documents" path format.
Image-background: URL (Image / 1.jpg) ; - IE8.0 after storage, the relative "site directory" Path shape:
background-Image: URL (/Image/1.jpg) ;
In DWT template page:
- As opposed to "document":
background-Image: url (../Image/1.jpg) ; - As opposed to "site root":
background-Image: url (/Image/1.jpg)
IE8.0 not recognize the path format:
- Template-generated pages: page path relative to the "Documents" path format, automatic conversion
background-Image: url (File: /// D | / the BACKUP / My Documents / YE Web / Image / bg.jpg) [software no automatic processing path of "space"! ] - Dreamweaver templates can not be displayed, but the path of the generated pages also show:
background-Image: URL (Image / 1.jpg)
(Cause guess: normal HTML pages in the path format is recognizable, it is possible to display in the generation ; but can not be displayed in the template, most likely DreamweaverCS5 software to identify the problem ).
solution:
- 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.
- 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