Picture display method and picture display device
A technology for displaying pictures and pictures, applied in the Internet field, can solve the problems of limited screen size and low efficiency of viewing pictures, and achieve the effect of improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0019] see figure 1 , an embodiment of the present invention provides a method for displaying pictures, including:
[0020] Step 101: Obtain the page data of the web page;
[0021] Step 102: According to the page data of the webpage, prevent rendering and display of other page content in the webpage except pictures;
[0022] Step 103: rendering and displaying the pictures in the webpage.
[0023] Preferably, according to the page data of the webpage, preventing rendering and preventing displaying other page contents in the webpage except pictures, including:
[0024] Construct the DOM (Document Object Model, Document Object Model) tree of the webpage according to the page data of the webpage;
[0025] Delete other nodes except the image node from the DOM tree of the web page, so as to prevent rendering and display other page content in the web page except the image.
[0026] Preferably, rendering and displaying the pictures in the webpage includes:
[0027] Obtain the pic...
Embodiment 2
[0048] Based on the method shown in Embodiment 1, this embodiment of the present invention provides a method for displaying pictures.
[0049] Among them, when the user needs to open a certain web page and wants to browse the pictures contained in the web page, he can submit a command to the terminal, and the terminal receives the command, and prevents the rendering and display of the pictures in the web page through the method provided in this embodiment. other page content; and, rendering and displaying images from that web page. see figure 2 , the method includes:
[0050] Step 201: Obtain the page data of the webpage that the user needs to open;
[0051] Specifically, the terminal obtains the URL of the webpage that the user needs to open, and sends a first request message for obtaining the page data of the webpage to the webpage server, where the first request message carries the URL of the webpage; The URL of the webpage carried in a request message, obtain the page ...
Embodiment 3
[0093] see image 3 , an embodiment of the present invention provides a device for displaying pictures, including:
[0094] The first obtaining module 301 is used to obtain the page data of the web page;
[0095] The first blocking module 302 is used for preventing rendering and displaying other page contents in the webpage except pictures according to the page data of the webpage;
[0096] The first display module 303 is configured to render and display pictures in the webpage.
[0097] Preferably, the first blocking module 302 includes:
[0098] A construction unit, configured to construct a DOM tree of the webpage according to the page data of the webpage;
[0099] The deletion unit is used to delete other nodes except the image node from the DOM tree of the webpage, so as to prevent rendering and display of other page contents in the webpage except the image.
[0100] Preferably, the first display module 303 includes:
[0101] The first obtaining unit is used to obtain,...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com