摘要 |
Disclosed is a method for rearranging web pages. A mobile phone browser receives a web address and determines if a web page corresponding to the web address matches selection rules. If no, the mobile phone browser loads the web page and displays the content. If yes, the mobile phone browser retrieves HTML source code of the web page. Based on a content extraction rule, the mobile phone browser extracts elements containing actual content from the HTML source code of the web page, and extracts actual content from these elements. Next, the mobile phone browser inserts the actual content into a predefined web page template to generate a new web page. The mobile phone browser loads the new web page and displays the content of the new web page. The method adapts to screen resolutions of mobile devices, preserves information and interaction of original web pages to the greatest extent, improves the speed for loading web page, and saves network bandwidth. |