CN106709046A - Webpage display method and device - Google Patents

Webpage display method and device Download PDF

Info

Publication number
CN106709046A
CN106709046A CN201611270946.5A CN201611270946A CN106709046A CN 106709046 A CN106709046 A CN 106709046A CN 201611270946 A CN201611270946 A CN 201611270946A CN 106709046 A CN106709046 A CN 106709046A
Authority
CN
China
Prior art keywords
topology file
html files
terminal
webpage
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201611270946.5A
Other languages
Chinese (zh)
Inventor
聂道聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tinno Wireless Technology Co Ltd
Original Assignee
Shenzhen Tinno Wireless Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tinno Wireless Technology Co Ltd filed Critical Shenzhen Tinno Wireless Technology Co Ltd
Priority to CN201611270946.5A priority Critical patent/CN106709046A/en
Publication of CN106709046A publication Critical patent/CN106709046A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a webpage display method. The method includes the following steps that when a terminal receives webpage data corresponding to a webpage sent by a server, a hypertext markup language (html) file in the webpage data is extracted; the html file is analyzed to obtain a layout file matched with the html file, wherein the layout file corresponds to configuration parameters of the terminal; according to the layout file, the webpage is displayed on a display interface of the terminal. The invention further discloses a webpage display device. The method and device improve the display fitness degree of the webpage on the terminal.

Description

