CN108228284B - Window display method and terminal - Google Patents

Window display method and terminal Download PDF

Info

Publication number
CN108228284B
CN108228284B CN201611152968.1A CN201611152968A CN108228284B CN 108228284 B CN108228284 B CN 108228284B CN 201611152968 A CN201611152968 A CN 201611152968A CN 108228284 B CN108228284 B CN 108228284B
Authority
CN
China
Prior art keywords
page
size
window
information
loaded
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.)
Active
Application number
CN201611152968.1A
Other languages
Chinese (zh)
Other versions
CN108228284A (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

Images

Landscapes

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

Abstract

The embodiment of the invention discloses a window display method, which comprises the following steps: when an operation request for opening a page window is received, acquiring the size of a display interface of a terminal, wherein the operation request carries an identifier of information to be loaded; acquiring a page window configuration parameter according to the size of the display interface, and creating a page window according to the page window configuration parameter; and acquiring the information to be loaded according to the identifier of the information to be loaded, and loading the information to be loaded into the page window for displaying. The embodiment of the invention also discloses a terminal. By adopting the invention, the terminal can adaptively adjust the size of the page window according to the size of the display interface, thereby improving the flexibility of the terminal for displaying the page window and improving the display effect of the content of the page window.

Description

Window display method and terminal
Technical Field
The invention relates to the technical field of electronics, in particular to a window display method and a terminal.
Background
At present, due to the fact that the sizes of screens of various terminals are different, developers design appropriate page windows to display by using the terminal with the minimum screen size in order to avoid the situation that the terminal with the small screen cannot completely display the page windows.
However, as the current large-screen terminals are used more and more (for example, large-screen computers), when the page window is opened by more and more large-screen terminals, the page window applicable to the terminal with the smaller screen is still opened, so that the user needs to look up or operate the page loaded by the page window on the smaller page window, which obviously wastes the large-screen resources of the terminal and causes reading difficulty for the user.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a window display method and a terminal, where the terminal can adaptively adjust the size of a page window according to the size of a display interface, thereby improving the flexibility of the terminal in displaying the page window and improving the display effect of the content of the page window.
In order to solve the above technical problem, an aspect of the embodiments of the present invention provides a window display method, including:
when an operation request for opening a page window is received, acquiring the size of a display interface of a terminal, wherein the operation request carries an identifier of information to be loaded;
acquiring a page window configuration parameter according to the size of the display interface, and creating a page window according to the page window configuration parameter;
and acquiring the information to be loaded according to the identifier of the information to be loaded, and loading the information to be loaded into the page window for displaying.
Another aspect of an embodiment of the present invention provides a terminal, including:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring the size of a display interface of a terminal when receiving an operation request for opening a page window, and the operation request carries an identifier of information to be loaded;
the creating unit is used for acquiring the configuration parameters of the page window according to the size of the display interface and creating the page window according to the configuration parameters of the page window;
and the display unit is used for acquiring the information to be loaded according to the identifier of the information to be loaded and loading the information to be loaded into the page window for displaying.
In the embodiment of the invention, when an operation request for opening a page window is received, the size of a display interface of a terminal is obtained, the configuration parameters of the page window are obtained according to the size of the display interface, the page window is created according to the configuration parameters of the page window, the information to be loaded is obtained according to the identifier of the information to be loaded, and the information to be loaded is loaded into the page window for display, so that the terminal can adaptively adjust the size of the page window according to the size of the display interface, the flexibility of the terminal for displaying the page window is improved, and the display effect of the content of the page window is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a window displaying method according to an embodiment of the present invention;
FIG. 3 is a schematic view of a page window display of the present invention;
FIG. 4 is a flowchart illustrating another window displaying method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a web page display according to the present invention;
fig. 6 is a structural diagram of a terminal according to an embodiment of the present invention;
fig. 7 is a block diagram of another terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The window display method provided by the embodiment of the invention can be applied to the scene of the terminal display page window.
In order to better understand the solution disclosed in the embodiment of the present invention, a network architecture to which the embodiment of the present invention is applicable is described below. Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention. In the network architecture shown in fig. 1, a server 1 for providing information to be loaded and a terminal 2 for displaying a page window may be included, wherein the server 1 and the terminal 2 may be connected through a network. In a specific application, when the terminal 2 needs to open a page window, the terminal 2 may create the page window and send a request to the server 1 to acquire information to be loaded, the server 1 may respond to the request of the terminal 1 to acquire the information to be loaded and send the information to be loaded to the terminal 1 through a network, and the terminal 1 may receive the information to be loaded sent by the server 1 through the network and load the information to be loaded into the page window to pop up.
The following will describe in detail a window display method provided by an embodiment of the present invention with reference to fig. 2 to fig. 5, where an execution subject of the embodiment is a terminal, and the terminal may include: the terminals are only examples, but not exhaustive, and include but are not limited to the terminals.
Fig. 2 is a schematic flow chart of an embodiment of a window display method according to an embodiment of the present invention. The window display method of the embodiment of the invention comprises the following steps:
s100, when an operation request for opening a page window is received, the size of a display interface of the terminal is obtained.
In the embodiment of the invention, when the user operation terminal triggers the terminal to open the page window, the terminal can acquire the operation request for opening the page window generated by the user operation terminal, wherein the page window can be a popup window. In a specific application, it may be: when a user operates a button for opening a new page window on the current window of the terminal, the terminal can receive an operation request for opening the page window. Specifically, the button for opening a new page window on the current window of the user operation terminal may be: when a user clicks a button for creating a new window on a browser, for example, the user clicks a button for purchasing a commodity on a commodity purchasing webpage, or the user clicks a button for payment on a page of a purchased commodity, or the user clicks an application installation button, etc., the terminal opens a new page window after receiving an operation request for opening the page window and loads a corresponding page for the user to perform corresponding operation. In a specific application, referring to fig. 3, when a user clicks a purchase button on a shopping mall web page displayed on a computer, the terminal receives an operation request for opening a page window, and pops up a purchase determination page popup on a display interface in response to the request, so that the user determines a purchased commodity according to the purchase determination page displayed by the popup.
In the embodiment of the invention, when the terminal receives the operation request for opening the page window, the terminal can acquire the size of the display interface. The size of the display interface acquired by the terminal may specifically be: the method includes the steps that a terminal obtains the size of a display interface from preset terminal configuration parameters, or the terminal can perform screen capture on a current display interface to obtain a screen capture image, and the size of the display interface is obtained through the screen capture image, wherein the size of the display interface can include the height and the width of the display interface, and both the height and the width can be represented by pixels (px), wherein the height can be the number of pixel lines of the display interface, and the width can be the number of pixel columns of the display interface, for example, when the size of the display interface is 640 × 960 pixels, the height of the display interface is 960px, and the width is 640 px.
In the embodiment of the present invention, when the terminal receives an operation request for opening a page window, the terminal may further obtain an identifier of corresponding information to be loaded according to the request, where the identifier of the information to be loaded may include a Uniform Resource Locator (URL) of a webpage to be loaded, or a storage path of a document to be loaded, and the information to be loaded may be information such as a webpage, a document, a video, and the like.
S101, acquiring a page window configuration parameter according to the size of the display interface, and creating a page window according to the page window configuration parameter.
In the embodiment of the invention, the terminal can preset the corresponding relation between the size of the display interface and the configuration parameters of the page window, so that the terminal can acquire the corresponding configuration parameters of the page window according to the size of the display interface of the terminal and create the page window according to the acquired configuration parameters of the page window.
Specifically, the page window configuration parameter may include a size of the page window, and the size of the page window may include a width of the page window and a height of the page window. Therefore, the correspondence between the size of the preset display interface of the terminal and the configuration parameters of the page window may specifically be: the terminal presets a corresponding relation between a height range of a display interface and a height range of a page window, for example, the terminal can preset that the height of the display interface, which is smaller than a first height value, corresponds to the height of the page window as a third height value, and the height of the display interface, which is larger than or equal to the first height value and smaller than a second height value, corresponds to the height of the page window as a fourth height value; the height of the page window corresponding to the height of the display interface which is preset to be greater than or equal to the second height value is a fifth height value, wherein the terminals of the first height value, the second height value and the third height value can be preset, preferably, the first height value can be 768px, the second height value can be 800px, of course, the terminals can also preset more height value ranges of the display interface size, and the limitation is not performed here. Further, the third height value is smaller than the fourth height value, and the fourth height value is smaller than the fifth height value. Therefore, when the terminal acquires the height of the display interface, the terminal can acquire the height of the corresponding window according to the corresponding relation.
In the embodiment of the invention, when the terminal acquires the size of the window corresponding to the size of the displayed page, the terminal can create the page window according to the size of the corresponding window, wherein the size of the created page window is consistent with the size of the corresponding window.
S102, obtaining information to be loaded according to the identification of the information to be loaded, and loading the information to be loaded into the page window for displaying.
In the embodiment of the present invention, the terminal may obtain the information to be loaded according to the identifier of the information to be loaded, for example, when the information to be loaded is a URL, the information to be loaded obtained by the terminal may be a webpage corresponding to the URL, and when the information to be loaded is a storage path, the information to be loaded obtained by the terminal may be a file corresponding to the storage path. After the terminal acquires the information to be loaded, the terminal can load the information to be loaded into the page window for display, wherein the loaded page window can be displayed in a popup window mode by the terminal.
In the embodiment of the invention, when an operation request for opening a page window is received, the size of a display interface of a terminal is obtained, the configuration parameters of the page window are obtained according to the size of the display interface, the page window is created according to the configuration parameters of the page window, the information to be loaded is obtained according to the identifier of the information to be loaded, and the information to be loaded is loaded into the page window for display, so that the terminal can adaptively adjust the size of the page window according to the size of the display interface, the flexibility of the terminal for displaying the page window is improved, and the display effect of the content of the page window is improved.
Fig. 4 is a schematic flow chart of another embodiment of the window display method according to the embodiment of the present invention. The window display method of the embodiment of the invention comprises the following steps:
s200, when an operation request for opening a page window is received, the size of a display interface of the terminal is obtained.
S201, judging whether the size of the display interface is larger than or equal to a preset threshold value.
In the embodiment of the present invention, the preset threshold may be a critical value belonging to a display interface of a large-screen terminal. Since the size of the display interface may include the height of the display interface and the width of the display interface, the size of the display interface may preferably be the height of the display interface. The specific way for the terminal to judge whether the size of the display interface is greater than or equal to the preset threshold may be: the terminal judges whether the height of the display interface is greater than or equal to a preset threshold, preferably, the preset threshold may be 900 px.
S202, when the size of the display interface is determined to be larger than or equal to the threshold value, the size of the page window is obtained.
In the embodiment of the present invention, the terminal may specifically acquire the size of the page window, where the terminal acquires the size of a target page window corresponding to the size of the display interface according to a preset corresponding relationship between the size of the display interface and the size of the page window, and sets the size of the target page window to the size of the page window. In a specific application, for example, the terminal may preset that the height of the page window corresponding to the height of the display interface with the height greater than or equal to 900px and less than 1000px is a sixth height value, the height of the page window corresponding to the height of the display interface with the preset height greater than or equal to 1000px and less than 1100px is a seventh height value, and the height of the page window corresponding to the height of the display interface with the preset height greater than or equal to 1100px is an eighth height value.
In the embodiment of the present invention, the size of the page window acquired by the terminal may also be: the terminal obtains the size of a preset page window suitable for being opened by the small-screen terminal, the size of the preset page window is increased, the size of the page window after the increase processing is obtained, and finally the size of the page window after the increase processing is set to be the size of the page window. The terminal can obtain the ratio of the current display interface size of the terminal to the display interface size of the small-screen terminal, and the ratio is used as an increase multiple to increase the size of the preset page window.
In the embodiment of the present invention, the size of the page window acquired by the terminal may also be: the terminal acquires the information content of the information to be loaded according to the identifier of the information to be loaded, acquires the page size of a page for containing all the information content on the same page according to the information content, and acquires the size of a page window for containing the page according to the page size. Specifically, the information content may include various types of content, and the various types of content may include: pictures, text, audio, video, buttons, links, interactive components, and the like. Therefore, the terminal can obtain each type of content of the information to be loaded and the arrangement sequence of each type of content according to the information to be loaded, and the terminal can arrange each type of content on the same page according to the arrangement sequence, so that the terminal can obtain the page size of the arranged page, obtain the size of a page window for accommodating the page according to the page size of the page, and finally set the size of the page window for accommodating the page as the size of the page window, wherein the size of the page window can be larger than or equal to the size of the arranged page. Specifically, for example: when the information to be loaded is a webpage, the terminal can acquire various types of contents such as pictures, characters, buttons, links, interactive components and the like in the webpage and the arrangement sequence of the various types of contents in the webpage, the terminal can arrange the various types of contents on the same page according to the arrangement sequence, the page size of the arranged page is acquired, the size of a page window used for containing the page is acquired according to the page size of the page, and finally the size of the page window used for containing the page is set to be the size of the page window, wherein the size of the page window can be larger than or equal to the size of the arranged page.
In the embodiment of the present invention, the terminal arranges the contents of each type on the same page according to the arrangement sequence, and the page size of the arranged page may specifically be: and the terminal adjusts each type of content according to preset attribute parameters, arranges each type of content after adjustment on the same page according to the arrangement sequence and obtains the page size of the arranged page. The attribute parameter may be a font parameter, a picture specification parameter, a line space parameter, or the like, which is used to adjust the display size of the content.
In the embodiment of the present invention, the information to be loaded may further include a web page for data transfer, where the data transfer web page may be, for example, a payment web page, a recharge web page, a commodity purchasing web page, and the like. The web page for data transfer may include various types of content: webpage header content, data transfer channel content and business content. The webpage header information can comprise the title of the payment webpage, the data transfer channel content can comprise payment types, such as modes of WeChat payment, financial payment communication payment, Q-currency payment, online banking payment, mobile phone charge payment and the like, the data transfer channel content can also comprise the payment balance of each payment type, and the service information content can comprise description information of purchased commodities, such as picture information, character description information, price information and the like.
Therefore, the terminal may obtain the page size of the page for accommodating the information content on the same page according to the information content by: firstly, the terminal respectively obtains a first page size occupied when the head content of the webpage is used for displaying, a second page size occupied when the content of the data transfer channel is used for displaying and a second page size occupied when the content of the service information is used for displaying. However, the sizes of the pages occupied by the content of the data transfer channel when the content of the data transfer channel is displayed are different according to different payment methods, and therefore, the second page size occupied by the terminal when the content of the data transfer channel is acquired for displaying is specifically the second page size occupied by the terminal when the content of the data transfer channel is acquired for displaying. Secondly, the terminal can obtain the page size of the page containing the contents of the various types on the same page according to the arrangement sequence of the contents of the various types according to the first page size, the second page size and the third page size, and the page size occupied by the information contents is set to be the page size of the page containing the information contents on the same page.
In a specific application, referring to the web page 1 for data transfer shown in fig. 5, the content in the area 2 may be a web page header content, the content in the area 3 may be a service information content, the content in the area 4 may be a data transfer channel content, the size of the occupied page of the data transfer channel content is different according to the payment method selected by the user, and the height of the occupied page is different, so that the terminal can obtain the height of the maximum occupied page when the data transfer channel content is used for displaying. Certainly, since the height of the pop-up window is mostly smaller than the height of the web page, the terminal can properly reduce each type of content, then obtain the height of the page occupied by each type of content when used for displaying, and obtain the height of the page containing each type of content on the same page according to the arrangement sequence on the web page, for example, the height of the page is the display height of the head content of the web page, the display height of the business information content and the display height of the data transfer channel content, so that the terminal obtains the height of the page containing all the information content on the same page.
In the embodiment of the invention, after the terminal acquires the size of the page window, the terminal can create the page window according to the size of the page window. For example, when the terminal acquires the height of the page window, the terminal may create the page window according to the preset width of the page window and the acquired height of the page window.
In the embodiment of the invention, when the terminal judges that the size of the display interface is smaller than a preset threshold value and is larger than or equal to a preset first threshold value, the terminal can acquire a preset first page window; when the terminal judges that the size of the display interface is smaller than a preset first threshold value, the terminal can acquire a preset first page window.
S203, creating a page window according to the page window configuration parameters.
And S204, acquiring the information to be loaded according to the identifier of the information to be loaded, and loading the information to be loaded into the page window for displaying.
In the embodiment of the invention, the terminal can analyze the information to be loaded, obtain the information content on the information to be loaded, and load the information content to the same page in the page window for display, wherein the information content comprises a plurality of types of content. The specific way for the terminal to load the information content to the same page in the page window for display may be: the terminal can adjust the attribute parameters of each type of content so that the same page in the page window can contain all types of content in the information to be loaded according to the arrangement sequence of the content. In the embodiment of the invention, the terminal can load the information content to the same page in the page window for information display, so that the window can provide all the content in the loaded information on the same page, the window is prevented from loading all the content in the information to be loaded only by loading a plurality of pages, the efficiency of browsing the page content on the page window by a user is effectively improved, and the content on the page window is prevented from being insufficiently presented.
In the embodiment of the present invention, when the terminal loads the information content into the page window, the terminal may obtain the loaded page window, and display the loaded page window at the vertically centered position of the display page, or may display the loaded page window at other specified positions, such as positions in the up-down, left-right directions on the display interface. The displaying, by the terminal, the loaded page window at the vertically centered position of the display page may be: the terminal displays the loaded page window on a vertically centered position on the display interface, and the distance between the top of the page window and the top of the display interface is a preset distance, so that when the height of the page window changes, the page window is prevented from jumping, and user experience is reduced. Therefore, when the window changes, the margin height of the page window from the upper part of the display interface is smaller than the margin height of the lower part of the screen
In the embodiment of the present invention, for specific implementation of step S200, step S203, and step S204, reference may also be made to specific implementation of step S100, step S101, and step S102 in the foregoing embodiment, which is not described herein again.
In the embodiment of the invention, when an operation request for opening a page window is received, the size of a display interface of a terminal is obtained, the configuration parameters of the page window are obtained according to the size of the display interface, the page window is created according to the configuration parameters of the page window, the information to be loaded is obtained according to the identifier of the information to be loaded, and the information to be loaded is loaded into the page window for display, so that the terminal can adaptively adjust the size of the page window according to the size of the display interface, the flexibility of the terminal for displaying the page window is improved, and the display effect of the content of the page window is improved.
The terminal provided by the embodiment of the present invention will be described in detail with reference to fig. 6 to 7. It should be noted that, the terminals shown in fig. 6 to 7 are used for executing the method according to the embodiments of the present invention shown in fig. 1 to 5, for convenience of description, only the parts related to the embodiments of the present invention are shown, and details of the specific technology are not disclosed, please refer to the embodiments of the present invention shown in fig. 1 to 5.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 6, the terminal according to the embodiment of the present invention may include:
the device comprises an obtaining unit 100, configured to obtain a size of a display interface of a terminal when an operation request for opening a page window is received, where the operation request carries an identifier of information to be loaded;
the creating unit 200 is configured to obtain a page window configuration parameter according to the size of the display interface, and create a page window according to the page window configuration parameter;
the display unit 300 is configured to acquire information to be loaded according to the identifier of the information to be loaded, and load the information to be loaded into the page window for display.
Wherein the page window configuration parameter comprises the size of a page window;
the creating unit 200 includes:
the judging subunit is used for judging whether the size of the display interface is larger than or equal to a preset threshold value or not;
and the first acquiring subunit is used for acquiring the size of the page window when the size of the display interface is determined to be larger than or equal to the threshold value.
Wherein the first obtaining subunit includes:
the second obtaining subunit is configured to obtain, according to a preset correspondence between a size of a display interface and a size of a page window, a size of a target page window corresponding to the size of the display interface;
and the first setting subunit is used for setting the size of the target page window as the size of the page window.
Wherein the first obtaining subunit includes:
the third acquisition subunit is used for acquiring the size of a preset page window;
a fourth obtaining subunit, configured to increase the size of the preset page window to obtain the size of the processed page window;
and the second setting subunit is used for setting the size of the processed page window as the size of the page window.
Wherein the first obtaining subunit includes:
a fifth obtaining subunit, configured to obtain, according to the identifier of the information to be loaded, information content of the information to be loaded;
a sixth obtaining subunit, configured to obtain, according to the information content, a page size of a page that is used to accommodate the information content on the same page;
a seventh obtaining subunit, configured to obtain, according to the page size of the page that is used to contain the information content on the same page, the size of a page window that is used to contain the page;
and the third setting subunit is used for setting the size of the page window used for accommodating the page as the size of the page window.
The information to be loaded comprises a webpage for data transfer, and the information content comprises page header content, data transfer channel content and service information content;
the seventh obtaining subunit is specifically configured to:
respectively acquiring a first page size occupied when the page head content is used for displaying, a second page size occupied maximally when the data transfer channel content is used for displaying, and a third page size occupied when the service information content is used for displaying;
acquiring the page size occupied by the information content according to the first page size, the second page size and the third page size;
and setting the page size occupied by the information content as the page size of the page for accommodating the information content on the same page.
Wherein the display unit includes:
the analysis subunit is used for analyzing the information to be loaded to obtain the information content of the information to be loaded;
and the loading display subunit is used for loading the information content to the same page in the page window for display.
Wherein the load display subunit comprises:
the loading subunit is configured to load the information content to the same page in the page window, and obtain a loaded page window;
and the display subunit is used for displaying the loaded page window at the vertical central position of the display interface.
It is to be understood that the functions of each functional module of the unit in the terminal in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
In the embodiment of the invention, when an operation request for opening a page window is received, the size of a display interface of a terminal is obtained, the configuration parameters of the page window are obtained according to the size of the display interface, the page window is created according to the configuration parameters of the page window, the information to be loaded is obtained according to the identifier of the information to be loaded, and the information to be loaded is loaded into the page window for display, so that the terminal can adaptively adjust the size of the page window according to the size of the display interface, the flexibility of the terminal for displaying the page window is improved, and the display effect of the content of the page window is improved.
Referring to fig. 7, a schematic structural diagram of another server is provided for the embodiment of the present invention. As shown in fig. 7, the server 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 7, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a communication connection application program.
In the terminal 1000 shown in fig. 7, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the network interface 1004 is used for connecting with a server and acquiring data sent by the server; and the processor 1001 may be configured to invoke the communication connection application stored in the memory 1005 and specifically perform the following operations:
when an operation request for opening a page window is received, acquiring the size of a display interface of a terminal, wherein the operation request carries an identifier of information to be loaded;
acquiring a page window configuration parameter according to the size of the display interface, and creating a page window according to the page window configuration parameter;
and acquiring the information to be loaded according to the identifier of the information to be loaded, and loading the information to be loaded into the page window for displaying.
Wherein the page window configuration parameter comprises the size of a page window;
the processor 1001, according to the size of the display interface, acquiring the configuration parameters of the page window includes:
judging whether the size of the display interface is larger than or equal to a preset threshold value or not;
and when the size of the display interface is determined to be larger than or equal to the threshold value, acquiring the size of the page window.
Wherein, the processor 1001 obtains the size of the page window includes:
acquiring the size of a target page window corresponding to the size of a display interface according to the corresponding relation between the preset size of the display interface and the size of the page window;
and setting the size of the target page window as the size of the page window.
Wherein, the processor 1001 obtains the size of the page window includes:
acquiring the size of a preset page window;
increasing the size of the preset page window to obtain the size of the processed page window;
and setting the size of the processed page window as the size of the page window.
Wherein, the processor 1001 obtains the size of the page window includes:
acquiring the information content of the information to be loaded according to the identifier of the information to be loaded;
acquiring the page size of a page for containing the information content on the same page according to the information content;
acquiring the size of a page window for accommodating the page according to the page size of the page for accommodating the information content on the same page;
and setting the size of the page window for accommodating the page as the size of the page window.
The information to be loaded comprises a webpage for data transfer, and the information content comprises page header content, data transfer channel content and service information content;
the processor 1001, according to the information content, acquiring a page size of a page for accommodating the information content on the same page includes:
respectively acquiring a first page size occupied when the page head content is used for displaying, a second page size occupied maximally when the data transfer channel content is used for displaying, and a third page size occupied when the service information content is used for displaying;
acquiring the page size occupied by the information content according to the first page size, the second page size and the third page size;
and setting the page size occupied by the information content as the page size of the page for accommodating the information content on the same page.
The obtaining, by the processor 1001, information to be loaded according to the identifier of the information to be loaded, and loading the information to be loaded into the page window for display includes:
analyzing the information to be loaded to obtain the information content of the information to be loaded;
and loading the information content to the same page in the page window for displaying.
The loading, by the processor 1001, the information content to the same page in the page window for displaying includes:
loading the information content to the same page in the page window to obtain a loaded page window;
and displaying the loaded page window on a vertical central position of a display interface.
It is to be understood that the functions of each functional module of the unit in the terminal in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
In the embodiment of the invention, when an operation request for opening a page window is received, the size of a display interface of a terminal is obtained, the configuration parameters of the page window are obtained according to the size of the display interface, the page window is created according to the configuration parameters of the page window, the information to be loaded is obtained according to the identifier of the information to be loaded, and the information to be loaded is loaded into the page window for display, so that the terminal can adaptively adjust the size of the page window according to the size of the display interface, the flexibility of the terminal for displaying the page window is improved, and the display effect of the content of the page window is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (14)

1. A window display method, comprising:
when an operation request for opening a page window is received, acquiring the size of a display interface of a terminal, wherein the operation request carries an identifier of information to be loaded;
judging whether the size of the display interface is larger than or equal to a preset threshold value or not;
when the size of the display interface is determined to be larger than or equal to the threshold value, the size of a page window is obtained, and the page window is created according to the size of the page window;
acquiring information to be loaded according to the identifier of the information to be loaded, and loading the information to be loaded into the page window for displaying;
wherein, the obtaining the size of the page window comprises:
acquiring the information content of the information to be loaded according to the identifier of the information to be loaded; the information to be loaded comprises a webpage for data transfer, and the information content comprises page head content, data transfer channel content and service information content;
acquiring the page size of a page for containing the information content on the same page according to the information content;
acquiring the size of a page window for accommodating the page according to the page size of the page for accommodating the information content on the same page;
and setting the size of the page window for accommodating the page as the size of the page window.
2. The method of claim 1, wherein the obtaining the size of the page window comprises:
acquiring the size of a target page window corresponding to the size of a display interface according to the corresponding relation between the preset size of the display interface and the size of the page window;
and setting the size of the target page window as the size of the page window.
3. The method of claim 1, wherein the obtaining the size of the page window comprises:
acquiring the size of a preset page window;
increasing the size of the preset page window to obtain the size of the processed page window;
and setting the size of the processed page window as the size of the page window.
4. The method of claim 1, wherein said obtaining a page size of a page for accommodating the information content on a same page according to the information content comprises:
respectively acquiring a first page size occupied when the page head content is used for displaying, a second page size occupied maximally when the data transfer channel content is used for displaying, and a third page size occupied when the service information content is used for displaying;
acquiring the page size occupied by the information content according to the first page size, the second page size and the third page size;
and setting the page size occupied by the information content as the page size of the page for accommodating the information content on the same page.
5. The method of claim 1, wherein the obtaining information to be loaded according to the identifier of the information to be loaded, and the loading the information to be loaded into the page window for display comprises:
analyzing the information to be loaded to obtain the information content of the information to be loaded;
and loading the information content to the same page in the page window for displaying.
6. The method of claim 5, wherein said loading the information content into the same page of the page window for display comprises:
loading the information content to the same page in the page window to obtain a loaded page window;
and displaying the loaded page window on a vertical central position of a display interface.
7. A terminal, characterized in that the terminal comprises:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring the size of a display interface of a terminal when receiving an operation request for opening a page window, and the operation request carries an identifier of information to be loaded;
the creating unit is used for acquiring the configuration parameters of the page window according to the size of the display interface and creating the page window according to the configuration parameters of the page window;
the display unit is used for acquiring the information to be loaded according to the identifier of the information to be loaded and loading the information to be loaded into the page window for displaying;
wherein the page window configuration parameter comprises the size of a page window;
the creating unit includes:
the judging subunit is used for judging whether the size of the display interface is larger than or equal to a preset threshold value or not;
the first obtaining subunit is configured to obtain the size of the page window when it is determined that the size of the display interface is greater than or equal to the threshold;
wherein the first obtaining subunit includes:
a fifth obtaining subunit, configured to obtain, according to the identifier of the information to be loaded, information content of the information to be loaded; the information to be loaded comprises a webpage for data transfer, and the information content comprises page head content, data transfer channel content and service information content;
a sixth obtaining subunit, configured to obtain, according to the information content, a page size of a page that is used to accommodate the information content on the same page;
a seventh obtaining subunit, configured to obtain, according to the page size of the page that is used to contain the information content on the same page, the size of a page window that is used to contain the page;
and the third setting subunit is used for setting the size of the page window used for accommodating the page as the size of the page window.
8. The terminal of claim 7, wherein the first acquisition subunit comprises:
the second obtaining subunit is configured to obtain, according to a preset correspondence between a size of a display interface and a size of a page window, a size of a target page window corresponding to the size of the display interface;
and the first setting subunit is used for setting the size of the target page window as the size of the page window.
9. The terminal of claim 7, wherein the first acquisition subunit comprises:
the third acquisition subunit is used for acquiring the size of a preset page window;
a fourth obtaining subunit, configured to increase the size of the preset page window to obtain the size of the processed page window;
and the second setting subunit is used for setting the size of the processed page window as the size of the page window.
10. The terminal of claim 7, wherein the seventh acquisition subunit is specifically configured to:
respectively acquiring a first page size occupied when the page head content is used for displaying, a second page size occupied maximally when the data transfer channel content is used for displaying, and a third page size occupied when the service information content is used for displaying;
acquiring the page size occupied by the information content according to the first page size, the second page size and the third page size;
and setting the page size occupied by the information content as the page size of the page for accommodating the information content on the same page.
11. The terminal of claim 7, wherein the display unit comprises:
the analysis subunit is used for analyzing the information to be loaded to obtain the information content of the information to be loaded;
and the loading display subunit is used for loading the information content to the same page in the page window for display.
12. The terminal of claim 11, wherein the load display subunit comprises:
the loading subunit is configured to load the information content to the same page in the page window, and obtain a loaded page window;
and the display subunit is used for displaying the loaded page window at the vertical central position of the display interface.
13. A terminal comprising a processor, a memory, a network interface;
the processor is connected to the memory and the network interface, respectively, wherein the memory is used for storing program codes, and the processor is used for calling the program codes to execute the method of any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, perform the method of any of claims 1-6.
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 CN108228284A (en) 2018-06-29
CN108228284B true 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)

