Search International and National Patent Collections

1. (WO2018086457) WEBPAGE DISPLAY METHOD AND DEVICE, MOBILE TERMINAL AND STORAGE MEDIUM

Pub. No.:    WO/2018/086457    International Application No.:    PCT/CN2017/107478
Publication Date: Fri May 18 01:59:59 CEST 2018 International Filing Date: Wed Oct 25 01:59:59 CEST 2017
IPC: G06F 17/30
Applicants: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
腾讯科技(深圳)有限公司
Inventors: YING, Yulong
应玉龙
Title: WEBPAGE DISPLAY METHOD AND DEVICE, MOBILE TERMINAL AND STORAGE MEDIUM
Abstract:
The present invention relates to the technical field of Internet. Disclosed are a webpage display method and device, a mobile terminal and a storage medium. The method comprises: parsing a source code of a designated webpage requested to be displayed to obtain document object model (DOM) tree information, a JavaScript code, and at least two pieces of style rule information; determining the current display mode; selecting style rule information corresponding to the current display mode from the at least two pieces of style rule information, and executing the JavaScript code to obtain a JavaScript execution result; and displaying the designated webpage according to the DOM tree information, the JavaScript execution result and the style rule information corresponding to the current display mode. By determining the current display mode and selecting, according to the current display mode, style rule information corresponding to the current display mode, the present invention satisfies display requirements of different display modes, thus making the layout of a displayed webpage more proper and reflecting the true form of a webpage.