Inline CSS/Javascript into a HTML file

后端 未结 4 1490
萌比男神i
萌比男神i 2021-02-02 01:07

I am looking for a simple commandline script/program to automatically \"inline\" all external css and javascript references for a html file. I basically want to create a single

4条回答
  •  我在风中等你
    2021-02-02 01:38

    If it's not something that needs to be automated and you're using Windows you could open the web page in Internet Explorer and save it as 'Web Archive, single file (*.mht)'. This will pack everything into a single file, including CSS, JavaScript and images. Note that the recipients needs to have access to Internet Explorer to be able to open the Web Archive. Neither Google Chrome nor Firefox supports mht files, so it's probably a Microsoft only feature.

提交回复
热议问题