I have always been looking for how to make the blog bottom template design and change, because the ordinary surface template is made by the HTML file contains some pictures, the CSS file is made, so it is generally uploaded, the modification is very troublesome, The maximum disadvantage is that it is not suitable for Blogers to definitely definition to customize themselves.
MHT is called "Web Single File". As the name, it is to include the picture, the CSS file, and the HTML file in a web page. And the browser can read it directly, hehe, so I seem to have seen the netizens you can customize yourself, then make MHT files ................
I just opened the MHT file directly with Notepad, I saw the file structure, and I started to have some information, no matter whether it was. Then found that the MHT file seems to save all the images with binary data, but it is saved after Base64 encryption, each picture is included.
Content-type: image / gifcontent-transfeer-encoding: base64content-location: http://www.china-askpro.com/images/logo_china_askpro_2.gif
Formatted information.
Then the code of the HTML page, including the CSS file code, HTML code, JS code. It is found that the Chinese is saved here in the format after encoding. I don't know what code is yet, but the English is not encoded. Hey, now you have to do this again.
Now the template's approach is generally reading a good template HTML code into the database, but this HTML code is just a frame, which does not contain additional information. It also defines some identifiers to replace the content you need to place. For example, $ TOP_TOPIC $, here is to put the topic of the ranks here. In this case, we can make a beautiful template yourself, then put the identifier according to the rules defined by each Blog station, then save it as a MHT file, just this file can be used as a template for his own blog. Oh, isn't it convenient, I just saw it today and didn't have some code. However, according to the results I just test, it should be no problem, and I will put the procedures and results of my test tomorrow. .
Not early, the sleep.