-
Notifications
You must be signed in to change notification settings - Fork 2
HTML Paths
thomthom edited this page Apr 5, 2013
·
3 revisions
When you use .set_file
to populate the HTML document, all resources (images,CSS,scripts etc.) will be relative to the file you specify.
But when you use .set_html
, all resources are relative to a temp file created on the system. So if you need to reference external resources from the HTML, either use absolute paths, or add a <base>
tag to the <head>
of the <html>
- specifying where relative paths should be resolved from:
<base href="c:/absolute/path/" />