Families Citing this family (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
CN109725970B (en) * 2018-12-25 2020-07-24 北京微播视界科技有限公司 Method and device for displaying application client window and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566909A (en) * 2008-04-22 2009-10-28 鸿富锦精密工业(深圳)有限公司 Multiwindow operation interface display method
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
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

Family Cites Families (6)

* 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
US20100302277A1 (en) * 2009-05-27 2010-12-02 International Business Machines Corporation Image Modification for Web Pages
CN101908076B (en) * 2010-08-24 2012-09-12 北京世纪高通科技有限公司 Page layout self-adaptive method and device
CN102968474B (en) * 2012-11-15 2016-02-24 广东欧珀移动通信有限公司 Webpage display process browsed by mobile communication equipment
CN104503655B (en) * 2014-11-28 2017-12-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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566909A (en) * 2008-04-22 2009-10-28 鸿富锦精密工业(深圳)有限公司 Multiwindow operation interface display method
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
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

Also Published As

Publication number Publication date
CN108228284A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN106911943B (en) Video display method and device and storage medium
US20140325323A1 (en) Online video playing method and apparatus and computer readable medium
CN105009057A (en) Intelligent window placement with multiple windows using high DPI screens
CN110533464B (en) Advertisement monitoring method, device and system and computing equipment
US20150186019A1 (en) Method and apparatus for manipulating and presenting images included in webpages
CN110806905B (en) User page processing method and device, electronic equipment and storage medium
US20160217143A1 (en) Method and device for displaying browser resources and computer readable storage medium
CN114007088B (en) Live broadcast information processing method and device and electronic equipment
CN105808307B (en) Page display method and device
KR20200104899A (en) Digital component background rendering
CN112256363A (en) Application page rendering method and device and electronic equipment
CN108228284B (en) Window display method and terminal
CN107169147B (en) Data processing method and device and electronic equipment
CN105224611A (en) Based on the operation processing method of browser, device and browser
CN108664498B (en) Webpage content display method and terminal
CN113784194A (en) Embedding method and device of video player
CN108572985B (en) Page display method and device
CN116595281A (en) Page rendering method, device, equipment and storage medium
CN107688572B (en) Page display method and terminal
CN115756461A (en) Annotation template generation method, image identification method and device and electronic equipment
CN114690996A (en) Content display method and device and electronic equipment
US20170053383A1 (en) Apparatus and method for providing 3d content and recording medium
CN112328940A (en) Method and device for embedding transition page into webpage, computer equipment and storage medium
CN114640876A (en) Multimedia service video display method and device, computer equipment and storage medium
US10650081B2 (en) Television application page tracking using declarative page tracking

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