CN107329997A - Page display method and device, client, storage medium - Google Patents

Page display method and device, client, storage medium Download PDF

Info

Publication number
CN107329997A
CN107329997A CN201710430709.9A CN201710430709A CN107329997A CN 107329997 A CN107329997 A CN 107329997A CN 201710430709 A CN201710430709 A CN 201710430709A CN 107329997 A CN107329997 A CN 107329997A
Authority
CN
China
Prior art keywords
page
carrier
client
type
embedded
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.)
Pending
Application number
CN201710430709.9A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710430709.9A priority Critical patent/CN107329997A/en
Publication of CN107329997A publication Critical patent/CN107329997A/en
Pending 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 kind of page display method and device, client, storage medium.Wherein, this method includes:The identification information corresponding to the page carrier of the page to be shown is obtained from the page carrier of the page to be shown, and the type of page carrier is determined according to acquisition result, the type of page carrier is at least including one below:The embedded page of client, computer site page;When the type of the page carrier indicated in the acquisition result is the embedded page of client, on the embedded page of client, show the partial page resource of the above-mentioned page to be shown, using above-mentioned technical proposal, solving in correlation technique causes the exploitation of research staff's needs because the embedded page of client is different with computer site page display way twice, the technical problem of waste of resource caused by entering, and then research staff can preferably reduce the situation of human resources and waste of exploiting natural resources without developing twice.

Description

