各位師兄,我想扒下一個(gè)網(wǎng)站http://9elements.com/io/projects/html5/canvas/
主要是關(guān)于canvas展現(xiàn)的這個(gè)很炫的效果。整個(gè)網(wǎng)站我已經(jīng)扒下來(lái)了,但是沒(méi)有任何顯示,請(qǐng)大神幫忙指導(dǎo)一下,萬(wàn)分感謝!
下圖是應(yīng)有效果
下圖是扒下來(lái)以后在本地的效果
走同樣的路,發(fā)現(xiàn)不同的人生
For files saved locally from other places, pay attention to 404 errors after opening them, such as js path errors, the path of the background image in css (the background image needs to be saved separately), web pages saved directly with ctrl+s will not save the css Save the background image inside.
Generally, if the js, css, and image paths are all correct, there should be no problem. It does not necessarily have to be in a server environment.
It’s the same as opening a web page file written by yourself directly in the browser.
To clone a static site, you need:
First view the source code in the Chrome debugging tool, copy and paste it into a new document and save it (pay attention to the file encoding, usually utf8 without BOM)
Switch the Chrome debugging tool to the Network tab, clear the current file loading information, refresh the website, and observe the files loaded by the web page (scripts, styles, images, fonts, json and some other resource files)
Rewrite the paths of href
and src
of the web page source link according to the locally downloaded file resources
Be careful to remove the Google Analytics code and some social sharing codes
Hope it helps you