CN108228284A - A kind of window display method and terminal - Google Patents

A kind of window display method and terminal Download PDF

Info

Publication number
CN108228284A
CN108228284A CN201611152968.1A CN201611152968A CN108228284A CN 108228284 A CN108228284 A CN 108228284A CN 201611152968 A CN201611152968 A CN 201611152968A CN 108228284 A CN108228284 A CN 108228284A
Authority
CN
China
Prior art keywords
page
size
window
loaded
page window
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.)
Granted
Application number
CN201611152968.1A
Other languages
Chinese (zh)
Other versions
CN108228284B (en
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 CN201611152968.1A priority Critical patent/CN108228284B/en
Publication of CN108228284A publication Critical patent/CN108228284A/en
Application granted granted Critical
Publication of CN108228284B publication Critical patent/CN108228284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The embodiment of the invention discloses a kind of window display method, including:When receiving the operation requests for opening page window, the size of the display interface of terminal is obtained, wherein, the operation requests carry the mark of information to be loaded;Parameter is configured according to the acquiring size page window of the display interface, parameter, which is configured, according to the page window creates page window;Information to be loaded is obtained according to the mark of the information to be loaded, the information to be loaded is loaded onto in the page window and is shown.The embodiment of the invention also discloses a kind of terminals.Using the present invention, terminal can carry out the size of adaptive adjustment page window according to the size of display interface, improve the flexibility of terminal display page window and improve the display effect of page window content.

Description

A kind of window display method and terminal
Technical field
The present invention relates to electronic technology field more particularly to a kind of window display method and terminals.
Background technology
At present, since the screen size size of various terminals is mostly inconsistent, the terminal to avoid the small screen can not Complete displayed page window, developer are opened up with the terminal of minimum screen size to be designed suitable page window Show.
But as current large screen terminal uses more and more (such as large screen computers), more and more large screens Terminal when opening page window, be still open be suitable for compared with the small screen terminal page window so that user need to compared with The page that access or operation pages window are loaded on small page window, this obviously wastes the large screen resource of terminal, makes Into the reading difficulty of user.
Invention content
Technical problem to be solved of the embodiment of the present invention is, provides a kind of window display method and terminal, and terminal can The size of adaptive adjustment page window is carried out according to the size of display interface, improve the flexibility of terminal display page window with And improve the display effect of page window content.
In order to solve the above-mentioned technical problem, on the one hand the embodiment of the present invention provides a kind of window display method, including:
When receiving the operation requests for opening page window, the size of the display interface of terminal is obtained, wherein, the behaviour Make the mark that request carries information to be loaded;
Parameter is configured according to the acquiring size page window of the display interface, parameter wound is configured according to the page window Build page window;
Information to be loaded is obtained according to the mark of the information to be loaded, the information to be loaded is loaded onto the page It is shown in window.
On the other hand the embodiment of the present invention provides a kind of terminal, including:
Acquiring unit, for when receiving the operation requests for opening page window, obtaining the big of the display interface of terminal It is small, wherein, the operation requests carry the mark of information to be loaded;
Creating unit, for parameter to be configured according to the acquiring size page window of the display interface, according to the page Window configuration parameter creates page window;
Display unit, for obtaining information to be loaded according to the mark of the information to be loaded, by the information to be loaded It is loaded onto in the page window and is shown.
In embodiments of the present invention, when receiving the operation requests for opening page window, the display interface of terminal is obtained Size, according to the acquiring size page window of the display interface be configured parameter, according to the page window be configured parameter wound Page window is built, information to be loaded is obtained according to the mark of the information to be loaded, the information to be loaded is loaded onto described It is shown in page window, this causes terminal that can carry out the big of adaptive adjustment page window according to the size of display interface It is small, it improves the flexibility of terminal display page window and improves the display effect of page window content.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of network architecture schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of window display method provided in an embodiment of the present invention;
Fig. 3 is a kind of page window display schematic diagram of the present invention;
Fig. 4 is the flow diagram of another window display method provided in an embodiment of the present invention;
Fig. 5 is a kind of web displaying schematic diagram of the present invention;
Fig. 6 is a kind of structure chart of terminal provided in an embodiment of the present invention;
Fig. 7 is the structure chart of another terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
A kind of window display method provided in an embodiment of the present invention can be applied to the scene of terminal display page window.
In order to be best understood from scheme disclosed by the embodiments of the present invention, the network architecture that is first applicable in below the embodiment of the present invention It is described.Referring to Fig. 1, Fig. 1 is a kind of network architecture schematic diagram disclosed by the embodiments of the present invention.Network shown in Fig. 1 In framework, it can include providing the server 1 of information to be loaded and the terminal 2 for showing page window, wherein, service Device 1 and terminal 2 can pass through network connection.In a particular application, when terminal 2 need to open page window, terminal 2 can create page Face-port mouth simultaneously sends acquisition request information to be loaded to server 1, and server 1 can respond the acquisition request information carrying to be added of terminal 1 Breath, and information to be loaded is sent to terminal 1 by network, terminal 1 can receive the information carrying to be added that server 1 is sent by network Breath, and information to be loaded is loaded onto in page window and is popped up.
Below in conjunction with attached drawing 2- attached drawings 5, describe in detail to window display method provided in an embodiment of the present invention, In, the executive agent of embodiment is terminal, and terminal can include:Computer, tablet computer, notebook etc. can carry out the opening page The intelligent terminal of window, above-mentioned terminal are only citings, and non exhaustive, including but not limited to above-mentioned terminal.
It is a kind of a kind of embodiment flow diagram of window display method provided in an embodiment of the present invention referring to Fig. 2.This A kind of window display method of inventive embodiments includes the following steps:
S100 when receiving the operation requests for opening page window, obtains the size of the display interface of terminal.
In embodiments of the present invention, when user's operation terminal triggering terminal opens page window, terminal can get use The operation requests of the opening page window of family operating terminal generation, wherein, page window can be pop-up window.In concrete application In, Ke Yishi:When being used to open new page window button on user's operation terminal current window, terminal can receive opening The operation requests of page window.Specifically, on user's operation terminal current window be used to open new page window button can To be:New window button is created when user clicks on a web browser, as user clicks purchase commodity on commodity purchasing webpage Button, alternatively, user clicked on the page of purchased item payment button or user click installation application button It will receive the operation requests of opening page window Deng, terminal and open new page window and load the corresponding page for user's progress Corresponding operation.In a particular application, reference can be made to Fig. 3, is pressed when clicking purchase on the shopping center webpage that user shows in computer During button, terminal opens the operation requests of page window by receiving, and respond request pops up purchase on display interface and determines the page Pop-up determines that the page is determined bought commodity for user according to the purchase that pop-up is shown.
In embodiments of the present invention, when terminal receives the operation requests for opening page window, terminal can obtain display The size at interface.Terminal obtain display interface size can be specifically:Terminal obtains aobvious from preset terminal configuration parameters The size or terminal for showing interface can carry out screenshotss to current display interface, obtain screenshotss image, pass through screenshotss image acquisition The size of display interface, wherein, the size of display interface can include the height and width of display interface, highly with width To be represented with pixel (px), wherein, highly can be display interface number of lines of pixels, width can be the pixel of display interface Columns, such as when the size of display interface is 640 × 960 pixels, the height of display interface is 960px, width 640px.
In embodiments of the present invention, when terminal receives the operation requests for opening page window, terminal can also be according to this The mark of the corresponding information to be loaded of acquisition request, wherein, the mark of information to be loaded can include the link of webpage to be loaded Store path of URL (Uniform Resoure Locator, uniform resource locator) or document to be loaded etc., it is described to treat Load information can be the information such as webpage, document, video.
S101 is configured parameter according to the acquiring size page window of the display interface, is configured according to the page window Parameter creates page window.
In embodiments of the present invention, terminal can preset display interface size and page window configuration parameter correspondence, So as to which parameter can be configured according to the corresponding page window of display interface acquiring size of terminal in terminal, according to the page window of acquisition Parameter is configured and creates page window.
Specifically, page window configuration parameter may include the size of page window, the size of page window can include page The width of face-port mouth and the height of page window.Therefore, pair of terminal preset display interface size and page window configuration parameter Should be related to can be specifically:The correspondence of terminal preset display interface altitude range and page window altitude range, such as terminal Preset can be less than the height of the height corresponding page window of the display interface of the first height value for third height value, it is preset be more than or It is the 4th height value equal to the first height value and less than the height of the height corresponding page window of the display interface of the second height value; The height of the height corresponding page window of the preset display interface for being greater than or equal to the second height value is the 5th height value, wherein, First height value, the second height value and third height value terminal can be preset, it is preferred that and the first height value can be 768px, the Two height values can be 800px, certainly, terminal can also preset more display interface sizes height value range, herein not into Row limitation.Further, third height value is less than the 4th height value, and the 4th height value is less than the 5th height value.As it can be seen that work as terminal When getting the height of display interface, terminal according to above correspondence, can obtain the height of corresponding window.
In embodiments of the present invention, when terminal acquisition shows the size of the window corresponding to the size of the page, terminal can Establishment page window is carried out by the size of corresponding window, wherein, the size of the size of the page window of establishment and corresponding window Unanimously.
S102 obtains information to be loaded according to the mark of the information to be loaded, the information to be loaded is loaded onto institute It states in page window and is shown.
In embodiments of the present invention, terminal can obtain information to be loaded according to the mark of information to be loaded, such as when to be loaded When information is URL, it can be the webpage corresponding to URL that terminal, which obtains information to be loaded, when information to be loaded is store path, It can be the file corresponding to store path that terminal, which gets load information,.After terminal gets information to be loaded, terminal can Information to be loaded is loaded onto in page window and is shown, wherein, terminal can be by the page window after loading with the shape of pop-up Formula is shown.
In embodiments of the present invention, when receiving the operation requests for opening page window, the display interface of terminal is obtained Size, according to the acquiring size page window of the display interface be configured parameter, according to the page window be configured parameter wound Page window is built, information to be loaded is obtained according to the mark of the information to be loaded, the information to be loaded is loaded onto described It is shown in page window, this causes terminal that can carry out the big of adaptive adjustment page window according to the size of display interface It is small, it improves the flexibility of terminal display page window and improves the display effect of page window content.
It is a kind of another embodiment flow diagram of window display method provided in an embodiment of the present invention referring to Fig. 4. A kind of window display method of the embodiment of the present invention includes the following steps:
S200 when receiving the operation requests for opening page window, obtains the size of the display interface of terminal.
S201, judges whether the size of the display interface is greater than or equal to preset threshold value.
In embodiments of the present invention, preset threshold value can be the critical value for the display interface for belonging to large screen terminal.By It can include the height of display interface and the width of display interface in the size of display interface, therefore, the size of display interface is excellent What is selected can be the height of display interface.Terminal judges whether the size of display interface specifically may be used more than or equal to preset threshold value To be:Terminal judges whether the height of display interface is greater than or equal to preset threshold value, it is preferred that preset threshold value can be 900px。
S202 when the size for determining the display interface is greater than or equal to the threshold value, obtains the page window Size.
In embodiments of the present invention, the size that terminal obtains the page window can be specifically that terminal is according to preset The correspondence of the size of display interface and the size of page window obtains the corresponding target pages window of display interface size Size, and target pages window size is set as page window size.In a particular application, can be more than such as the predeterminable height of terminal Or the height of the corresponding page window of height of the display interface equal to 900px and less than 1000px is the 6th height value, is preset The height for being highly greater than or equal to 1000px and the corresponding page window of height of the display interface less than 1100px is high for the 7th Angle value, the height of the corresponding page window of height of display interface of the preset height more than or equal to 1100px is the 8th height Value, therefore, terminal can obtain the page window size institute corresponding to the display interface size of terminal according to above correspondence Including page window height.
In embodiments of the present invention, the size of terminal acquisition page window can also be:Terminal obtains preset be suitable for The size for the page window that the small screen terminal is opened carries out the size of preset page window increase processing, obtains at increase The size of page window after reason, the size for being sized to page window that will finally increase treated page window.Wherein, Terminal can obtain the ratio between the current display interface size of terminal and the display interface size of the small screen terminal, and ratio is made Increase processing is carried out to the size of preset page window for increase multiple.
In embodiments of the present invention, the size of terminal acquisition page window can also be:Terminal is according to information to be loaded Mark obtains the information content of information to be loaded, is obtained to accommodate all information contents on same a page according to the information content The page page-size, according to page-size obtain for accommodate the page page window size.Specifically, information Content may include all types of contents, and all types of contents may include:Picture, word, audio, video, button, link, interactive component Etc. all types of contents.Therefore, terminal can according to all types of contents of acquisition of information to be loaded information to be loaded and it is all types of in The distributing order of appearance, terminal can arrange all types of contents by distributing order in same a page, so as to which terminal can the row of acquisition The page-size of the page after cloth, and according to the acquisition of the page-size of the page for accommodating the size of the page window of the page, Finally page window size will be sized to for accommodate the page window of the page, wherein, page window size can be big In or equal to the page after arrangement page-size.It specifically, can be such as:When information to be loaded is webpage, terminal can obtain The arrangements of all types of contents and all types of contents in webpage such as picture, word, button, link, interactive component in webpage Sequentially, terminal can arrange all types of contents in same a page according to distributing order, obtain the page of the page after arrangement Size, and will finally be used to accommodate this for accommodating the size of the page window of the page according to the acquisition of the page-size of the page The page window of the page is sized to page window size, wherein, after page window size can be greater than or equal to arrangement The page-size of the page.
In embodiments of the present invention, terminal arranges all types of contents in same a page according to distributing order, obtains The page-size of the page after arrangement specifically can also be:All types of contents are adjusted place by terminal by preset property parameters Reason, and will adjustment treated that all types of contents are arranged by distributing order in same a page, the page after being arranged Page-size.Property parameters can be font parameter, picture specifications parameter, and line space parameter etc. is big for the display of Suitable content Small parameter.
In embodiments of the present invention, information to be loaded specifically may also include the webpage shifted for data, wherein, data turn It moves webpage and can such as pay webpage, supplement webpage with money and buy commodity webpage.The all types of contents that the webpage of data transfer includes can To be:Webpage header contents, data transfer channel content and business tine.Wherein, webpage header information may include paying webpage Topic, data transfer channel content may include type of payment, as wechat payment, wealth pay logical payment, the payment of Q coin, e-Bank payment, The modes such as mobile phone charge payment, data transfer channel content may also include the payment of balance of each type of payment, in business information Holding may include the description information of bought commodity, such as pictorial information, character description information and pricing information.
Therefore, terminal is obtained according to the information content for the page of the page of receiving described information content on same a page Size can also be:First, terminal obtains webpage header contents for occupied first page size, data when showing respectively Transfer channel content for occupied second page size when showing and business information content for showing when occupied the Two page-sizes.But since data transfer channel content is according to the different means of payment, occupied page-size when showing Inconsistent, therefore, it is specifically terminal that terminal, which obtains data transfer channel content for occupied second page size when showing, Data transfer channel content is obtained for occupied second page size maximum when showing.Secondly, terminal can be according to first page Face size, second page size and third page-size are obtained by the distributing order of all types of contents and are accommodated respectively on same a page The occupied page-size of the information content is set as accommodating institute on same a page by the page-size of the page of type content State the page-size of the page of the information content.
In a particular application, reference can be made to the webpage 1 shown in fig. 5 for data transfer, the content in region 2 can be net Page header contents, the content in region 3 can be business information content, and the content in region 4 can be that data are shifted in channel Hold, it is seen that data transfer channel content occupies page-size according to the selected means of payment difference of user, occupies the page Height is different, and therefore, terminal can obtain the height of maximum occupied page when data transfer channel content is used to show.When So, since the height of pop-up is less than the height of webpage mostly, terminal can carry out after suitably reducing all types of contents, then obtain each The height of occupied page when type content is used to show, and obtain by the distributing order on webpage and accommodated on same a page The height of the page of all types of contents, as the page height=webpage header contents display height+business information content show Show the display height of height+data transfer channel content, accommodated in all information on same a page so as to which terminal is got The height of the page of appearance.
In embodiments of the present invention, after terminal gets the size of page window, terminal can be according to the big of page window Small establishment page window.Such as when terminal gets the height of page window, terminal can be by preset page window width and institute The height of the page window of acquisition creates page window.
In embodiments of the present invention, when terminal judges that the size of display interface is less than preset threshold value, and be greater than or equal to During preset first threshold, terminal can obtain preset first page window;When terminal judges that the size of display interface is less than in advance If first threshold when, terminal can obtain preset first page window.
S203 is configured parameter according to the page window and creates page window.
S204 obtains information to be loaded according to the mark of the information to be loaded, the information to be loaded is loaded onto institute It states in page window and is shown.
In embodiments of the present invention, terminal can parse information to be loaded, obtain the information content in information to be loaded, will believe Same a page that content is loaded onto in page window is ceased to be shown, wherein, the information content includes multiple type contents.Terminal will Same a page that the information content is loaded onto in page window is shown can be specifically:Terminal can adjust each type content Property parameters, so that same a page in page window can accommodate owning in information to be loaded by the distributing order of content Type content.In embodiments of the present invention, the information content can be loaded onto on same a page in page window and believed due to terminal Breath display, this may be such that window can provide all the elements in institute's load information on same a page, is avoided window that from need to adding All the elements in information to be loaded could be loaded by carrying multiple pagings, effectively improve the content of pages that user reads on page window Efficiency, content on page window is avoided to present insufficient.
In embodiments of the present invention, when the information content is loaded onto in page window by terminal, after terminal can be loaded Page window, and the page window after loading is shown on the vertical center position of the display page or can also be It is shown on other positions specified, the position in the direction up and down such as on display interface.Wherein, after terminal will load Page window display the page vertical center position on carry out display can be:Terminal is by the page window after loading aobvious Show and shown on the vertical center position on interface, and the top of page window is with being pre- the distance between at the top of display interface The distance put, this causes when page window highly changes, and page window is avoided jumping phenomena occur, reduces user's body It tests.Therefore, when window changes, be left white height of the page window above display interface can be less than staying below screen Bai Gaodu
In embodiments of the present invention, step S200, the specific embodiment of step S203 and step S204 referring also to upper The specific embodiment of step S100, the step S101 and step S102 in embodiment are stated, herein without repeating.
In embodiments of the present invention, when receiving the operation requests for opening page window, the display interface of terminal is obtained Size, according to the acquiring size page window of the display interface be configured parameter, according to the page window be configured parameter wound Page window is built, information to be loaded is obtained according to the mark of the information to be loaded, the information to be loaded is loaded onto described It is shown in page window, this causes terminal that can carry out the big of adaptive adjustment page window according to the size of display interface It is small, it improves the flexibility of terminal display page window and improves the display effect of page window content.
Below in conjunction with attached drawing 6-7, describe in detail to terminal provided in an embodiment of the present invention.It should be noted that Terminal shown in attached drawing 6-7 for performing the method for Fig. 1-embodiment illustrated in fig. 5 of the present invention, for convenience of description, illustrates only With the relevant part of the embodiment of the present invention, particular technique details does not disclose, please refers to Fig. 1 of the present invention-implementation shown in fig. 5 Example.
Fig. 6 is referred to, for an embodiment of the present invention provides a kind of structure diagrams of terminal.As shown in fig. 6, the present invention is real Applying the terminal of example can include:
Acquiring unit 100, for when receiving the operation requests for opening page window, obtaining the display interface of terminal Size, wherein, the operation requests carry the mark of information to be loaded;
Creating unit 200, for parameter to be configured according to the acquiring size page window of the display interface, according to the page Face-port mouth configuration parameter creates page window;
Display unit 300, for obtaining information to be loaded according to the mark of the information to be loaded, by the information carrying to be added Breath, which is loaded onto in the page window, to be shown.
Wherein, the page window configuration parameter includes the size of page window;
The creating unit 200 includes:
Judgment sub-unit, for judging whether the size of the display interface is greater than or equal to preset threshold value;
First obtains subelement, for when the size for determining the display interface is greater than or equal to the threshold value, obtaining The size of the page window.
Wherein, the first acquisition subelement includes:
Second obtains subelement, is closed for the size according to preset display interface to be corresponding with the size of page window System obtains the size of the corresponding target pages window of size of the display interface;
First setting subelement, for by the size for being sized to the page window of the target pages window.
Wherein, the first acquisition subelement includes:
Third obtains subelement, for obtaining the size of preset page window;
4th obtains subelement, increase processing is carried out for the size to the preset page window, after being handled The page window size;
The second setting subelement, for by the page window that is sized to of treated the page window Size.
Wherein, the first acquisition subelement includes:
5th obtains subelement, is obtained in the information of the information to be loaded for the mark according to the information to be loaded Hold;
6th obtains subelement, for being used to accommodate in described information on same a page according to described information content obtaining The page-size of the page of appearance;
7th obtains subelement, for accommodating the page of the page of described information content on same a page according to described Face acquiring size is used to accommodate the size of the page window of the page;
Third sets subelement, for the page window for being used to accommodate the page to be sized to the page The size of window.
Wherein, the information to be loaded includes the webpage for data transfer, and described information content is included in page head Hold, data shift channel content and business information content;
The 7th acquisition subelement is specifically used for:
The page header contents are obtained respectively for occupied first page size, the data transfer canal when showing Road content is occupied when being used to show for maximum occupied second page size when showing and the business information content Third page-size;
It is obtained in described information according to the first page size, the second page size and the third page-size Hold occupied page-size;
The occupied page-size of described information content is set as to accommodate described information content on same a page The page-size of the page.
Wherein, the display unit includes:
Parsing subunit for parsing the information to be loaded, obtains the information content of the information to be loaded;
Loaded and displayed subelement, same a page for described information content to be loaded onto in the page window are shown Show.
Wherein, the loaded and displayed subelement includes:
Subelement is loaded, for described information content to be loaded onto to same a page in the page window, is loaded Page window afterwards;
Subelement is shown, for the page window after the loading to be shown on the vertical center position of display interface Show.
Wherein it is possible to understand, the function of each function module of the unit in the terminal of the present embodiment can be according to above-mentioned Method specific implementation in embodiment of the method, specific implementation process are referred to the associated description of above method embodiment, this Place is no longer repeated.
In embodiments of the present invention, when receiving the operation requests for opening page window, the display interface of terminal is obtained Size, according to the acquiring size page window of the display interface be configured parameter, according to the page window be configured parameter wound Page window is built, information to be loaded is obtained according to the mark of the information to be loaded, the information to be loaded is loaded onto described It is shown in page window, this causes terminal that can carry out the big of adaptive adjustment page window according to the size of display interface It is small, it improves the flexibility of terminal display page window and improves the display effect of page window content.
Fig. 7 is referred to, is the structure diagram an embodiment of the present invention provides another server.It is as shown in fig. 7, described Server 1000 can include:At least one processor 1001, such as CPU, at least one network interface 1004, user interface 1003, memory 1005, at least one communication bus 1002.Wherein, communication bus 1002 is used to implement between these components Connection communication.Wherein, user interface 1003 can include display screen (Display), keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 can optionally connect including the wired of standard Mouth, wireless interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or non-labile storage Device (non-volatile memory), for example, at least a magnetic disk storage.Memory 1005 optionally can also be at least one A storage device for being located remotely from aforementioned processor 1001.As shown in fig. 7, as a kind of memory of computer storage media It can include operating system, network communication module, Subscriber Interface Module SIM and communication connection application program in 1005.
In terminal 1000 shown in Fig. 7, user interface 1003 is mainly used for providing to the user the interface of input, obtains and uses The data of family input;Network interface 1004 obtains the data that server is sent for being connected with server;And processor 1001 It can be used for calling the communication connection application program stored in memory 1005, and specifically perform following operate:
When receiving the operation requests for opening page window, the size of the display interface of terminal is obtained, wherein, the behaviour Make the mark that request carries information to be loaded;
Parameter is configured according to the acquiring size page window of the display interface, parameter wound is configured according to the page window Build page window;
Information to be loaded is obtained according to the mark of the information to be loaded, the information to be loaded is loaded onto the page It is shown in window.
Wherein, the page window configuration parameter includes the size of page window;
The processor 1001 is configured parameter according to the acquiring size page window of the display interface and includes:
Judge whether the size of the display interface is greater than or equal to preset threshold value;
When the size for determining the display interface is greater than or equal to the threshold value, the size of the page window is obtained.
Wherein, the size that the processor 1001 obtains the page window includes:
According to the correspondence of the size of preset display interface and the size of page window, the display interface is obtained The size of the corresponding target pages window of size;
By the size for being sized to the page window of the target pages window.
Wherein, the size that the processor 1001 obtains the page window includes:
Obtain the size of preset page window;
Carry out increase processing to the size of the preset page window, the page window that obtains that treated it is big It is small;
By the size for being sized to the page window of treated the page window.
Wherein, the size that the processor 1001 obtains the page window includes:
The information content of the information to be loaded is obtained according to the mark of the information to be loaded;
According to described information content obtaining for the page-size of the page of receiving described information content on same a page;
It obtains to accommodate for accommodating the page-size of the page of described information content on same a page according to described The size of the page window of the page;
By the size for being sized to the page window of the page window for being used to accommodate the page.
Wherein, the information to be loaded includes the webpage for data transfer, and described information content is included in page head Hold, data shift channel content and business information content;
The processor 1001 is according to described information content obtaining for the receiving described information content on same a page The page-size of the page includes:
The page header contents are obtained respectively for occupied first page size, the data transfer canal when showing Road content is occupied when being used to show for maximum occupied second page size when showing and the business information content Third page-size;
It is obtained in described information according to the first page size, the second page size and the third page-size Hold occupied page-size;
The occupied page-size of described information content is set as described to be used to accommodate in described information on same a page The page-size of the page of appearance.
Wherein, the processor 1001 obtains information to be loaded according to the mark of the information to be loaded, will be described to be added Information carrying breath be loaded onto in the page window carry out display include:
The information to be loaded is parsed, obtains the information content of the information to be loaded;
Same a page described information content being loaded onto in the page window is shown.
Wherein, same a page that described information content is loaded onto in the page window by the processor 1001 is shown Show including:
Same a page described information content being loaded onto in the page window, the page window after being loaded;
Page window after the loading is shown on the vertical center position of display interface.
Wherein it is possible to understand, the function of each function module of the unit in the terminal of the present embodiment can be according to above-mentioned Method specific implementation in embodiment of the method, specific implementation process are referred to the associated description of above method embodiment, this Place is no longer repeated.
In embodiments of the present invention, when receiving the operation requests for opening page window, the display interface of terminal is obtained Size, according to the acquiring size page window of the display interface be configured parameter, according to the page window be configured parameter wound Page window is built, information to be loaded is obtained according to the mark of the information to be loaded, the information to be loaded is loaded onto described It is shown in page window, this causes terminal that can carry out the big of adaptive adjustment page window according to the size of display interface It is small, it improves the flexibility of terminal display page window and improves the display effect of page window content.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent variations made according to the claims of the present invention, is still within the scope of the present invention.

Claims (16)

1. a kind of window display method, which is characterized in that including:
When receiving the operation requests for opening page window, the size of the display interface of terminal is obtained, wherein, the operation please Seek the mark for carrying information to be loaded;
Parameter is configured according to the acquiring size page window of the display interface, parameter, which is configured, according to the page window creates page Face-port mouth;
Information to be loaded is obtained according to the mark of the information to be loaded, the information to be loaded is loaded onto the page window In shown.
2. the method as described in claim 1, which is characterized in that the page window configuration parameter includes the big of page window It is small;
It is described to be included according to the acquiring size page window of display interface configuration parameter:
Judge whether the size of the display interface is greater than or equal to preset threshold value;
When the size for determining the display interface is greater than or equal to the threshold value, the size of the page window is obtained.
3. method as claimed in claim 2, which is characterized in that the size for obtaining the page window includes:
According to the correspondence of the size of preset display interface and the size of page window, the size of the display interface is obtained The size of corresponding target pages window;
By the size for being sized to the page window of the target pages window.
4. method as claimed in claim 2, which is characterized in that the size for obtaining the page window includes:
Obtain the size of preset page window;
Carry out increase processing to the size of the preset page window, the size for the page window that obtains that treated;
By the size for being sized to the page window of treated the page window.
5. method as claimed in claim 2, which is characterized in that the size for obtaining the page window includes:
The information content of the information to be loaded is obtained according to the mark of the information to be loaded;
According to described information content obtaining for the page-size of the page of receiving described information content on same a page;
It is obtained according to described for accommodating the page-size of the page of described information content on same a page for described in accommodating The size of the page window of the page;
By the size for being sized to the page window of the page window for being used to accommodate the page.
6. method as claimed in claim 5, which is characterized in that the information to be loaded includes the webpage for data transfer, Described information content includes page header contents, data transfer channel content and business information content;
The page-size of the page for being used to accommodate described information content on same a page according to described information content obtaining Including:
The page header contents are obtained respectively to be shifted in channel for occupied first page size, the data when showing Maximum occupied second page size and the business information content are for occupied third when showing when holding for showing Page-size;
Described information content institute is obtained according to the first page size, the second page size and the third page-size The page-size of occupancy;
The occupied page-size of described information content is set as described for the receiving described information content on same a page The page-size of the page.
7. the method as described in claim 1, which is characterized in that described to be loaded according to the acquisition of the mark of the information to be loaded Information, the information to be loaded is loaded onto in the page window carry out display include:
The information to be loaded is parsed, obtains the information content of the information to be loaded;
Same a page described information content being loaded onto in the page window is shown.
8. the method for claim 7, which is characterized in that described that described information content is loaded onto in the page window Same a page carry out display include:
Same a page described information content being loaded onto in the page window, the page window after being loaded;
Page window after the loading is shown on the vertical center position of display interface.
9. a kind of terminal, which is characterized in that the terminal includes:
Acquiring unit, for when receiving the operation requests for opening page window, obtaining the size of the display interface of terminal, In, the operation requests carry the mark of information to be loaded;
Creating unit, for parameter to be configured according to the acquiring size page window of the display interface, according to the page window Parameter is configured and creates page window;
For obtaining information to be loaded according to the mark of the information to be loaded, the information to be loaded is loaded for display unit It is shown into the page window.
10. terminal as claimed in claim 9, which is characterized in that the page window configuration parameter includes the big of page window It is small;
The creating unit includes:
Judgment sub-unit, for judging whether the size of the display interface is greater than or equal to preset threshold value;
First obtains subelement, for when the size for determining the display interface is greater than or equal to the threshold value, described in acquisition The size of page window.
11. terminal as claimed in claim 10, which is characterized in that the first acquisition subelement includes:
Second obtains subelement, for the size and the correspondence of the size of page window according to preset display interface, obtains Take the size of the corresponding target pages window of size of the display interface;
First setting subelement, for by the size for being sized to the page window of the target pages window.
12. terminal as claimed in claim 10, which is characterized in that the first acquisition subelement includes:
Third obtains subelement, for obtaining the size of preset page window;
4th obtains subelement, and increase processing is carried out for the size to the preset page window, the institute that obtains that treated State the size of page window;
Second setting subelement, for treated the page window to be sized to the big of the page window It is small.
13. terminal as claimed in claim 10, which is characterized in that the first acquisition subelement includes:
5th obtains subelement, for obtaining the information content of the information to be loaded according to the mark of the information to be loaded;
6th obtains subelement, for accommodating described information content on same a page according to described information content obtaining The page-size of the page;
7th obtains subelement, big for accommodating the page of the page of described information content on same a page according to described It is small acquisition for accommodate the page page window size;
Third sets subelement, for the page window for being used to accommodate the page to be sized to the page window Size.
14. terminal as claimed in claim 13, which is characterized in that the information to be loaded includes the net for data transfer Page, described information content include page header contents, data transfer channel content and business information content;
The 7th acquisition subelement is specifically used for:
The page header contents are obtained respectively to be shifted in channel for occupied first page size, the data when showing Maximum occupied second page size and the business information content are for occupied third when showing when holding for showing Page-size;
Described information content institute is obtained according to the first page size, the second page size and the third page-size The page-size of occupancy;
The occupied page-size of described information content is set as the page for accommodating described information content on same a page Page-size.
15. terminal as claimed in claim 9, which is characterized in that the display unit includes:
Parsing subunit for parsing the information to be loaded, obtains the information content of the information to be loaded;
Loaded and displayed subelement, same a page for described information content to be loaded onto in the page window are shown.
16. terminal as claimed in claim 15, which is characterized in that the loaded and displayed subelement includes:
Subelement is loaded, for described information content to be loaded onto to same a page in the page window, after being loaded Page window;
Subelement is shown, for the page window after the loading to be shown on the vertical center position of display interface.
CN201611152968.1A 2016-12-14 2016-12-14 Window display method and terminal Active CN108228284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611152968.1A CN108228284B (en) 2016-12-14 2016-12-14 Window display method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611152968.1A CN108228284B (en) 2016-12-14 2016-12-14 Window display method and terminal

Publications (2)

Publication Number Publication Date
CN108228284A true CN108228284A (en) 2018-06-29
CN108228284B CN108228284B (en) 2021-05-28

Family

ID=62638992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611152968.1A Active CN108228284B (en) 2016-12-14 2016-12-14 Window display method and terminal

Country Status (1)

Country Link
CN (1) CN108228284B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725970A (en) * 2018-12-25 2019-05-07 北京微播视界科技有限公司 The method, apparatus and electronic equipment that applications client window is shown
CN109753328A (en) * 2018-11-22 2019-05-14 广州市保伦电子有限公司 A kind of method and storage medium handling high-volume terminal display

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6832355B1 (en) * 1998-07-28 2004-12-14 Microsoft Corporation Web page display system
CN101566909A (en) * 2008-04-22 2009-10-28 鸿富锦精密工业(深圳)有限公司 Multiwindow operation interface display method
US20100302277A1 (en) * 2009-05-27 2010-12-02 International Business Machines Corporation Image Modification for Web Pages
CN101908076A (en) * 2010-08-24 2010-12-08 北京世纪高通科技有限公司 Page layout self-adaptive method and device
CN102368193A (en) * 2011-08-26 2012-03-07 百度在线网络技术(北京)有限公司 Method and device for providing browsed pages
CN102917273A (en) * 2012-09-28 2013-02-06 深圳市茁壮网络股份有限公司 Cross-platform display application method and device
CN102968474A (en) * 2012-11-15 2013-03-13 广东欧珀移动通信有限公司 Method for displaying webpage browsed by mobile communication device
CN103336794A (en) * 2013-06-09 2013-10-02 百度在线网络技术(北京)有限公司 Method and device for providing corresponding presence information on destination page
CN103677720A (en) * 2013-12-25 2014-03-26 乐视网信息技术(北京)股份有限公司 Picture display method and device based on website
CN104050947A (en) * 2013-03-15 2014-09-17 联想(北京)有限公司 Display control method and electronic device
CN104503655A (en) * 2014-11-28 2015-04-08 晨星半导体股份有限公司 Application program interface display control method and device
CN105005607A (en) * 2015-07-06 2015-10-28 无锡天脉聚源传媒科技有限公司 Page information loading method and page information loading device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6832355B1 (en) * 1998-07-28 2004-12-14 Microsoft Corporation Web page display system
CN101566909A (en) * 2008-04-22 2009-10-28 鸿富锦精密工业(深圳)有限公司 Multiwindow operation interface display method
US20100302277A1 (en) * 2009-05-27 2010-12-02 International Business Machines Corporation Image Modification for Web Pages
CN101908076A (en) * 2010-08-24 2010-12-08 北京世纪高通科技有限公司 Page layout self-adaptive method and device
CN102368193A (en) * 2011-08-26 2012-03-07 百度在线网络技术(北京)有限公司 Method and device for providing browsed pages
CN102917273A (en) * 2012-09-28 2013-02-06 深圳市茁壮网络股份有限公司 Cross-platform display application method and device
CN102968474A (en) * 2012-11-15 2013-03-13 广东欧珀移动通信有限公司 Method for displaying webpage browsed by mobile communication device
CN104050947A (en) * 2013-03-15 2014-09-17 联想(北京)有限公司 Display control method and electronic device
CN103336794A (en) * 2013-06-09 2013-10-02 百度在线网络技术(北京)有限公司 Method and device for providing corresponding presence information on destination page
CN103677720A (en) * 2013-12-25 2014-03-26 乐视网信息技术(北京)股份有限公司 Picture display method and device based on website
CN104503655A (en) * 2014-11-28 2015-04-08 晨星半导体股份有限公司 Application program interface display control method and device
CN105005607A (en) * 2015-07-06 2015-10-28 无锡天脉聚源传媒科技有限公司 Page information loading method and page information loading device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753328A (en) * 2018-11-22 2019-05-14 广州市保伦电子有限公司 A kind of method and storage medium handling high-volume terminal display
CN109725970A (en) * 2018-12-25 2019-05-07 北京微播视界科技有限公司 The method, apparatus and electronic equipment that applications client window is shown

Also Published As

Publication number Publication date
CN108228284B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
US8380565B2 (en) Browsing and quality of service features
CN103944864A (en) Information transmission method, information sending device, receiving device and system
CN105205157A (en) Page loading method, device and system
CN107066174A (en) Floating layer display methods, device and user terminal
CN105009057A (en) Intelligent window placement with multiple windows using high DPI screens
CN103365621B (en) Image processing method and device
CN110019037A (en) A kind of pdf document methods of exhibiting, device, equipment and storage medium
CN112764752A (en) Page display method and device, storage medium and electronic device
CN110533464A (en) A kind of advertisement detecting method, apparatus, system and calculate equipment
CN108647348A (en) Textual presentation method, apparatus, equipment and storage medium
TWI251787B (en) Apparatus, method and system for filtering two-dimensional (2-D) data
CN105574755A (en) Method and device of providing front-end service
CN103677860A (en) Method and device for updating browser
CN106060899A (en) Flow control method and device
CN106960062A (en) Webpage capture method and system
CN105975393A (en) Page display detection method and system
CN110020371B (en) Method and device for page layout linkage based on react-native
CN108228284A (en) A kind of window display method and terminal
CN110262723B (en) Office assisting method and system
CN108009183A (en) Method, apparatus and terminal for webpage displayed on the terminals
CN106971298A (en) Method of payment, system, payment conversion method and payment conversion equipment
US20180121049A1 (en) Terminal device and method for displaying image by same, and web server and method for providing web page by same
CN107798714A (en) A kind of image data display method and relevant apparatus and computer-readable storage medium
CN105989075A (en) Method, device and system for displaying image by browser
CN106358075A (en) Processing method and device for acquiring poster of video tag

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
GR01 Patent grant
GR01 Patent grant