Page display method and device, client, storage medium
Technical field
The present invention relates to the communications field, in particular to a kind of page display method and device, client, storage Jie Matter.
Background technology
The development and the development of internet web page technology played with client, at client (for example, in QQGame) Embedded loose-leaf or information read page turn into a kind of trend and main flow event promotion mode, in game by way of WEB In hall introducing activity and information due to its reliable ageing, simple type, high efficiency and favored.And common PC webpages Have some differences in the display effect for embedding webpage requirement in the client, and these differences result in actual development with Occur that the webpage of same activity description occurs design and developed twice in design process, greatly waste human resources With exploitation funds.
For it is above-mentioned the problem of, effective solution is not yet proposed at present.
The content of the invention
The embodiments of the invention provide a kind of page display method and device, client, storage medium, at least to solve phase Research staff is caused to need exploitation two because the embedded page of client is different with computer site page display way in the technology of pass It is secondary, the technical problem of waste of resource caused by entering.
One side according to embodiments of the present invention there is provided a kind of page display method, including:
The identification information corresponding to the page carrier of the page to be shown is obtained from the page carrier of the page to be shown, And the type of the page carrier is determined according to acquisition result, the type of the page carrier at least includes one below:Client The embedded page at end, computer site page;
When the type of the page carrier indicated in the acquisition result is the embedded page of client, in the client Embedded page on, show the partial page resource of the page to be shown.
Alternatively, methods described also includes:
When the type of the page carrier indicated in the acquisition result is computer site page, in computer site page On, the page to be shown is shown using strategy shown below:The page resource of the complete page to be shown of loading.
Alternatively, methods described also includes:
When the type of the page carrier is the embedded page of client, uses and client is shown with lower page display strategy The embedded page:Forbid the general element end to end of loading, hide the element for forbidding display preserved in the queue pre-set.
Alternatively, it is described when the type of the page carrier indicated in the acquisition result is the embedded page of client Method also includes:
The element width in the region that the page to be shown is shown in the page carrier is obtained, the element in the region is high The content height of degree, the content width of the page to be shown and the page to be shown;
When the element width is highly more than the content height more than the content width, and the element, by institute State the specified location that the page to be shown is shown in the region;
In at least one of situation, the page to be shown is zoomed in and out into processing, and show after scaling processing The page to be shown:The element width is less than the content width, and the element is highly less than content height, wherein, institute State scaling after the page to be shown content width be less than or equal to the element width, and the content be highly less than or Equal to element height.
Alternatively, the page type of the page carrier is determined according to acquisition result, including:
When the corresponding identification information of the page carrier is got from the page carrier of the page to be shown, the page is judged The type of face carrier is the embedded page of client;
When not getting the corresponding identification information of the page carrier from the page carrier of the page to be shown, judge described The type of page carrier is computer site page.
Alternatively, the identification information at least includes:User agent's user agent character strings.
Other side according to embodiments of the present invention, additionally provides a kind of page display device, including:
Acquiring unit, the page carrier institute for obtaining the page to be shown from the page carrier of the page to be shown is right The identification information answered;Determining unit, the type for determining the page carrier according to acquisition result, the class of the page carrier Type at least includes one below:The embedded page of client, computer site page;Display unit, for being indicated in the acquisition result The page carrier type be client embedded page when, on the embedded page of the client, show it is described to be shown The partial page resource of the page.
Alternatively, the display unit, the type being additionally operable in the page carrier of the acquisition result instruction is electric During brain website pages, on computer site page, the page to be shown is shown using strategy shown below:Loading is complete to be treated Show the page resource of the page.
Alternatively, the display unit, is additionally operable to, when the type of the page carrier is the embedded page of client, use The embedded page of client is shown with lower page display strategy:Forbid the general element end to end of loading, hide the queue pre-set The element for forbidding display of middle preservation.
Alternatively, the display unit, including:
Acquisition module, for when the type of the page carrier is the embedded page of client, obtaining the page carrier The element width in the region of the middle display page to be shown, the element height in the region, the content of the page to be shown The content height of width and the page to be shown;
First display module, for being more than the content width in the element width, and the element is highly more than institute When stating content height, the page to be shown is included into the specified location in the region;
Zoom module, at least one of situation, the page to be shown to be zoomed in and out into processing:The member Plain width is less than the content width, and the element is highly less than content height;
Second display module, for showing the page to be shown after scaling processing, wherein, the page to be shown after the scaling The content width in face is less than or equal to the element width, and the content is highly less than or equal to element height.
Alternatively, the determining unit, including:
First determination module, for getting the corresponding mark of the page carrier from the page carrier of the page to be shown During information, embedded page of the type of the page carrier as client is judged;
Second determination module, for not getting the corresponding mark of the page carrier from the page carrier of the page to be shown When knowing information, judge the type of the page carrier as computer site page.
Alternatively, the identification information at least includes:User agent's user agent character strings.
Another aspect according to embodiments of the present invention, additionally provides a kind of client, including:
Processor;Memory for storing processor-executable instruction;Wherein, the processor, for be shown The identification information corresponding to the page carrier of the page to be shown is obtained in the page carrier of the page, and it is true according to result is obtained The type of the fixed page carrier, and the type of the page carrier indicated in the acquisition result is the embedded of client During page, on the embedded page of the client, the partial page resource of the page to be shown is shown, wherein, it is described to be shown The page type of the page at least includes one below:The embedded page of client, computer site page.
Another aspect according to embodiments of the present invention, additionally provides a kind of storage medium, it is characterised in that the storage Medium includes the program of storage, wherein, described program performs above-described page display method when running.
In embodiments of the present invention, the identification information corresponding to the page carrier of the page to be shown is obtained, and according to acquisition As a result the type of page carrier is determined, and then when it is the embedded page of client to obtain the type of page carrier of result instruction, On the embedded page of client, the partial page resource of the above-mentioned page to be shown is shown, is solved in correlation technique due to client The embedded page at end is different with computer site page display way to cause the exploitation of research staff's needs twice, is wasted caused by entering The technical problem of resource, and then research staff can preferably reduce the situation of the wasting of resources without developing twice.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of page display method of the embodiment of the present invention;
Fig. 2 is the flow chart of the page display method according to the embodiment of the present invention;
Fig. 3 is a kind of structured flowchart of optional page display device according to the embodiment of the present invention,;
Fig. 4 is the structured flowchart of another optional page display device according to the embodiment of the present invention;
Fig. 5 is another structured flowchart of another optional page display device according to the embodiment of the present invention;
Fig. 6 is a kind of optional page display schematic diagram according to the embodiment of the present invention;
Fig. 7 is the flow chart of an optional page display method according to example of the present invention;
Fig. 8 is the application schematic diagram of an optional queue according to example of the present invention;
Fig. 9 is the display schematic diagram of an optional safety zone according to example of the present invention;
Figure 10 is a kind of structured flowchart of optional client according to the embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Lid is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Embodiment 1
The embodiment of the method that the embodiment of the present application 1 is provided can be in mobile terminal, terminal or similar fortune Calculate in device and perform.Exemplified by running on mobile terminals, Fig. 1 is a kind of movement of page display method of the embodiment of the present invention The hardware block diagram of terminal.As shown in figure 1, mobile terminal 10 can include one or more (one is only shown in figure) processing Device 102 (processor 102 can include but is not limited to the processing unit of Micro-processor MCV or PLD FPGA etc.), Memory 104 for data storage and the transmitting device 106 for communication function.Those of ordinary skill in the art can be with Understand, the structure shown in Fig. 1 is only signal, it does not cause to limit to the structure of above-mentioned electronic installation.For example, mobile terminal 10 It may also include than shown in Fig. 1 more either less components or with the configuration different from shown in Fig. 1.
The page that memory 104 can be used in the software program and module of storage application software, such as embodiment of the present invention Corresponding programmed instruction/the module of display methods, processor 102 by operation be stored in software program in memory 104 and Module, so as to perform various function application and data processing, that is, realizes above-mentioned method.Memory 104 may include at a high speed with Machine memory, may also include nonvolatile memory, such as one or more magnetic storage device, flash memory or other it is non-easily The property lost solid-state memory.In some instances, memory 104 can further comprise remotely located relative to processor 102 deposit Reservoir, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network includes but is not limited to mutually Networking, intranet, LAN, mobile radio communication and combinations thereof.
Transmitting device 106 is used to data are received or sent via a network.Above-mentioned network instantiation may include The wireless network that the communication providerses of mobile terminal 10 are provided.In an example, transmitting device 106 includes a Network adaptation Device (Network Interface Controller, NIC), its can be connected by base station with other network equipments so as to it is mutual Networking is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, and it is used In wirelessly being communicated with internet.
A kind of page display method for the client for running on above-mentioned mobile terminal is provided in the present embodiment, is used as one Optional embodiment is planted, the page display method can be, but not limited to be applied in mobile terminal as shown in Figure 1.
According to embodiments of the present invention, a kind of page display method is additionally provided, Fig. 2 is the page according to the embodiment of the present invention The flow chart of display methods, as shown in Fig. 2 this method comprises the following steps:
Step S202, obtains the mark corresponding to the page carrier of the page to be shown from the page carrier of the page to be shown Information, and the type of page carrier is determined according to result is obtained, the type of above-mentioned page carrier at least includes one below:Client The embedded page at end, computer site page;
Step S204, when the type of the page carrier indicated in above-mentioned acquisition result is the embedded page of client, in client On the embedded page at end, the partial page resource of the above-mentioned page to be shown is shown.
Alternatively, in the present embodiment, above-mentioned page display method can be, but not limited to be applied in mobile terminal, also may be used So that applied in client, the embodiment of the present invention is not limited in any way to this.It should be noted that the embodiment of the present invention is to mark Information and the type of page carrier are not especially limited, for example, identification information can be used to refer to operation system used in user The information such as system and version, the type of page carrier can also include outside the embedded page except client, the computer site page Other page types, the embodiment of the present invention is not construed as limiting to this.
By the realization of each above-mentioned step, the identification information corresponding to the page carrier of the page to be shown, and root are obtained The type of page carrier is determined according to result is obtained, and then is obtaining the type for the page carrier that result is indicated embedding for client During page, on the embedded page of client, the partial page resource of the above-mentioned page to be shown is shown, using above-mentioned technical proposal, solution Research staff is caused to need because the embedded page of client is different with computer site page display way in correlation technique of having determined Twice, the technical problem of waste of resource caused by entering can preferably reduce the situation of the wasting of resources for exploitation.
It should be noted that the computer site page of following examples introduction of the present invention includes but is not limited to:PC PC Page.
Because in embodiments of the present invention, the corresponding type of different page carriers is different page display strategies, It is simple below how to introduce the type for different page carriers using different page display strategies:
When obtaining the type for the page carrier that result is indicated for computer site page, the complete page to be shown will be loaded Page resource is as the corresponding page display strategy of the computer site page, if the page that is, to be shown is enterprising in computer site page Row display, the technological means that the embodiment of the present invention is taken is the normal complete display page to be shown;
When it is the embedded page of client to obtain the type of page carrier of result instruction, by the display portion page to be shown Page resource as the corresponding page display strategy of the embedded page of client, due to the embedded page for client, have Page elements need not show, then when showing on the embedded page of client, wait to show only necessary to display portion is wanted Show the page resource of the page.
Further, it is client in the type for obtaining the page carrier indicated by result based on above-mentioned technical proposal During embedded page, in an optional example, the embedded page that client is shown with lower page display strategy is used:Forbid loading logical With element end to end, the element for forbidding display preserved in the queue pre-set is hidden, in embodiments of the present invention, knot is being obtained When the type of fruit instruction page carrier is the embedded page of client, following operation can also carry out:One queue, the queue are set The element included is the element that embedded page need not be shown, and the PC pages of generic browser need the element shown.
In one alternate embodiment, when the type for obtaining the page carrier indicated by result is computer site page, just The page resource of the complete page to be shown of loading, and then the computer site page is shown, carried obtaining the page indicated by result When the type of body is the embedded page of client, in order to preferably show the page to be shown, the embodiment of the present invention also performs following skill Art scheme:
Obtain page carrier in show the page to be shown region element width, above-mentioned zone element height, The content width of the page to be shown and the content height of the page to be shown;
When element width is highly more than content height more than the content width, and element, the page to be shown is shown Specified location in the region;
In at least one of situation, the page to be shown is zoomed in and out into processing, and show that treating after scaling processing shows Show the page:Element width is less than content width, and element is highly less than content height, wherein, the page to be shown after above-mentioned scaling Content width be less than or equal to element width, and the content highly be less than or equal to the element highly, that is, pass through Compare the element width in the region for showing the page to be shown and the content width of the page to be shown, and element height and to be shown The content height of the page, and then preferably show the page to be shown (embodiment of the present invention is directed to the embedded page of client);
In embodiments of the present invention it is also possible to it is that element width is equal to content width, and element height a kind of situation occur Equal to content height, in such a case, it is possible to directly display the page to be shown, it would however also be possible to employ scaling processing, inciting somebody to action The page to be shown is shown in the centre position or other displayable positions in region.
In an optional example of the embodiment of the present invention, above-mentioned identification information can be user agent's user agent words Symbol string, for user agent's user agent character strings, the entitled user agent of User Agent Chinese, abbreviation UA is a spy Different head of string, enables to operating system that server recognizes that client uses and version, cpu type, browser and version, clear Look at device rendering engine, browser language, browser plug-in etc..
When above-mentioned identification information is user agent's user agent character strings, user agent character strings can also be passed through Value indicate page display strategy, for example, when user agent character strings are the first value, load in a browser complete The page resource of the page to be shown;When user agent character strings are second value, in the embedded page of display client, it is not added with General element end to end is carried, the element for forbidding showing preserved in the queue pre-set is hidden, it is necessary to illustrate, in actual behaviour Above-mentioned page display strategy can also be indicated during work according to other attributes of user agent character strings, the present invention is implemented Example is equally not construed as limiting to this.
To sum up, the technical scheme of the embodiment of the present invention, by whether getting User Agent character strings and then distinguishing visitor Family end page face and PC end pages face (the computer site page that can be understood as above-described embodiment), and determine which page elements exists Client, which is embedded in the page, to be hidden, and preferentially by horizontal center, (display that can be understood as above-described embodiment is treated with safety zone Show the region of the page, namely the page to be shown region to display) set that the direct perfection in PC end pages face is shown in small In the safety zone for shielding the wide client of resolution ratio, make the PC end pages face of large-size screen monitors by setting minimum font size specification and zoom technology It can be directly displayed in the wide client area of smaller screen resolution ratio, manpower can be greatlyd save by the technical scheme of the present embodiment The development cost of cost and loose-leaf.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, involved action and module is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Understood based on such, technical scheme is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, calculate Machine, server, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiment 2
A kind of page display device is additionally provided in the present embodiment, and the device is used to realize above-described embodiment and preferred real Mode is applied, repeating no more for explanation had been carried out.As used below, term " module " can realize the soft of predetermined function The combination of part and/or hardware.Although the device described by following examples is preferably realized with software, hardware, or The realization of the combination of software and hardware is also that may and be contemplated.
According to embodiments of the present invention, a kind of page display device for being used to implement above-mentioned page display method is additionally provided, Fig. 3 is a kind of structured flowchart of optional page display device according to the embodiment of the present invention, as shown in figure 3, the device includes:
1) acquiring unit 30, the page carrier for obtaining the page to be shown from the page carrier of the page to be shown Corresponding identification information;
2) determining unit 32, the type for determining page carrier according to acquisition result, the type of above-mentioned page carrier is extremely Include one below less:The embedded page of client, computer site page;
3) display unit 34, the type of the page carrier for being indicated in above-mentioned acquisition result is the embedded page of client When, on the embedded page of client, show the partial page resource of the above-mentioned page to be shown.
It should be noted that the embodiment of the present invention is not especially limited to the type of identification information and page carrier, for example, Identification information can be used to refer to the information such as operating system used in user and version, and the type of page carrier can also include Except the embedded page of client, other page types outside computer site page, the embodiment of the present invention is not construed as limiting to this.
In embodiments of the present invention, acquiring unit 30 obtains the identification information corresponding to the page carrier of the page to be shown, Determining unit 32 determines the type of page carrier according to result is obtained, and then display unit 34 is on the embedded page in client, The partial page resource of the above-mentioned page to be shown is shown, using above-mentioned technical proposal, is solved in correlation technique due to client The embedded page it is different with computer site page display way cause research staff's needs exploitation twice, caused by entering waste money The technical problem in source, and then research staff can preferably reduce the situation of the wasting of resources without developing twice.
It should be noted that the computer site page of following examples introduction of the present invention includes but is not limited to:PC The PC pages.
Alternatively, display unit 34, are additionally operable to obtaining the type for the page carrier that result is indicated for computer site During page, on computer site page, the above-mentioned page to be shown is shown using strategy shown below:The complete page to be shown of loading Page resource.
I.e. in embodiments of the present invention, for the computer site page, the technological means that the embodiment of the present invention is taken is normal The complete display computer site page;For the embedded page of client, some page elements need not be shown, then When being shown on the embedded page of client, only necessary to the page resource for wanting the display portion page to be shown.
Alternatively, display unit 34, it is the embedded of client to be additionally operable to obtaining the type for the page carrier that result is indicated During the page, when the type of page carrier is the embedded page of client, uses and client is shown with lower page display strategy The embedded page:Forbid the general element end to end of loading, the element for forbidding display preserved in the queue pre-set is hidden, in this hair In bright embodiment, when the type of the page to be shown is the embedded page of client, following operation can also carry out:Set one Queue, the element that the queue includes is the element that embedded page need not be shown, and the PC pages of generic browser need display Element.
Fig. 4 is the structured flowchart of another optional page display device according to the embodiment of the present invention, as shown in figure 4, Display unit 34, including:
Acquisition module 340, for when the type of page carrier is the embedded page of client, obtaining in page carrier and showing The element width in the region of the page to be shown, the element height in region, the content width of the page to be shown and waits to show Show the content height of the page;
First display module 342, for element width be more than content width, and element highly more than content height when, The page to be shown is included into the specified location in region, the specified location of the embodiment of the present invention is preferably the centre position in region, Other display locations are can also be, the embodiment of the present invention is not construed as limiting to this;
Zoom module 344, at least one of situation, the page to be shown to be zoomed in and out into processing:Institute Element width is stated less than the content width, the element is highly less than content height, i.e., it is to be shown by comparing display The size of the content width of the element width in the region of the page and the page to be shown, and then preferably show the page to be shown (this Inventive embodiments are directed to the embedded page of client);
Second display module 346, for showing the page to be shown after scaling processing, wherein, treating after the scaling shows Show that the content width of the page is less than or equal to the element width, and the content is highly less than or equal to element height Degree.
In embodiments of the present invention it is also possible to it is that element width is equal to content width, and element height a kind of situation occur Equal to content height, in such a case, it is possible to directly display the page to be shown, it would however also be possible to employ scaling processing, inciting somebody to action The page to be shown is shown in the centre position or other displayable positions in region.
In an optional example of the embodiment of the present invention, above-mentioned identification information can be user agent's user agent words Symbol string, for user agent's user agent character strings, the entitled user agent of User Agent Chinese, abbreviation UA is a spy Different head of string, enables to operating system that server recognizes that client uses and version, cpu type, browser and version, clear Look at device rendering engine, browser language, browser plug-in etc..
Fig. 5 is another structured flowchart of another optional page display device according to the embodiment of the present invention, such as Fig. 5 institutes Show, said apparatus, determining unit 32, including:
First determination module 320, for getting the corresponding mark of page carrier from the page carrier of the page to be shown During information, embedded page of the type of page carrier as client is judged;
Second determination module 322, for not getting the corresponding mark of page carrier from the page carrier of the page to be shown When knowing information, judge the type of page carrier as computer site page.
When above-mentioned identification information is user agent's user agent character strings, user agent character strings can also be passed through Value indicate page display strategy, for example, when user agent character strings are the first value, load in a browser complete The page resource of the page to be shown;When user agent character strings are second value, in the embedded page of display client, it is not added with General element end to end is carried, the element for forbidding showing preserved in the queue pre-set is hidden, it is necessary to illustrate, in actual behaviour Above-mentioned page display strategy can also be indicated during work according to other attributes of user agent character strings, the present invention is implemented Example is equally not construed as limiting to this.
It should be noted that above-mentioned modules can be by software or hardware to realize, for the latter, Ke Yitong Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or, above-mentioned modules are with any The form of combination is located in different processors respectively.
The page flow for displaying of embodiment 1 and embodiment 2 is explained below in conjunction with an example, but is not used in limit The embodiment of the present invention is determined, as shown in fig. 7, comprises following steps:
Step S702:Monitored from the page carrier of the page to be shown and obtain user agent UserAgent;
User Agent Chinese names correspond to user agent, abbreviation UA, and it is a special string head so that server Operating system and version, cpu type, browser and version, browser rendering engine, browser language that client uses can be recognized Speech, browser plug-in etc..
Whether after user agent's UserAgent character strings are got, and it is embedded page to judge, for example, in Tengxun's money TencentGameEmbedBrowser character strings are had in the embedded page UA of game, by whether having TencentGameEmbedBrowser character strings are the type that can determine whether page carrier, when there is the character string, judge the page The type of carrier is embedded page, when in the absence of the character string, judges the type of page carrier as the computer site page, Jin Ergen The page to be shown is shown according to different display strategies, Fig. 6 is a kind of optional page according to the embodiment of the present invention Display schematic diagram, as shown in Figure 6:
Include the embedded page that UserAgent character strings, i.e. page carrier are client in page carrier to be shown When, shown using the display mode in left side in Fig. 6, not including in page carrier to be shown there are UserAgent characters When string, i.e. page carrier are the computer site page, are shown using the display mode on right side in Fig. 6, that is, load complete page Face resource is shown.
Step S704:For the content width identification of the page to be shown;
The element width for the outermost layer container for obtaining the display page to be shown is monitored, element width is the master of the page to be shown Hold width in vivo.
Judged whether by UA in embedded page browsing, and queue is set, the content of queue is need not be present in embedded page The element that the element of display and needing is shown in generic browser, for example, as shown in figure 8, the queue since most is initially Sky, then A, B, tri- elements of C are fallen in lines, and then, A, B, tri- elements of C fall out successively it is hiding, certainly, in actual mechanical process The setting of queue can not use the set-up mode shown in Fig. 8, and the embodiment of the present invention is not construed as limiting to this.
Step S706:The resource that there should be environment is automatically loaded according to above-mentioned judged result;
By user agent UA string value, complete page elements and resource are then loaded in generic browser, is embedded General element end to end is not loaded with page, and the element that need not be shown in the queue of second setting is hidden, for example, As shown in figure 8, by the Information hiding of outer link, in the embedded page of display, outer link information is not shown.
Step S708:Judge the magnitude relationship of body matter width and embedded page width degree.
Wherein, the overall scaling of progress that embedded page width degree is more than to body matter width is handled:The wide height of body matter is obtained, Body matter width is scaled embedded page width degree, highly waits ratio to zoom in and out according to width, it is big for body matter width In the page of embedded page width degree, show that (for example, being shown centered on) embeds page on above-mentioned safety zone using source.
In summary, example of the present invention judges the class of the page to be shown by way of judging that user agent UA whether there is Type, and then need the web page resources file being loaded into (to can be understood as the webpage member of above-described embodiment according to different type classifications Element), and then control whether that whole elements of all pages to be shown are required for display, then by way of setting safety zone Make webpage horizontal center to be shown, and be completely shown in embedded page, in addition, by way of scaling with 14 pixel design specifications Mode makes the page for not meeting specification completely be shown in embedded page, and then improves development efficiency and save development cost.
Embodiment 3
According to embodiments of the present invention, a kind of client for being used to implement above-mentioned page display method, such as Figure 10 are additionally provided Shown, the client includes:
Processor 100;
Memory 102 for storing processor-executable instruction;
Wherein, processor 100, the page carrier institute for obtaining the page to be shown from the page carrier of the page to be shown Corresponding identification information, and the type of the page carrier is determined according to result is obtained, and obtaining described in result instruction When the type of page carrier is the embedded page of client, on the embedded page of client, the part of the above-mentioned page to be shown is shown Page resource, wherein, the page type of the above-mentioned page to be shown at least includes one below:The embedded page of client, computer net Stand page.
It should be noted that the embodiment of the present invention is not especially limited to the type of identification information and page carrier, for example, Identification information can be used to refer to the information such as operating system used in user and version, and the type of page carrier can also include Except the embedded page of client, other page types outside computer site page, the embodiment of the present invention is not construed as limiting to this.
By the realization of each above-mentioned step, the identification information corresponding to the page carrier of the page to be shown, and root are obtained The type of page carrier is determined according to result is obtained, and then is obtaining the type for the page carrier that result is indicated embedding for client During page, on the embedded page of client, the partial page resource of the above-mentioned page to be shown is shown, using above-mentioned technical proposal, solution Research staff is caused to need because the embedded page of client is different with computer site page display way in correlation technique of having determined Develop twice, the technical problem of waste of resource caused by entering, and then research staff can preferably be reduced without developing twice The situation of the wasting of resources.
It should be noted that the computer site page of following examples introduction of the present invention includes but is not limited to:PC The PC pages.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2 Example, the present embodiment will not be repeated here.
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can With in test equipment.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
S1, obtains the identification information corresponding to the page carrier of the page to be shown from the page carrier of the page to be shown, And the type of page carrier is determined according to acquisition result, the type of above-mentioned page carrier at least includes one below:Client Embedded page, computer site page;
S2, when the type of the page carrier indicated in above-mentioned acquisition result is the embedded page of client, in client On embedding page, the partial page resource of the above-mentioned page to be shown is shown.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S1, when the type of the page carrier indicated in above-mentioned acquisition result is computer site page, in computer site page On, the page to be shown is shown using strategy shown below:The page resource of the complete page to be shown of loading.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S1, when the type of the page carrier indicated in above-mentioned acquisition result is the embedded page of client, is used with lower page Display strategy shows the embedded page of client:Forbid the general element end to end of loading, hide what is preserved in the queue pre-set Forbid the element of display.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S1, when the type of the page to be shown indicated in above-mentioned acquisition result is the embedded page of client, obtains the page The element width in the region of the page to be shown, the element height in the region, the page to be shown are shown in the carrier of face Content width and the page to be shown content height;
S2, will when the element width is highly more than the content height more than the content width, and the element The page to be shown is shown in the specified location in the region;
S3, at least one of situation, zooms in and out processing, and show after scaling processing by the page to be shown The page to be shown:The element width is less than the content width, and the element is highly less than content height, wherein, The content width of the page to be shown after the scaling be less than or equal to the element width, and the content be highly less than or Person is equal to element height.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S1, when the corresponding identification information of the page carrier is got from the page carrier of the page to be shown, judges institute The type for stating page carrier is the embedded page of client;
S2, when not getting the corresponding identification information of the page carrier from the page carrier of the page to be shown, judges The type of the page carrier is computer site page.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2 Example, the present embodiment will not be repeated here.
In summary, the above embodiment of the present invention has reached following technique effect:Solve in correlation technique due to client The embedded page at end is different with computer site page display way to cause the exploitation of research staff's needs twice, is wasted caused by entering The technical problem of resource, and then research staff can preferably reduce the situation of the wasting of resources, and then improve without developing twice Development efficiency and save development cost.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
If the integrated unit in above-described embodiment is realized using in the form of SFU software functional unit and is used as independent product Sale or in use, the storage medium that above computer can be read can be stored in.Understood based on such, skill of the invention The part or all or part of the technical scheme that art scheme substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in storage medium, including some instructions are to cause one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the invention State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, may refer to the associated description of other embodiment.
, can be by others side in several embodiments provided herein, it should be understood that disclosed client Formula is realized.Wherein, device embodiment described above is only schematical, such as division of described unit, only one Kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of unit or module by some interfaces Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and constituted Network on, alternatively, the program code that they can be can perform with computing device be realized, it is thus possible to they are stored Performed in the storage device by computing device, and in some cases, can be shown to be performed different from order herein The step of going out or describe, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (14)

