Webpage content display method and device, storage medium, electronic device and product
By identifying and setting the visibility of target elements in the document object model of a webpage, the problem of lost text content in traditional rendering methods is solved, resulting in a more efficient long text webpage reading experience.
CN122364579APending Publication Date: 2026-07-10BEIJING BAIDU NETCOM SCI & TECH CO LTD
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING BAIDU NETCOM SCI & TECH CO LTD
- Filing Date
- 2026-04-03
- Publication Date
- 2026-07-10
Smart Images

Figure CN122364579A_ABST
Abstract
The embodiment of the present disclosure discloses a webpage content display method and device. The specific implementation scheme is: obtaining a document object model of a first webpage; identifying a target element in the document object model, the target element being an element used to carry the main content in the first webpage; setting the display attribute of the target element to visible, and setting the display attribute of a non-target element in the document object model to invisible; providing the document object model after the display attribute is set to a rendering engine for rendering, so as to display the main content of the first webpage. The present disclosure can ensure the complete display of the main content in the first webpage, and will not lose the original style and script of the first webpage, thereby avoiding the influence on the display of the main content and the reading fluency.
Need to check novelty before this filing date? Find Prior Art