开发者

Is it possible to save an HTML file locally and then open it locally but still keep the original src and hrefs

开发者 https://www.devze.com 2023-02-06 15:48 出处:网络
If I find a webpage I want to tinker with and I save the source to the desktop, change a couple of bits, and then re-open - then often all the src and hrefattributes don\'t work as they are relative t

If I find a webpage I want to tinker with and I save the source to the desktop, change a couple of bits, and then re-open - then often all the src and hrefattributes don't work as they are relative to the original hosting folder eg /Images/picture1.jpg or /Scripts/script1.js.

Is there a way to 'trick' the browser into persisting these relative references? Preferably without going through every one of them and appending a path to the front - which I have also tried but without success. What is the format of the fully qualified path name for thes开发者_StackOverflow社区e resources?

Let me know if I'm not being clear.


<base>

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号