1. a kind of page display method, it is characterised in that including:
The identification information corresponding to the page carrier of the page to be shown, and root are obtained from the page carrier of the page to be shown The type of the page carrier is determined according to acquisition result, the type of the page carrier at least includes one below:Client Embedded page, computer site page;
When the type of the page carrier indicated in the acquisition result is the embedded page of client, in the client On embedding page, the partial page resource of the page to be shown is shown.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
When the type of the page carrier indicated in the acquisition result is computer site page, on computer site page, The page to be shown is shown using strategy shown below:The page resource of the complete page to be shown of loading.
3. according to the method described in claim 1, it is characterised in that methods described also includes:
When the type of described page carrier is the embedded page of client, the embedded of client is shown using strategy shown below Page:Forbid the general element end to end of loading, hide the element for forbidding display preserved in the queue pre-set.
4. according to the method described in claim 1, it is characterised in that the class of the page carrier indicated in the acquisition result When type is the embedded page of client, methods described also includes:
Obtain the element width in the region that the page to be shown is shown in the page carrier, the element height in the region, The content height of the content width of the page to be shown and the page to be shown;
When the element width is highly more than the content height more than the content width, and the element, treated described The display page is shown in the specified location in the region;
In at least one of situation, the page to be shown is zoomed in and out into processing, and show that treating after scaling processing shows Show the page:The element width is less than the content width, and the element is highly less than content height, wherein, the contracting The content width of the page to be shown after putting is less than or equal to the element width, and the content is highly less than or equal to The element height.
5. according to the method described in claim 1, it is characterised in that the classes of pages of the page carrier is determined according to acquisition result Type, including:
When the corresponding identification information of the page carrier is got from the page carrier of the page to be shown, judge that the page is carried The type of body is the embedded page of client;
When not getting the corresponding identification information of the page carrier from the page carrier of the page to be shown, the page is judged The type of carrier is computer site page.
6. the method according to any one of claim 1 to 5, it is characterised in that the identification information at least includes:User's generation Manage user agent character strings.
7. a kind of page display device, it is characterised in that including:
Acquiring unit, for being obtained from the page carrier of the page to be shown corresponding to the page carrier of the page to be shown Identification information;
Determining unit, the type for determining the page carrier according to acquisition result, the type of the page carrier is at least wrapped Include one below:The embedded page of client, computer site page;
Display unit, when the type of the page carrier for being indicated in the acquisition result is the embedded page of client, On the embedded page of the client, the partial page resource of the page to be shown is shown.
8. device according to claim 7, it is characterised in that the display unit, is additionally operable to refer in the acquisition result When the type of the page carrier shown is computer site page, on computer site page, shown using strategy shown below The page to be shown:The page resource of the complete page to be shown of loading.
9. device according to claim 8, it is characterised in that the display unit, is additionally operable in the page carrier When type is the embedded page of client, the embedded page of client is shown using strategy shown below:Forbid loading general end to end Element, hides the element for forbidding display preserved in the queue pre-set.
10. device according to claim 9, it is characterised in that the display unit, including:
Acquisition module, for when the type of the page carrier is the embedded page of client, obtaining in the page carrier and showing Show the element width in the region of the page to be shown, the element height in the region, the content width of the page to be shown With the content height of the page to be shown;
First display module, for being more than the content width in the element width, and the element is highly more than in described When holding height, the page to be shown is included into the specified location in the region;
Zoom module, at least one of situation, the page to be shown to be zoomed in and out into processing:The element is wide Degree is less than the content width, and the element is highly less than content height;
Second display module, for showing the page to be shown after scaling processing, wherein, the page to be shown after the scaling Content width is less than or equal to the element width, and the content is highly less than or equal to element height.
11. device according to claim 7, it is characterised in that the determining unit, including:
First determination module, for getting the corresponding identification information of the page carrier from the page carrier of the page to be shown When, judge embedded page of the type of the page carrier as client;
Second determination module, for not getting the corresponding mark letter of the page carrier from the page carrier of the page to be shown During breath, judge the type of the page carrier as computer site page.
12. the device according to any one of claim 7 to 11, it is characterised in that the identification information at least includes:User Act on behalf of user agent character strings.
13. a kind of client, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor, the page carrier for obtaining the page to be shown from the page carrier of the page to be shown Corresponding identification information, and the type of the page carrier is determined according to result is obtained, and indicated in the acquisition result The page carrier type be client embedded page when, on the embedded page of the client, show it is described to be shown The partial page resource of the page, wherein, the page type of the page to be shown at least includes one below:Client it is embedded Page, computer site page.
14. a kind of storage medium, it is characterised in that the storage medium includes the program of storage, wherein, when described program is run Page display method any one of perform claim requirement 1 to 6.
CN201710430709.9A 2017-06-08 2017-06-08 Page display method and device, client, storage medium Pending CN107329997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710430709.9A CN107329997A (en) 2017-06-08 2017-06-08 Page display method and device, client, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710430709.9A CN107329997A (en) 2017-06-08 2017-06-08 Page display method and device, client, storage medium