Webpage display process and device
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of Webpage display process and device.
Background technology
With the popularization of internet, user can be by PC (personal computer), smart mobile phone, PAD (panel computer) etc. Various terminals carry out web page access, so as to obtain corresponding web page resources.However, most webpage is all PC webpages at present, Display these webpages can be adapted on PC, but be likely to that adaptation cannot be carried out in the terminals such as smart mobile phone, PAD to show, Therefore, in current present situation, webpage fit displayed on the terminals is relatively low.
The content of the invention
It is a primary object of the present invention to propose a kind of Webpage display process and device, it is intended to solve webpage in the prior art The relatively low technical problem of fit displayed on the terminals.
To achieve the above object, a kind of Webpage display process that the present invention is provided, the Webpage display process includes following Step:
Terminal extracts the super text in the web data when the corresponding web data of webpage of server transmission is received This markup language html files;
The html files are parsed, the topology file that acquisition is matched with the html files, wherein, the layout File is topology file corresponding with the configuration parameter of the terminal;
According to the topology file, the webpage is shown on the display interface of the terminal.
Preferably, it is described that the html files are parsed, the topology file that acquisition is matched with the html files, its In, include the step of the topology file is topology file corresponding with the configuration parameter of the terminal:
The html files are parsed, from the terminal local preserve topology file storehouse in inquire about obtain with it is described The topology file of html files matching, wherein, the topology file in the topology file storehouse is joins with the configuration of the terminal The corresponding topology file of number.
Preferably, it is described that the html files are parsed, looked into the topology file storehouse preserved from the terminal local The step of asking the topology file for obtaining and being matched with the html files includes:
The html files are parsed, the corresponding document architecture of the html files is obtained;
According to the document architecture, in the topology file storehouse preserved from the terminal local, inquire about and the document architecture Corresponding topology file;
Determine the topology file that the topology file is the html files matching.
Preferably, it is described that the html files are parsed, the topology file that acquisition is matched with the html files, its In, include the step of the topology file is topology file corresponding with the configuration parameter of the terminal:
The html files are parsed, the html files is converted into corresponding with the configuration parameter of the terminal Topology file.
Preferably, it is described the html files are parsed, the html files are converted into match somebody with somebody with the terminal The step of putting parameter corresponding topology file includes:
The html files are parsed, in the topology file storehouse preserved from the terminal local, inquiry whether there is The topology file matched with the html files, wherein, the topology file in the topology file storehouse is and the terminal The corresponding topology file of configuration parameter;
If in the absence of the topology file matched with the html files, the html files are converted into and the terminal The corresponding topology file of configuration parameter.
Additionally, to achieve the above object, the present invention also proposes a kind of Web page display apparatus, the Web page display apparatus bag Include:
Extraction module, for when the corresponding web data of webpage of server transmission is received, extracting the webpage number HTML html files in;
Processing module, for being parsed to the html files, the topology file that acquisition is matched with the html files, Wherein, the topology file is topology file corresponding with the configuration parameter of terminal;
Display module, for according to the topology file, the webpage being shown on the display interface of the terminal.
Preferably, the processing module is used for:
The html files are parsed, from the terminal local preserve topology file storehouse in inquire about obtain with it is described The topology file of html files matching, wherein, the topology file in the topology file storehouse is joins with the configuration of the terminal The corresponding topology file of number.
Preferably, the processing module includes:
Resolution unit, for being parsed to the html files, obtains the corresponding document architecture of the html files;
First query unit, for according to the document architecture, in the topology file storehouse preserved from the terminal local, looking into Ask topology file corresponding with the document architecture;
Determining unit, for determining that the topology file is the topology file that the html files are matched.
Preferably, the processing module is used for:
The html files are parsed, the html files is converted into corresponding with the configuration parameter of the terminal Topology file.
Preferably, the processing module includes:
Second query unit, for being parsed to the html files, from the topology file that the terminal local is preserved In storehouse, inquiry whether there is the topology file matched with the html files, wherein, the topology file in the topology file storehouse It is topology file corresponding with the configuration parameter of the terminal;
Processing unit, if in the absence of the topology file matched with the html files, the html files being turned Change topology file corresponding with the configuration parameter of the terminal into.
Webpage display process proposed by the present invention and device, when terminal receives the corresponding webpage of webpage of server transmission During data, the html files in the web data are extracted first, and the html files are parsed, obtain and html texts The topology file of part matching, this topology file is topology file corresponding with the configuration parameter of terminal, then according to the cloth for obtaining Office file, shows the webpage on the display interface of terminal.Due to topology file html files matching corresponding with webpage, ensure The content information of the webpage displayed on the terminals;Simultaneously as being according to topology file corresponding with the configuration parameter of terminal To show the webpage, therefore improve webpage fit displayed on the terminals.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of Webpage display process first embodiment of the present invention;
Fig. 2 is the schematic flow sheet of Webpage display process second embodiment of the present invention;
Fig. 3 is the high-level schematic functional block diagram of Web page display apparatus first embodiment of the present invention;
Fig. 4 is the refinement high-level schematic functional block diagram of processing module in Web page display apparatus first embodiment of the present invention;
Fig. 5 is the refinement high-level schematic functional block diagram of processing module in Web page display apparatus second embodiment of the present invention.
The object of the invention is realized, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of Webpage display process, reference picture 1, and Fig. 1 is Webpage display process first embodiment of the present invention Schematic flow sheet.
In this embodiment, the Webpage display process is comprised the following steps:
Step S10, terminal extracts the web data when the corresponding web data of webpage of server transmission is received In HTML html files;
With the popularization of internet, user can be by PC (personal computer), smart mobile phone, PAD (panel computer) etc. Various terminals carry out web page access, so as to obtain corresponding web page resources.And a complete webpage generally includes html (CascadingStyleSheet is laminated sample for (HyperTextMark-upLanguage, HTML) file, CSS Formula table) web data such as file, JS (javascript, java script) file, certainly, also can also be including picture, video etc. Other kinds of web data.Wherein, the structure of html files includes that head divides Head and main part Body, wherein head to carry For the information on webpage, body provides the particular content of webpage;CSS files can be carried out to the typesetting of element position in webpage Pixel-level precise control, supports almost all of font size pattern, possesses the ability to web object and model pattern editor; JS files are the executable files write according to certain form, and also referred to as grand or autoexec can not only reduce webpage Scale and improve web page browsing speed, but also the performance of webpage can be enriched, such as animation, sound.
In the present embodiment, when the terminals such as smart mobile phone, PAD (panel computer) will access webpage, corresponding net is sent Access to web page is asked to server.When server receives the web access requests of terminal transmission, by the corresponding webpage of the webpage Data is activation is to terminal.Wherein, the corresponding html files of the webpage, CSS files, JS files etc. are just included in the web data Deng.When the corresponding web data of the webpage that terminal receives server transmission, in order to realize being adapted to display in terminal The webpage, terminal does not directly show the webpage according to the web data for receiving on display interface, but in web displaying Before, first the webpage is optimized.Specifically, terminal extracts the html files in the web data first, namely obtains The corresponding html files of webpage.Such as, terminal extracts html files by calling htmlParser.HtmlParser is one The storehouse of the html parsings that pure java writes, is mainly used in transforming or extracting html files, is the html files being most frequently with present Parsing and the instrument of analysis.
Step S20, parses to the html files, the topology file that acquisition is matched with the html files, wherein, The topology file is topology file corresponding with the configuration parameter of the terminal;
The webpage is shown in order to be adapted in terminal, after webpage corresponding html files are got, terminal-pair should Html files are parsed, such as terminal is parsed by calling htmlParser to the html files, are obtained and the html The topology file of file matching, the topology file is topology file corresponding with the configuration parameter of terminal.Wherein, the configuration of terminal Parameter includes screen size, CPU abilities, GPU abilities, network speed of terminal etc..Specifically, terminal can be by following two sides Any one mode in formula obtains the topology file matched with the html files:
1), mode one, the terminal topology file that directly selection is matched with the html files from the topology file set up. Specifically, in this approach, the step S20 includes:
Step a, parses to the html files, inquires about obtaining in the topology file storehouse preserved from the terminal local The topology file matched with the html files, wherein, the topology file in the topology file storehouse is and the terminal The corresponding topology file of configuration parameter.
In mode one, terminal is being locally created a topology file storehouse in advance, and multiple cloth are preserved in the topology file storehouse Office file, wherein each topology file both correspond to the configuration parameter of terminal.After webpage corresponding html files are got, eventually End is parsed to the html files, such as terminal is parsed by calling htmlParser to the html files, Ran Houcha Ask in the topology file storehouse that terminal local is preserved, therefrom obtain the topology file matched with the html files.
Specifically, the step a includes:
Step a1, parses to the html files, obtains the corresponding document architecture of the html files;
Step a2, according to the document architecture, in the topology file storehouse preserved from the terminal local, inquires about and the text The corresponding topology file of part framework;
Step a3, determines the topology file that the topology file is the html files matching.
The terminal-pair html files are parsed, such as terminal is solved by calling htmlParser to the html files Analysis, obtains the corresponding document architecture of html files, and then, according to the corresponding document architecture of html files, inquiry is eventually for terminal In the local topology file storehouse for preserving in end, search and obtain topology file corresponding with the document architecture that parsing is obtained.Then will look into The topology file of acquisition is looked for be defined as the topology file that the html files are matched.
2), mode two, terminal is changed the html files, generates corresponding topology file.Specifically, in which In, the step S20 includes:
Step a, is parsed to the html files, and the html files are converted into the configuration parameter with the terminal Corresponding topology file.
In mode two, after the corresponding html files of webpage are got, the terminal-pair html files are parsed, will The html files are converted into topology file corresponding with the configuration parameter of terminal.Such as, terminal is by calling htmlParser pairs The html files are parsed, and according to the configuration parameter of terminal, the html files are converted into the configuration parameter pair with terminal The topology file answered.Because the topology file for generating is converted by the html files, therefore, the topology file is and this The topology file of html files matching.
Step S30, according to the topology file, shows the webpage on the display interface of the terminal.
After the topology file for getting the matching of corresponding with webpage html files, terminal according to the topology file, Terminal display interface shows the webpage.Such as, in the corresponding web data of the webpage that the server that terminal will be received sends CSS files, JS files etc. parsed, and load the topology file of acquisition and CSS files, the JS files of parsing etc., adjust The webpage is shown in terminal display interface with corresponding display interface.Because the topology file for obtaining is corresponding with webpage The matching of html files, thus it is guaranteed that the content information of the webpage displayed on the terminals.Also, by thus according to terminal The corresponding topology file of configuration parameter show the webpage, therefore also optimize display effect of the webpage in terminal.
The scheme that the present embodiment is provided, when the corresponding web data of the webpage that terminal receives server transmission, first The html files in the web data are extracted, and the html files are parsed, the cloth that acquisition is matched with the html files Office file, this topology file is topology file corresponding with the configuration parameter of terminal, then according to the topology file for obtaining, at end The webpage is shown on the display interface at end.Due to topology file html files matching corresponding with webpage, ensure in terminal Show the content information of the webpage;Simultaneously as being to show the net according to topology file corresponding with the configuration parameter of terminal Page, therefore the fit that webpage shows on the terminal is improve, so as to reach the effect that front page optimization shows, carry significantly The experience of user high.
Further, as shown in Fig. 2 proposing Webpage display process second embodiment of the present invention based on first embodiment, In the present embodiment, the step S20 includes:
Step S21, parses to the html files, in the topology file storehouse preserved from the terminal local, inquiry With the presence or absence of the topology file matched with the html files, wherein, the topology file in the topology file storehouse is and institute State the corresponding topology file of configuration parameter of terminal;If so, then performing step S22;If it is not, then performing step S23;
Step S22, extracts the topology file of matching;
Step S23, topology file corresponding with the configuration parameter of the terminal is converted into by the html files.
In the present embodiment, terminal is being locally created a topology file storehouse in advance, and multiple is preserved in the topology file storehouse Topology file, wherein each topology file both correspond to the configuration parameter of terminal.Such as, it is corresponding to some conventional webpages in advance Html files are analyzed treatment, topology file corresponding with the configuration parameter of terminal are converted thereof into, by these topology files Set up topology file storehouse.
After webpage corresponding html files are got, the terminal-pair html files are parsed, such as terminal is by adjusting The html files are parsed with htmlParser, is then inquired about in the topology file storehouse that terminal local is preserved, if exist The topology file matched with the html files.Specifically, terminal is parsed by calling htmlParser to the html files, The corresponding document architecture of html files is obtained, then, terminal inquires about terminal sheet according to the corresponding document architecture of html files In the topology file storehouse that ground is preserved, if there is topology file corresponding with the document architecture that parsing is obtained.If in the presence of with this article The corresponding topology file of part framework, it is determined that the topology file is the topology file matched with the html files;Otherwise, if not depositing In topology file corresponding with this document framework, it is determined that in the absence of the layout text matched with the html files in topology file storehouse Part.
If it is determined that in the presence of the topology file matched with the html files, then terminal extracts this topology file, then basis This topology file, shows the webpage on the display interface of terminal.If it is determined that in the absence of the layout text matched with the html files Part, then terminal the html files are converted into by topology file corresponding with the configuration parameter of terminal according to its configuration parameter.Then According to this topology file of generation, the webpage is shown on the display interface of terminal.Therefore, as long as existing when in topology file storehouse The topology file matched with the html files, terminal again converted the html files with regard to unnecessary, directly use layout The topology file matched in library, which offers a saving terminal resource and time.
Further, it is converted into after topology file corresponding with the configuration parameter of terminal by the html files, by life Into topology file preserve into topology file storehouse so that the topology file storehouse constantly carries out improvement and optimization.
Further, if terminal is according to its configuration parameter, fail the configuration being converted into the html files with terminal The corresponding topology file of parameter, then terminal is direct shows the webpage according to the html files on the display interface of terminal, namely The webpage of script is loaded in terminal, display is not optimized to the webpage.
The scheme that the present embodiment is provided, when the corresponding web data of the webpage that terminal receives server transmission, first The html files in the web data are extracted, and the html files are parsed, from the topology file that terminal local is preserved In storehouse, inquiry whether there is the topology file matched with the html files, if in the presence of the topology file matched with html files, The topology file of the matching is extracted, the webpage is shown on the display interface of terminal according to the topology file;If not existing and this The topology file of html files matching, then be converted into topology file corresponding with the configuration parameter of terminal, so by the html files The topology file according to generation shows the webpage on the display interface of terminal afterwards.Therefore, as long as existing when in topology file storehouse The topology file matched with the html files, terminal is changed the html files with regard to unnecessary, directly using literary from layout The matching topology file inquired in part storehouse, thus reaches saving terminal resource and the effect of time, so as to ensure While web displaying is adapted to, the efficiency of web displaying is also improved.
The present invention provides a kind of Web page display apparatus.
Reference picture 3, Fig. 3 is the high-level schematic functional block diagram of Web page display apparatus first embodiment of the present invention.
It is emphasized that it will be apparent to those skilled in the art that functional block diagram shown in Fig. 3 is only one preferably real The exemplary plot of example is applied, those skilled in the art can be carried out new easily around the functional module of the Web page display apparatus shown in Fig. 3 Functional module supplement;The title of each functional module is self-defined title, is only used for aiding in understanding the Web page display apparatus Each program function block, is not used in restriction technical scheme, and the core of technical solution of the present invention is, each self-defined title The function to be reached of functional module.
In the present embodiment, the Web page display apparatus include:
Extraction module 10, for when the corresponding web data of webpage of server transmission is received, extracting the webpage HTML html files in data;
With the popularization of internet, user can be by PC (personal computer), smart mobile phone, PAD (panel computer) etc. Various terminals carry out web page access, so as to obtain corresponding web page resources.And a complete webpage generally includes html (CascadingStyleSheet is laminated sample for (HyperTextMark-upLanguage, HTML) file, CSS Formula table) web data such as file, JS (javascript, java script) file, certainly, also can also be including picture, video etc. Other kinds of web data.Wherein, the structure of html files includes that head divides Head and main part Body, wherein head to carry For the information on webpage, body provides the particular content of webpage;CSS files can be carried out to the typesetting of element position in webpage Pixel-level precise control, supports almost all of font size pattern, possesses the ability to web object and model pattern editor; JS files are the executable files write according to certain form, and also referred to as grand or autoexec can not only reduce webpage Scale and improve web page browsing speed, but also the performance of webpage can be enriched, such as animation, sound.
In the present embodiment, Web page display apparatus are applied to the terminals such as smart mobile phone, PAD (panel computer), alternatively, net Page display device is preset in terminal.When terminal will access webpage, corresponding web access requests to server are sent.In clothes When business device receives the web access requests of terminal transmission, the corresponding web data of the webpage is sent to terminal.Wherein, the net The corresponding html files of the webpage, CSS files, JS files etc. are just included in page data.
When the corresponding web data of the webpage for receiving server transmission, in order to realize being adapted to display in terminal The webpage, extraction module 10 extracts the html files in the web data first, namely obtains the corresponding html files of webpage. Such as, extraction module 10 extracts html files by calling htmlParser.HtmlParser is that a pure java writes The storehouse of html parsings, is mainly used in transforming or extracting html files, is the html document analysis and analysis being most frequently with present Instrument.
Processing module 20, for being parsed to the html files, the layout text that acquisition is matched with the html files Part, wherein, the topology file is topology file corresponding with the configuration parameter of terminal;
The webpage is shown in order to be adapted in terminal, after webpage corresponding html files are got, processing module 20 pairs of html files are parsed, such as processing module 20 is parsed by calling htmlParser to the html files, The topology file that acquisition is matched with the html files, the topology file is topology file corresponding with the configuration parameter of terminal.Its In, the configuration parameter of terminal includes screen size, CPU abilities, GPU abilities, network speed of terminal etc..Specifically, processing module 20 can obtain the topology file matched with the html files by any one mode in following two modes:
1), mode one, the cloth that directly selection is matched with the html files from the topology file set up of processing module 20 Office file.Specifically, in this approach, the processing module 20 is used for:
The html files are parsed, from the terminal local preserve topology file storehouse in inquire about obtain with it is described The topology file of html files matching, wherein, the topology file in the topology file storehouse is joins with the configuration of the terminal The corresponding topology file of number.
In mode one, terminal is being locally created a topology file storehouse in advance, and multiple cloth are preserved in the topology file storehouse Office file, wherein each topology file both correspond to the configuration parameter of terminal.After webpage corresponding html files are got, place The reason module 20 pairs html files are parsed, such as processing module 20 is carried out by calling htmlParser to the html files Parsing, then inquires about in the topology file storehouse that terminal local is preserved, and therefrom obtains the topology file matched with the html files.
Specifically, as shown in figure 4, the processing module 20 includes:
Resolution unit 21, for being parsed to the html files, obtains the corresponding document architecture of the html files;
First query unit 22, for according to the document architecture, from the topology file storehouse of terminal local preservation, Inquiry topology file corresponding with the document architecture;
Determining unit 23, for determining that the topology file is the topology file that the html files are matched.
The resolution unit 21 pairs html files are parsed, such as resolution unit 21 is by calling htmlParser to this Html files are parsed, and obtain the corresponding document architecture of html files, and then, the first query unit 22 is according to html texts The corresponding document architecture of part, in the topology file storehouse that inquiry terminal local is preserved, searches the document architecture for obtaining and being obtained with parsing Corresponding topology file.Determining unit 23 will search the topology file that the topology file for obtaining is defined as html files matching.
2), mode two, processing module 20 is changed the html files, generates corresponding topology file.Specifically, exist In which, the processing module 20 is used for:
The html files are parsed, the html files is converted into corresponding with the configuration parameter of the terminal Topology file.
In mode two, after the corresponding html files of webpage are got, the processing module 20 pairs html files are carried out Parsing, topology file corresponding with the configuration parameter of terminal is converted into by the html files.Such as, processing module 20 is by calling HtmlParser is parsed to the html files, and according to the configuration parameter of terminal, the html files is converted into and terminal The corresponding topology file of configuration parameter.Because the topology file for generating is converted by the html files, therefore, the layout File is the topology file matched with the html files.
Display module 30, for according to the topology file, the webpage being shown on the display interface of the terminal.
After the topology file for getting html files matching corresponding with webpage, display module 30 is according to layout text Part, the webpage is shown in terminal display interface.Such as, in the corresponding web data of the webpage that the server that will be received sends CSS files, JS files etc. parsed, and load the topology file of acquisition and CSS files, the JS files of parsing etc., show Show that module 30 calls corresponding display interface that the webpage is shown in terminal display interface.Because the topology file for obtaining is and net The corresponding html files matching of page, thus it is guaranteed that the content information of the webpage displayed on the terminals.Also, due to being root The webpage is shown according to topology file corresponding with the configuration parameter of terminal, therefore also optimizes display of the webpage in terminal Effect.
The scheme that the present embodiment is provided, when the corresponding web data of the webpage for receiving server transmission, extraction module 10 extract the html files in the web data first, and the processing module 20 pairs html files are parsed, and are obtained and this The topology file of html files matching, this topology file is topology file corresponding with the configuration parameter of terminal, then shows mould Block 30 shows the webpage according to the topology file for obtaining on the display interface of terminal.Because topology file is corresponding with webpage Html files are matched, and have ensured the content information of the webpage displayed on the terminals;Simultaneously as being joined according to the configuration with terminal Count corresponding topology files to show the webpage, therefore improve the fit that webpage shows on the terminal, so as to reach The effect that front page optimization shows, substantially increases the experience of user.
Further, as shown in figure 5, proposing Web page display apparatus second embodiment of the present invention based on first embodiment, In the present embodiment, the processing module 20 includes:
Second query unit 24, for being parsed to the html files, from the layout text that the terminal local is preserved In part storehouse, inquiry whether there is the topology file matched with the html files, wherein, the layout text in the topology file storehouse Part is topology file corresponding with the configuration parameter of the terminal;
Processing unit 25, if in the presence of the topology file matched with the html files, extracting the cloth of matching Office file;If in the absence of the topology file matched with the html files, the html files are converted into and the terminal The corresponding topology file of configuration parameter.
In the present embodiment, terminal is being locally created a topology file storehouse in advance, and multiple is preserved in the topology file storehouse Topology file, wherein each topology file both correspond to the configuration parameter of terminal.Such as, it is corresponding to some conventional webpages in advance Html files are analyzed treatment, topology file corresponding with the configuration parameter of terminal are converted thereof into, by these topology files Set up topology file storehouse.
After webpage corresponding html files are got, the second query unit 24 pairs html files are parsed, such as The html files are parsed by calling htmlParser, is then inquired about in the topology file storehouse that terminal local is preserved, be It is no to there is the topology file matched with the html files.
If in the presence of the topology file matched with the html files, processing unit 25 extracts this topology file, Ran Houxian Show that module 30, according to this topology file, shows the webpage on the display interface of terminal.If do not exist being matched with the html files Topology file, then processing unit 25 the html files are converted into corresponding with the configuration parameter of terminal according to its configuration parameter Topology file.Then display module 30 shows the webpage according to this topology file of generation on the display interface of terminal.Cause This, as long as again should when, in the presence of the topology file matched with the html files, processing unit 25 is just unnecessary in topology file storehouse Html files converted, directly using the topology file matched in topology file storehouse, which offers a saving terminal money Source and time.
Further, the html files are being converted into topology file corresponding with the configuration parameter of terminal by processing unit 25 Afterwards, the topology file of generation is preserved into topology file storehouse, so that the topology file storehouse constantly carries out improvement and optimization.
Further, if processing unit 25 is according to its configuration parameter, fail and be converted into and terminal the html files The corresponding topology file of configuration parameter, then the webpage is directly shown, no on the display interface of terminal according to the html files Display is optimized to the webpage.
The scheme that the present embodiment is provided, when the corresponding web data of the webpage for receiving server transmission, extraction module 10 extract the html files in the web data first, and the second query unit 24 pairs html files are parsed, from terminal In the local topology file storehouse for preserving, inquiry whether there is the topology file matched with the html files, if in the presence of literary with html The topology file of part matching, then processing unit 25 extract the topology file of the matching, display module 30 exists according to the topology file The webpage is shown on the display interface of terminal;If in the absence of the topology file matched with the html files, processing unit 25 will The html files are converted into topology file corresponding with the configuration parameter of terminal, then layout text of the display module 30 according to generation Part shows the webpage on the display interface of terminal.Therefore, as long as being matched with the html files when existing in topology file storehouse Topology file, processing unit 25 is changed the html files with regard to unnecessary, is directly used and is inquired from topology file storehouse Matching topology file, thus reach saving terminal resource and the effect of time, so as to ensure web displaying adaptation While, also improve the efficiency of web displaying.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably implementation method.Based on such understanding, technical scheme is substantially done to prior art in other words The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used to so that a station terminal equipment (can be mobile phone, computer, clothes Business device, or the network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of Webpage display process, it is characterised in that the Webpage display process includes step:
Terminal extracts the hypertext mark in the web data when the corresponding web data of webpage of server transmission is received Note language html files;
The html files are parsed, the topology file that acquisition is matched with the html files, wherein, the topology file It is topology file corresponding with the configuration parameter of the terminal;
According to the topology file, the webpage is shown on the display interface of the terminal.
2. Webpage display process as claimed in claim 1, it is characterised in that described to be parsed to the html files, obtains The topology file matched with the html files is taken, wherein, the topology file is corresponding with the configuration parameter of the terminal The step of topology file, includes:
The html files are parsed, inquires about obtaining and the html in the topology file storehouse preserved from the terminal local The topology file of file matching, wherein, the topology file in the topology file storehouse is the configuration parameter pair with the terminal The topology file answered.
3. Webpage display process as claimed in claim 2, it is characterised in that described to be parsed to the html files, from The step of topology file for obtaining and being matched with the html files is inquired about in the topology file storehouse that the terminal local is preserved includes:
The html files are parsed, the corresponding document architecture of the html files is obtained;
According to the document architecture, in the topology file storehouse preserved from the terminal local, inquire about corresponding with the document architecture Topology file;
Determine the topology file that the topology file is the html files matching.
4. Webpage display process as claimed in claim 1, it is characterised in that described to be parsed to the html files, obtains The topology file matched with the html files is taken, wherein, the topology file is corresponding with the configuration parameter of the terminal The step of topology file, includes:
The html files are parsed, the html files are converted into layout corresponding with the configuration parameter of the terminal File.
5. Webpage display process as claimed in claim 4, it is characterised in that described to be parsed to the html files, will The step of html files are converted into topology file corresponding with the configuration parameter of the terminal includes:
The html files are parsed, in the topology file storehouse preserved from the terminal local, inquiry whether there is and institute The topology file of html files matching is stated, wherein, the topology file in the topology file storehouse is the configuration with the terminal The corresponding topology file of parameter;
If in the absence of the topology file matched with the html files, the html files are converted into match somebody with somebody with the terminal Put the corresponding topology file of parameter.
6. a kind of Web page display apparatus, it is characterised in that the Web page display apparatus include:
Extraction module, for when the corresponding web data of webpage of server transmission is received, extracting the web data in HTML html files;
Processing module, for being parsed to the html files, the topology file that acquisition is matched with the html files, its In, the topology file is topology file corresponding with the configuration parameter of terminal;
Display module, for according to the topology file, the webpage being shown on the display interface of the terminal.
7. Web page display apparatus as claimed in claim 6, it is characterised in that the processing module is used for:
The html files are parsed, inquires about obtaining and the html in the topology file storehouse preserved from the terminal local The topology file of file matching, wherein, the topology file in the topology file storehouse is the configuration parameter pair with the terminal The topology file answered.
8. Web page display apparatus as claimed in claim 7, it is characterised in that the processing module includes:
Resolution unit, for being parsed to the html files, obtains the corresponding document architecture of the html files;
First query unit, for according to the document architecture, in the topology file storehouse preserved from the terminal local, inquiry with The corresponding topology file of the document architecture;
Determining unit, for determining that the topology file is the topology file that the html files are matched.
9. Web page display apparatus as claimed in claim 6, it is characterised in that the processing module is used for:
The html files are parsed, the html files are converted into layout corresponding with the configuration parameter of the terminal File.
10. Web page display apparatus as claimed in claim 9, it is characterised in that the processing module includes:
Second query unit, for being parsed to the html files, in the topology file storehouse preserved from the terminal local, Inquiry whether there is the topology file matched with the html files, wherein, the topology file in the topology file storehouse is Topology file corresponding with the configuration parameter of the terminal;
Processing unit, if in the absence of the topology file matched with the html files, the html files being converted into Topology file corresponding with the configuration parameter of the terminal.
CN201611270946.5A 2016-12-30 2016-12-30 Webpage display method and device Withdrawn CN106709046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611270946.5A CN106709046A (en) 2016-12-30 2016-12-30 Webpage display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611270946.5A CN106709046A (en) 2016-12-30 2016-12-30 Webpage display method and device

Publications (1)

Publication Number Publication Date
CN106709046A true CN106709046A (en) 2017-05-24

Family

ID=58906537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611270946.5A Withdrawn CN106709046A (en) 2016-12-30 2016-12-30 Webpage display method and device

Country Status (1)

Country Link
CN (1) CN106709046A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559927A (en) * 2020-12-23 2021-03-26 上海哔哩哔哩科技有限公司 Webpage loading method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559927A (en) * 2020-12-23 2021-03-26 上海哔哩哔哩科技有限公司 Webpage loading method and device
CN112559927B (en) * 2020-12-23 2023-01-03 上海哔哩哔哩科技有限公司 Webpage loading method and device

Similar Documents

Publication Publication Date Title
US20200193081A1 (en) Automated augmentation of text, web and physical environments using multimedia content
CN103412928B (en) Method and device for realizing browser page intelligent response-type layout on mobile terminal
US9443014B2 (en) Custom web page themes
US20140101539A1 (en) Website presenting method and browser
CN102193953B (en) System and method for migrating desktop applications
US8375296B2 (en) Reusing style sheet assets
US20140215314A9 (en) Method for rearranging web page
CN103345421B (en) Application program method for pushing and device
US8910036B1 (en) Web based copy protection
US20140122618A1 (en) User-aided learning chatbot system and method
CN107229633A (en) Static page generation method, Web access method and device
US20140164296A1 (en) Chatbot system and method with entity-relevant content from entity
US10783317B2 (en) Generation of combined documents from content and layout documents based on semantically neutral elements
CN103678343B (en) The method and apparatus of prompting webpage load progress
Mirri et al. Augment browsing and standard profiling for enhancing web accessibility
CN102752664A (en) Display method and device for text subtitle information in webpage
CN109190078A (en) Webpage construction method, device and storage medium
US10528645B2 (en) Content search using visual styles
CN103136259A (en) Method and device for processing webpage contents based on content block identification
CN104156421B (en) The page shows method, apparatus and system
CN107729573A (en) Information-pushing method and device
Ratha et al. HTML5 in web development: a new approach
CN106709046A (en) Webpage display method and device
JP4935396B2 (en) Web content providing apparatus, web content providing method, and program
CN114860231A (en) Page rendering method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170524