Publications (1)

Publication Number Publication Date
CN107329997A true CN107329997A (en) 2017-11-07

Family

ID=60194576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710430709.9A Pending CN107329997A (en) 2017-06-08 2017-06-08 Page display method and device, client, storage medium

Country Status (1)

Country Link
CN (1) CN107329997A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109561078A (en) * 2018-11-09 2019-04-02 深圳万物云联科技有限公司 A kind of exterior chain url resource transfer method and device
CN109725929A (en) * 2018-12-11 2019-05-07 上海众源网络有限公司 A kind of embedded webpage loading method and device
CN110737858A (en) * 2019-10-16 2020-01-31 紫光云技术有限公司 cross-platform page display method
CN113177171A (en) * 2021-04-16 2021-07-27 百果园技术(新加坡)有限公司 Chart display method and device, terminal device and storage medium
CN117421251A (en) * 2023-12-18 2024-01-19 武汉天喻信息产业股份有限公司 Method and system for debugging user interface of embedded terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914284A (en) * 2012-12-31 2014-07-09 北京神州泰岳软件股份有限公司 Method and device for implementing embedded browser webpage in mobile embedded platform
CN104090926A (en) * 2014-06-20 2014-10-08 北京奇虎科技有限公司 Browser zoom state detecting method and device
CN104598465A (en) * 2013-10-30 2015-05-06 腾讯科技(深圳)有限公司 Method and device for realizing embedded address bar of browser
CN104951326A (en) * 2014-03-31 2015-09-30 腾讯科技(深圳)有限公司 Web access method and device
CN105204806A (en) * 2015-09-20 2015-12-30 杭州电子科技大学 Individual display method and device for mobile terminal webpage
CN105260421A (en) * 2015-09-28 2016-01-20 北京奇虎科技有限公司 Webpage loading method and apparatus
CN106331149A (en) * 2016-09-14 2017-01-11 北京知道未来信息技术有限公司 Webpage code adapting method applicable to client environment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914284A (en) * 2012-12-31 2014-07-09 北京神州泰岳软件股份有限公司 Method and device for implementing embedded browser webpage in mobile embedded platform
CN104598465A (en) * 2013-10-30 2015-05-06 腾讯科技(深圳)有限公司 Method and device for realizing embedded address bar of browser
CN104951326A (en) * 2014-03-31 2015-09-30 腾讯科技(深圳)有限公司 Web access method and device
CN104090926A (en) * 2014-06-20 2014-10-08 北京奇虎科技有限公司 Browser zoom state detecting method and device
CN105204806A (en) * 2015-09-20 2015-12-30 杭州电子科技大学 Individual display method and device for mobile terminal webpage
CN105260421A (en) * 2015-09-28 2016-01-20 北京奇虎科技有限公司 Webpage loading method and apparatus
CN106331149A (en) * 2016-09-14 2017-01-11 北京知道未来信息技术有限公司 Webpage code adapting method applicable to client environment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
密海英: "面向不同设备的响应式网页设计方法探析", 《苏州市职业大学学报》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109561078A (en) * 2018-11-09 2019-04-02 深圳万物云联科技有限公司 A kind of exterior chain url resource transfer method and device
CN109561078B (en) * 2018-11-09 2022-04-12 深圳万物云联科技有限公司 External link url resource calling method and device
CN109725929A (en) * 2018-12-11 2019-05-07 上海众源网络有限公司 A kind of embedded webpage loading method and device
CN110737858A (en) * 2019-10-16 2020-01-31 紫光云技术有限公司 cross-platform page display method
CN113177171A (en) * 2021-04-16 2021-07-27 百果园技术(新加坡)有限公司 Chart display method and device, terminal device and storage medium
CN113177171B (en) * 2021-04-16 2024-05-28 百果园技术(新加坡)有限公司 Graph display method, device, terminal equipment and storage medium
CN117421251A (en) * 2023-12-18 2024-01-19 武汉天喻信息产业股份有限公司 Method and system for debugging user interface of embedded terminal
CN117421251B (en) * 2023-12-18 2024-03-19 武汉天喻信息产业股份有限公司 Method and system for debugging user interface of embedded terminal

Similar Documents

Publication Publication Date Title
CN107329997A (en) Page display method and device, client, storage medium
CN110390269A (en) PDF document table extracting method, device, equipment and computer readable storage medium
CN106886570A (en) page processing method and device
CN108230346B (en) Method and device for segmenting semantic features of image and electronic equipment
CN109876450A (en) Implementation method, server, computer equipment and storage medium based on AR game
CN107562548A (en) The method and apparatus for transmitting data
CN106896937A (en) Method and apparatus for being input into information
CN107291759A (en) The treating method and apparatus of browser page resource
CN108154468A (en) Lung neoplasm detection method, application server and computer readable storage medium
CN110135421A (en) Licence plate recognition method, device, computer equipment and computer readable storage medium
CN107679022A (en) Uncommon word processing method and its system
CN107729452A (en) Webpage loading method, device, electronic equipment and computer-readable recording medium
CN107341027A (en) The generation method and generating means of user interface
CN110674488B (en) Verification code identification method, system and computer equipment based on neural network
CN109657125A (en) Data processing method, device, equipment and storage medium based on web crawlers
CN106919690B (en) Information shielding method and device and electronic equipment
CN116127420A (en) Watermark adding method and device, storage medium and electronic device
CN108268936A (en) For storing the method and apparatus of convolutional neural networks
CN108255914A (en) webpage generating method and application server
CN111580808A (en) Page generation method and device, computer equipment and storage medium
CN106815037A (en) The execution method and device of application function
CN110222571A (en) Black eye intelligent determination method, device and computer readable storage medium
CN105204883B (en) A kind of plug-in unit loading processing method and device
CN108804652B (en) Method and device for generating cover picture, storage medium and electronic device
CN107193956A (en) Page processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171107