Display adjustment method and device, equipment and storage medium

By dividing the hidden elements and the elements to be displayed in the browser, and the size adjustment of the display elements, the problem of difficulty interacting the browser's full -screen mode is solved, the effect of the large display area is achieved, and the user experience is improved.

CN119376825APending Publication Date: 2025-01-28BEIJING QIHOOD TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310919893.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-25
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

The prior art has difficulty interacting with other applications after the browser enters the full-screen display mode, making it inconvenient for users to use.

Method used

By dividing the elements displayed in the browser as the hidden elements and the element to be displayed, and the size adjustment of the display elements according to the specifications of the browser's window, the stretch display element is obtained. Realize the effect of large display areas.

Benefits of technology

Without affecting interaction with other applications, it has achieved the same large display area effect as the browser full -screen mode, which improves the convenience of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376825A_ABST
    Figure CN119376825A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of image display, and discloses a display adjustment method and device, equipment and a storage medium. The elements displayed in the browser are divided into the to-be-hidden elements and the to-be-displayed elements; adjusting the size of the to-be-displayed element according to the window display specification of the browser to obtain a stretched display element; and removing the to-be-hidden element from the browser, and displaying the stretching display element in the browser. The elements in the browser can be divided, one part of the elements is removed from the browser as the elements to be hidden, and the other part of the elements to be displayed is subjected to size adjustment according to the window display specification of the browser, so that the elements can occupy all the display windows of the browser; on the premise that interaction with other applications is not affected, the effect of a large display area which is the same as that of a full-screen mode of a browser is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image display technology, and in particular to a display adjustment method, device, equipment and storage medium. Background Art

[0002] Currently, browsers generally provide a full-screen mode. After entering the full-screen mode, the browser page display window will be enlarged to be consistent with the display screen, which can ensure that the page display area is maximized. However, after entering the full-screen mode, if the user does not exit the full-screen mode, it is difficult to respond to other applications (such as chat applications or office applications), and it is also difficult to switch to other applications, causing inconvenience to the user.

[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present invention is to provide a display adjustment method, device, equipment and storage medium, aiming to solve the technical problem that the prior art is difficult to interact with other applications and inconvenience for users when controlling the browser to enter full-screen display mode to ensure the maximum page display area.

[0005] To achieve the above object, the present invention provides a display adjustment method, which comprises the following steps:

[0006] Divide the elements displayed in the browser into elements to be hidden and elements to be displayed;

[0007] Adjust the size of the element to be displayed according to the window display specification of the browser to obtain a stretched display element;

[0008] The element to be hidden is removed from the browser, and the stretched display element is displayed in the browser.

[0009] Optionally, the step of adjusting the size of the element to be displayed according to the window display specification of the browser to obtain the stretched display element includes:

[0010] Obtaining the element type corresponding to the element to be displayed;

[0011] Adjusting the layout of the element to be displayed based on the element type and the preset layout strategy to obtain an adjusted display element;

[0012] The size of the adjusted display element is adjusted according to the window display specification of the browser to obtain a stretched display element.

[0013] Optionally, the step of adjusting the size of the adjusted display element according to the window display specification of the browser to obtain the stretched display element includes:

[0014] Obtaining the display area position corresponding to the element to be displayed;

[0015] Locate the window position corresponding to the element to be displayed according to the position of the display area, and determine the size adjustment direction;

[0016] The size of the adjustment display element is adjusted according to the size adjustment direction and the window display specification of the browser to obtain a stretch display element.

[0017] Optionally, the step of removing the element to be hidden from the browser includes:

[0018] Obtaining element classification and element information corresponding to the element to be hidden;

[0019] Finding the element hiding strategy corresponding to the element classification;

[0020] The element to be hidden is removed from the browser based on the element hiding strategy and the element information.

[0021] Optionally, the element classification includes browser components;

[0022] The step of removing the element to be hidden from the browser based on the element hiding strategy and the element information includes:

[0023] Determining the element hiding interface according to the element hiding strategy;

[0024] Constructing an element hiding instruction according to the element information;

[0025] The element hiding interface is called according to the element hiding instruction to remove the element to be hidden from the browser.

[0026] Optionally, the element classification includes page elements;

[0027] The step of removing the element to be hidden from the browser based on the element hiding strategy and the element information includes:

[0028] Determine an element hiding script template according to the element hiding strategy;

[0029] Generate an element hiding script according to the element information and the element hiding script template;

[0030] The element hiding script is executed to remove the element to be hidden from the browser.

[0031] Optionally, the step of dividing the elements displayed in the browser into elements to be hidden and elements to be displayed includes:

[0032] Read the elements displayed in the browser and obtain the display element set;

[0033] The element type corresponding to each element in the display element set is matched with a preset hidden element list, and the elements in the display element set are divided into elements to be hidden and elements to be displayed according to the matching result.

[0034] Optionally, before the step of matching the element type corresponding to each element in the display element set with a preset hidden element list and dividing each element in the display element set into elements to be hidden and elements to be displayed according to the matching result, the step further includes:

[0035] Obtaining an initial hidden element list and obtaining a user ID of a currently logged-in user in the browser;

[0036] Searching for an element adjustment record corresponding to the user identifier;

[0037] A preset hidden element list is constructed according to the element adjustment record and the initial hidden element list.

[0038] Optionally, before the step of dividing the elements displayed in the browser into elements to be hidden and elements to be displayed, the step further includes:

[0039] Real-time monitoring of user operations;

[0040] If the user operation triggers the large display area mode, the elements displayed in the browser are divided into elements to be hidden and elements to be displayed.

[0041] Optionally, the user operation triggering the large display area mode includes at least one of the following situations:

[0042] The user operates to trigger the function start button corresponding to the large display area mode;

[0043] The operation keys corresponding to user operations are consistent with the shortcut keys corresponding to the large display area mode;

[0044] The sliding track corresponding to the user operation is consistent with the trigger track corresponding to the large display area mode.

[0045] Optionally, after the step of removing the element to be hidden from the browser and displaying the stretched display element in the browser, the method further includes:

[0046] Cache the elements to be hidden and the elements to be displayed;

[0047] When exiting the large display area mode is detected, the to-be-hidden element and the to-be-displayed element are read from the cache;

[0048] The stretched display element being displayed is removed from the browser, and the element to be hidden and the element to be displayed are displayed in the browser.

[0049] In addition, to achieve the above object, the present invention further provides a display adjustment device, which includes the following modules:

[0050] A division module, used for dividing the elements displayed in the browser into elements to be hidden and elements to be displayed;

[0051] An adjustment module, used for adjusting the size of the element to be displayed according to the window display specification of the browser to obtain a stretched display element;

[0052] The display module is used to remove the element to be hidden from the browser and display the stretched display element in the browser.

[0053] Optionally, the adjustment module is further used to obtain the element type corresponding to the element to be displayed; adjust the layout of the element to be displayed based on the element type and a preset layout strategy to obtain an adjusted display element; adjust the size of the adjusted display element according to the window display specifications of the browser to obtain a stretched display element.

[0054] Optionally, the adjustment module is also used to obtain the display area position corresponding to the element to be displayed; locate the window position corresponding to the element to be displayed according to the display area position; determine the size adjustment direction according to the window position; adjust the size of the adjustment display element according to the size adjustment direction and the window display specifications of the browser to obtain a stretched display element.

[0055] Optionally, the display module is further used to obtain the element classification and element information corresponding to the element to be hidden; search for the element hiding strategy corresponding to the element classification; and remove the element to be hidden from the browser based on the element hiding strategy and the element information.

[0056] Optionally, the element classification includes browser components;

[0057] The display module is further used to determine the element hiding interface according to the element hiding strategy; construct an element hiding instruction according to the element information; and call the element hiding interface according to the element hiding instruction to remove the element to be hidden from the browser.

[0058] Optionally, the element classification includes page elements;

[0059] The display module is further used to determine an element hiding script template according to the element hiding strategy; generate an element hiding script according to the element information and the element hiding script template; and execute the element hiding script to remove the element to be hidden from the browser.

[0060] Optionally, the elements displayed in the browser are read to obtain a display element set; the element type corresponding to each element in the display element set is matched with a preset hidden element list, and the elements in the display element set are divided into elements to be hidden and elements to be displayed according to the matching result.

[0061] In addition, to achieve the above-mentioned purpose, the present invention also proposes a display adjustment device, which includes: a processor, a memory, and a display adjustment program stored in the memory and executable on the processor, and the display adjustment program implements the steps of the display adjustment method described above when executed by the processor.

[0062] In addition, to achieve the above-mentioned purpose, the present invention further proposes a computer-readable storage medium, on which a display adjustment program is stored, and when the display adjustment program is executed, the steps of the display adjustment method described above are implemented.

[0063] The present invention divides the elements displayed in the browser into elements to be hidden and elements to be displayed; adjusts the size of the elements to be displayed according to the window display specifications of the browser to obtain stretched display elements; removes the elements to be hidden from the browser, and displays the stretched display elements in the browser. Since the elements in the browser can be divided, a part of them is removed from the browser as the elements to be hidden, and the size of the other part as the elements to be displayed is adjusted according to the window display specifications of the browser, so that it can occupy the entire display window of the browser, ensuring that the same large display area effect as the full-screen mode of the browser is achieved without affecting the interaction with other applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 It is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention;

[0065] Figure 2 It is a flow chart of a first embodiment of a display adjustment method of the present invention;

[0066] Figure 3 A schematic diagram of upper and lower layout display adjustment according to an embodiment of a display adjustment method of the present invention;

[0067] Figure 4 A schematic diagram of left-right layout display adjustment according to an embodiment of a display adjustment method of the present invention;

[0068] Figure 5 It is a flow chart of a second embodiment of a display adjustment method of the present invention;

[0069] Figure 6 It is a flow chart of a second embodiment of a display adjustment method of the present invention;

[0070] Figure 7 It is a structural block diagram of the first embodiment of the display adjustment device of the present invention.

[0071] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0072] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0073] Reference Figure 1 , Figure 1 It is a schematic diagram of the structure of a display adjustment device in a hardware operating environment involved in an embodiment of the present invention.

[0074] like Figure 1 As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0075] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0076] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a display adjustment program.

[0077] exist Figure 1 In the electronic device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in a display adjustment device, and the electronic device calls the display adjustment program stored in the memory 1005 through the processor 1001, and executes the display adjustment method provided by an embodiment of the present invention.

[0078] The embodiment of the present invention provides a display adjustment method, referring to Figure 2 , Figure 2 FIG. 4 is a flow chart of a first embodiment of a display adjustment method according to the present invention.

[0079] In this embodiment, the display adjustment method includes the following steps:

[0080] Step S10: Divide the elements displayed in the browser into elements to be hidden and elements to be displayed.

[0081] It should be noted that the executor of this embodiment can be the display adjustment device, and the display adjustment device can be an electronic device such as a personal computer, a smart phone, a tablet computer, or other other devices with a display screen that can achieve the same or similar functions. This embodiment is not limited to this. In this embodiment and the following embodiments, the display adjustment method of the present invention is explained by taking the display adjustment device as an example.

[0082] It should be noted that the elements displayed in the browser may include page elements of the page displayed in the browser (such as page title, page text, page image, etc.) and various browser components (address bar, search bar, favorites, extension tools, etc.).

[0083] In actual use, the elements displayed in the browser are divided into elements to be hidden and elements to be displayed by matching the elements displayed in the browser with a preset hidden element list, dividing the elements that are successfully matched into elements to be hidden, and using the remaining elements as elements to be displayed. The preset hidden element list may store element information or element types of elements to be hidden, and the preset hidden element list may be pre-set by an administrator of the display adjustment device or a device user of the display adjustment device.

[0084] In a specific implementation, the display adjustment method of this embodiment may be executed when the user needs to display content in a large display area. In this case, step S10 of this embodiment may include:

[0085] Real-time monitoring of user operations;

[0086] If the user operation triggers the large display area mode, the elements displayed in the browser are divided into elements to be hidden and elements to be displayed.

[0087] In a specific implementation, the user operation may include at least one of operations such as mouse clicking, key input, and screen sliding.

[0088] If the user operation triggers the large display area mode, it means that the user wants to hide some elements with lower relevance and display the elements that he wants to display in a large display area. At this time, the elements displayed in the browser can be divided into elements to be hidden and elements to be displayed, and subsequent operations can be performed.

[0089] In a specific implementation, at least one of the following situations may be included to determine that the user operation triggers the large display area mode:

[0090] The user operates to trigger the function start button corresponding to the large display area mode;

[0091] The operation keys corresponding to user operations are consistent with the shortcut keys corresponding to the large display area mode;

[0092] The sliding track corresponding to the user operation is consistent with the trigger track corresponding to the large display area mode.

[0093] It should be noted that the function start button, shortcut key position and trigger track corresponding to the large display area mode can be pre-set by the administrator of the display adjustment device.

[0094] For example, a function start button corresponding to the large display area mode is displayed in a floating box or an extended button in the browser. If the user performs an operation and clicks the function start button, it can be determined that the user operation triggers the large display area mode.

[0095] Set the shortcut key corresponding to the large display area mode to "ALT+F10". If the user inputs "ALT+F10" on the keyboard, it can be determined that the user operation triggers the large display area mode.

[0096] The trigger track corresponding to the large display area mode is set to "press with two fingers, slide up and down twice". At this time, if the sliding track of the user operation is "press with two fingers, slide up and down twice", it can be determined that the user operation triggers the large display area mode.

[0097] Step S20: adjusting the size of the element to be displayed according to the window display specification of the browser to obtain a stretched display element.

[0098] It should be noted that the size of the display element is adjusted according to the window display specifications of the browser. To obtain the stretched display element, the size of the display element can be adjusted by stretching or other means, and its display specifications are adjusted to be consistent with the window display specifications, and the size-adjusted element to be displayed is used as the stretched display element.

[0099] Furthermore, after the user performs settings, the elements to be displayed may include not only page elements but also certain browser components (e.g., the elements to be displayed include not only page elements but also favorites). In order to ensure a better display effect in this case, step S20 in this embodiment may include:

[0100] Obtaining the element type corresponding to the element to be displayed;

[0101] Adjusting the layout of the element to be displayed based on the element type and the preset layout strategy to obtain an adjusted display element;

[0102] The size of the adjusted display element is adjusted according to the window display specification of the browser to obtain a stretched display element.

[0103] It should be noted that element types can be divided into page title, page body, page image, address bar, search bar, favorites, extension tools, etc. according to the different data displayed by the elements. Of course, more types can be set according to actual needs.

[0104] In actual use, the preset layout strategy may include layout templates corresponding to different combinations of element types. The layout of the to-be-displayed element is adjusted based on the element type and the preset layout strategy, and the adjusted display element is obtained by matching the element type with the preset layout strategy, determining the target layout template, and then adjusting the layout of the to-be-displayed element according to the target layout template, and using the adjusted to-be-displayed element as the adjusted display element.

[0105] In a specific implementation, the display element is resized according to the window display specifications of the browser. To obtain the stretched display element, the display element is resized by stretching or other adjustment methods, its display specifications are adjusted to be consistent with the window display specifications, and the resized display element is used as the stretched display element.

[0106] Furthermore, in order to improve the execution speed of resizing, the step of resizing the adjusted display element according to the window display specification of the browser to obtain the stretched display element in this embodiment may include:

[0107] Obtaining the display area position corresponding to the element to be displayed;

[0108] Locate the window position corresponding to the element to be displayed according to the position of the display area;

[0109] determining a size adjustment direction according to the window orientation;

[0110] The size of the adjustment display element is adjusted according to the size adjustment direction and the window display specification of the browser to obtain a stretch display element.

[0111] It should be noted that, depending on the different layouts of the elements to be displayed and the elements to be hidden, there will be certain differences in the adjustment direction when adjusting the size. If the display device uses an adaptive adjustment method to adjust the size, it will try to adjust from multiple directions, and compare after the adjustment to determine whether it meets the requirements. The overall execution efficiency may be low. At this time, in order to speed up the efficiency, you can first determine the window position of the element to be displayed in the browser display window according to the display area position corresponding to the element to be displayed, and then determine the size adjustment direction according to the window position. After that, you can adjust the size of the display element according to the size adjustment method and the browser's window display specifications to reduce the number of adjustment attempts and speed up the size adjustment.

[0112] For example: assuming that the window position corresponding to the element to be displayed can be determined to be the lower right corner according to the display area position corresponding to the element to be displayed, then the size adjustment direction can be the upper left corner.

[0113] Step S30: removing the element to be hidden from the browser, and displaying the stretched display element in the browser.

[0114] It should be noted that removing the element to be hidden from the browser and displaying the stretched display element in the browser may be removing the element to be hidden from the display window of the browser and then displaying the stretched display element in the display window of the browser.

[0115] It can be understood that by removing the elements to be hidden from the browser and then displaying the stretched display elements in the browser with display specifications adjusted to be consistent with the window display specifications of the browser, it can be ensured that the display effect consistent with the full-screen mode can be achieved without entering the full-screen mode, so that the user hopes that the display area of ​​the displayed elements (such as only displaying the page) will be as large as possible, thereby achieving an effect consistent with the full-screen mode of the browser. At this time, since the full-screen mode has not been entered, it will not affect the interaction between the user and other applications.

[0116] In a specific implementation, in order to ensure that the display mode before the large display area mode can be switched at any time when the user needs it, after step S30 in this embodiment, the following may also be included:

[0117] Cache the elements to be hidden and the elements to be displayed;

[0118] When exiting the large display area mode is detected, the to-be-hidden element and the to-be-displayed element are read from the cache;

[0119] The stretched display element being displayed is removed from the browser, and the element to be hidden and the element to be displayed are displayed in the browser.

[0120] It can be understood that since the elements to be hidden and the elements to be displayed are cached, when it is detected that the user operates the display adjustment device and exits the large display area mode, the elements to be hidden and the elements to be displayed can be quickly read from the cache, the displayed stretched display elements can be removed from the browser, and the elements to be hidden and the elements to be displayed can be displayed in the browser, ensuring that the display content of the browser is quickly adjusted according to the actual needs of the user to improve the user's actual usage experience.

[0121] When the elements to be hidden and the elements to be displayed are displayed in the browser, the elements to be displayed may be updated according to the page content and displayed after the update to ensure that the displayed data is the latest data.

[0122] For ease of understanding, now combined Figure 3 and Figure 4 This is for illustration only, but not for limitation. Figure 3 This is a schematic diagram of the upper and lower layout display adjustment of this embodiment. Figure 4 This is a schematic diagram of the left and right layout display adjustment of this embodiment.

[0123] like Figure 3 As shown in a, if the user's browser displays in a top-down structure, the elements in the browser's display interface include: address bar, favorites and page elements. At this time, when dividing, the favorites are the address bar and the favorites are the elements to be hidden, and the page elements are the elements to be displayed. At this time, the address bar and favorites can be hidden and removed from the browser's display window, and then the page elements can be stretched and displayed (as shown in FIG. Figure 3 b).

[0124] like Figure 4 As shown in a, if the user's browser is displayed in a left-right structure, the elements in the browser's display interface include: address bar, favorites and page elements. At this time, when dividing, the favorites are the address bar and the favorites are the elements to be hidden, and the page elements are the elements to be displayed. At this time, the address bar and favorites can be hidden and removed from the browser's display window, and then the page elements can be stretched and displayed (as shown in FIG. Figure 4 b).

[0125] This embodiment divides the elements displayed in the browser into elements to be hidden and elements to be displayed; adjusts the size of the elements to be displayed according to the window display specifications of the browser to obtain stretched display elements; removes the elements to be hidden from the browser, and displays the stretched display elements in the browser. Since the elements in the browser can be divided, a part of them can be removed from the browser as elements to be hidden, and the size of the other part as elements to be displayed can be adjusted according to the window display specifications of the browser so that it can occupy the entire display window of the browser, ensuring that the same large display area effect as the full-screen mode of the browser is achieved without affecting the interaction with other applications.

[0126] refer to Figure 5 , Figure 5 FIG. 4 is a flow chart of a second embodiment of a display adjustment method according to the present invention.

[0127] Based on the above first embodiment, step S30 of the display adjustment method in this embodiment includes:

[0128] Step S301: Obtaining the element classification and element information corresponding to the element to be hidden.

[0129] It should be noted that the element classification can be divided into two categories, browser components and page elements, according to the different belonging of the elements. Of course, more element classifications can be set according to actual needs, and this embodiment does not limit this. The element information can include the element's identification, name, location and other information.

[0130] Step S302: searching for the element hiding strategy corresponding to the element classification.

[0131] In actual use, searching for the element hiding strategy corresponding to the element classification may be searching for the element hiding strategy corresponding to the element classification in a preset strategy library, wherein the preset strategy library may be a database pre-set by an administrator of the display adjustment device for storing element hiding strategies.

[0132] Step S303: removing the element to be hidden from the browser based on the element hiding strategy and the element information.

[0133] Step S304: Displaying the stretched display element in the browser.

[0134] It should be noted that, removing the element to be hidden from the browser based on the element hiding strategy and the element information may be to determine the hiding method of the element to be hidden based on the element hiding strategy, and hiding the element to be hidden according to the element information and the hiding method to remove it from the display window of the browser. Displaying the stretched display element in the browser may be to display the stretched display element in the display window of the browser.

[0135] In a specific implementation, if the element corresponding to the to-be-hidden element is classified as a browser component, it means that the to-be-hidden element is a related component provided by the browser, and the display related to the browser component is generally controlled by the browser. In this case, step S303 of this embodiment may include:

[0136] Determining the element hiding interface according to the element hiding strategy;

[0137] Constructing an element hiding instruction according to the element information;

[0138] The element hiding interface is called according to the element hiding instruction to remove the element to be hidden from the browser.

[0139] It should be noted that the element hiding interface may be a control interface provided by the browser to hide the browser component. Generally, different browser components may correspond to different element hiding interfaces. In this case, determining the element hiding interface according to the element hiding strategy may be to match the element type of the element to be hidden with the element hiding strategy to determine the element hiding interface.

[0140] In actual use, constructing an element hiding instruction according to element information may be to determine an instruction template according to an element calling rule of an element hiding interface, fill the element information into the instruction template, and thus construct an element hiding instruction.

[0141] In a specific implementation, an element hiding instruction is sent to an element hiding interface, and a function of the element hiding interface is called, and the browser will hide the element to be hidden and no longer display it, thereby removing the element to be hidden from the display window of the browser.

[0142] If the element corresponding to the to-be-hidden element is classified as a page element, it means that the display of the element is controlled by the attributes in the page. In this case, step S303 of this embodiment may include:

[0143] Determine an element hiding script template according to the element hiding strategy;

[0144] Generate an element hiding script according to the element information and the element hiding script template;

[0145] The element hiding script is executed to remove the element to be hidden from the browser.

[0146] It should be noted that the element hiding script template may be pre-set by the administrator of the display adjustment device, and is used to modify the element attributes in the page to be hidden. Different types of elements in the page may correspond to different element hiding script templates. At this time, determining the element hiding script template according to the element hiding strategy may be to match the element type of the element to be hidden with the element hiding strategy to determine the corresponding element hiding script template.

[0147] In a specific implementation, generating the element hiding script according to the element information and the element hiding script template may be to replace the placeholder in the element hiding script template according to the element information, thereby obtaining the element hiding script.

[0148] In actual use, when the element hiding script is executed, the display adjustment device will run the script instructions in the element hiding script to modify the element attribute of the element to be hidden to hidden so that it is no longer displayed, thereby removing the element to be hidden from the display window of the browser.

[0149] This embodiment obtains the element classification and element information corresponding to the element to be hidden; searches for the element hiding strategy corresponding to the element classification; removes the element to be hidden from the browser based on the element hiding strategy and the element information; and displays the stretched display element in the browser. When removing the element to be hidden from the display window of the browser, different element hiding strategies are selected according to the element classification of the element to be hidden, and further matching is performed according to the element type and the element hiding strategy, and a specific hiding method is determined to perform a hiding operation on the element to be hidden, so as to ensure that it can adapt to various types of elements.

[0150] refer to Figure 6 , Figure 6 FIG. 4 is a flow chart of a third embodiment of a display adjustment method according to the present invention.

[0151] Based on the above first embodiment, the step S10 of the display adjustment method in this embodiment includes:

[0152] Step S101: Read the elements displayed in the browser to obtain a display element set.

[0153] It should be noted that reading the elements displayed in the browser to obtain the display element set may be reading the elements currently displayed in the display window of the browser and constructing a set according to the read elements, thereby obtaining the display element set.

[0154] Step S102: matching the element type corresponding to each element in the display element set with a preset hidden element list, and dividing each element in the display element set into elements to be hidden and elements to be displayed according to the matching result.

[0155] In actual use, the element type corresponding to each element in the display element set is matched with the preset hidden element list, and the elements in the display element set are divided into elements to be hidden and elements to be displayed according to the matching results. The element type corresponding to each element in the display element set is matched with the preset hidden element list, and the elements whose corresponding element types in the display element set are in the preset hidden element list are divided into elements to be hidden, and the remaining elements are divided into elements to be displayed.

[0156] Furthermore, in order to ensure that a smaller storage space can be used to store element hiding methods of multiple users at the same time, the following may be further included before step S102 in this embodiment:

[0157] Obtaining an initial hidden element list and obtaining a user ID of a currently logged-in user in the browser;

[0158] Searching for an element adjustment record corresponding to the user identifier;

[0159] A preset hidden element list is constructed according to the element adjustment record and the initial hidden element list.

[0160] It should be noted that the initial hidden element list may be a data table pre-set by the administrator of the display adjustment device according to actual needs to store the element types of the elements to be hidden. The user ID of the currently logged in user in the browser may be the unique ID of the user currently logged in and using the browser.

[0161] In actual use, constructing a preset hidden element list based on element adjustment records and an initial hidden element list can be by first copying the initial hidden element list to obtain a copied element list, and then adding, deleting, and other operations on the elements in the copied element list according to the element adjustment records to generate a preset hidden element list.

[0162] It is understandable that, since a complete preset hidden element list is not stored for each user, but an initial hidden element list is set and the element adjustment record of each user is stored, when the user uses the browser, the preset hidden element list corresponding to the user is constructed based on the initial hidden element list and the element adjustment record. While realizing personalized settings, it also reduces the space occupied by the personalized settings corresponding to each user, ensuring that a smaller storage space can be used to store the personalized element hiding methods of multiple users at the same time.

[0163] This embodiment obtains a display element set by reading the elements displayed in the browser; matches the element type corresponding to each element in the display element set with a preset hidden element list, and divides each element in the display element set into elements to be hidden and elements to be displayed according to the matching result. Since all elements displayed in the browser are read first, and a set is constructed based on the read elements, and each element in the set is matched with the preset hidden element list, it is ensured that no omission occurs when the browser is adjusted for display, thereby improving the reliability of the display adjustment method of this embodiment.

[0164] In addition, an embodiment of the present invention further provides a storage medium, on which a display adjustment program is stored. When the display adjustment program is executed by a processor, the steps of the display adjustment method described above are implemented.

[0165] Reference Figure 7 , Figure 7 It is a structural block diagram of the first embodiment of the display adjustment device of the present invention.

[0166] like Figure 7 As shown, the display adjustment device provided in the embodiment of the present invention includes:

[0167] A division module 10, used to divide the elements displayed in the browser into elements to be hidden and elements to be displayed;

[0168] An adjustment module 20, configured to adjust the size of the element to be displayed according to the window display specification of the browser to obtain a stretched display element;

[0169] The display module 30 is used to remove the element to be hidden from the browser and display the stretched display element in the browser.

[0170] This embodiment divides the elements displayed in the browser into elements to be hidden and elements to be displayed; adjusts the size of the elements to be displayed according to the window display specifications of the browser to obtain stretched display elements; removes the elements to be hidden from the browser, and displays the stretched display elements in the browser. Since the elements in the browser can be divided, a part of them can be removed from the browser as elements to be hidden, and the size of the other part as elements to be displayed can be adjusted according to the window display specifications of the browser so that it can occupy the entire display window of the browser, ensuring that the same large display area effect as the full-screen mode of the browser is achieved without affecting the interaction with other applications.

[0171] Furthermore, the adjustment module 20 is also used to obtain the element type corresponding to the element to be displayed; adjust the layout of the element to be displayed based on the element type and the preset typesetting strategy to obtain the adjusted display element; adjust the size of the adjusted display element according to the window display specifications of the browser to obtain the stretched display element.

[0172] Furthermore, the adjustment module 20 is also used to obtain the display area position corresponding to the element to be displayed; locate the window position corresponding to the element to be displayed according to the display area position; determine the size adjustment direction according to the window position; adjust the size of the adjustment display element according to the size adjustment direction and the window display specifications of the browser to obtain a stretched display element.

[0173] Furthermore, the display module 30 is also used to obtain the element classification and element information corresponding to the element to be hidden; find the element hiding strategy corresponding to the element classification; and remove the element to be hidden from the browser based on the element hiding strategy and the element information.

[0174] Further, the element classification includes browser components;

[0175] The display module 30 is further used to determine the element hiding interface according to the element hiding strategy; construct an element hiding instruction according to the element information; and call the element hiding interface according to the element hiding instruction to remove the element to be hidden from the browser.

[0176] Further, the element classification includes page elements;

[0177] The display module 30 is further used to determine an element hiding script template according to the element hiding strategy; generate an element hiding script according to the element information and the element hiding script template; and execute the element hiding script to remove the element to be hidden from the browser.

[0178] Furthermore, the division module 10 is also used to read the elements displayed in the browser to obtain a display element set; match the element type corresponding to each element in the display element set with a preset hidden element list, and divide each element in the display element set into elements to be hidden and elements to be displayed according to the matching results.

[0179] Furthermore, the division module 10 is also used to obtain an initial hidden element list and a user ID of a currently logged-in user in the browser; search for an element adjustment record corresponding to the user ID; and construct a preset hidden element list based on the element adjustment record and the initial hidden element list.

[0180] Furthermore, the division module 10 is also used to monitor user operations in real time; if the user operation triggers the large display area mode, the elements displayed in the browser are divided into elements to be hidden and elements to be displayed.

[0181] Furthermore, the user operation triggering the large display area mode includes at least one of the following situations:

[0182] The user operates to trigger the function start button corresponding to the large display area mode;

[0183] The operation keys corresponding to user operations are consistent with the shortcut keys corresponding to the large display area mode;

[0184] The sliding track corresponding to the user operation is consistent with the trigger track corresponding to the large display area mode.

[0185] Furthermore, the display module 30 is also used to cache the elements to be hidden and the elements to be displayed; when it is detected that the large display area mode is exited, the elements to be hidden and the elements to be displayed are read from the cache; the displayed stretched display elements are removed from the browser, and the elements to be hidden and the elements to be displayed are displayed in the browser.

[0186] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0187] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0188] In addition, for technical details that are not described in detail in this embodiment, reference can be made to the display adjustment method provided in any embodiment of the present invention, and will not be repeated here.

[0189] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0190] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0191] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0192] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

[0193] The present application discloses A1, a display adjustment method, the display adjustment method comprising the following steps:

[0194] Divide the elements displayed in the browser into elements to be hidden and elements to be displayed;

[0195] Adjust the size of the element to be displayed according to the window display specification of the browser to obtain a stretched display element;

[0196] The element to be hidden is removed from the browser, and the stretched display element is displayed in the browser.

[0197] A2. The display adjustment method as described in A1, wherein the step of adjusting the size of the element to be displayed according to the window display specification of the browser to obtain the stretched display element comprises:

[0198] Obtaining the element type corresponding to the element to be displayed;

[0199] Adjusting the layout of the element to be displayed based on the element type and the preset layout strategy to obtain an adjusted display element;

[0200] The size of the adjusted display element is adjusted according to the window display specification of the browser to obtain a stretched display element.

[0201] A3. The display adjustment method as described in A2, wherein the step of adjusting the size of the adjustment display element according to the window display specification of the browser to obtain the stretch display element comprises:

[0202] Obtaining the display area position corresponding to the element to be displayed;

[0203] Locate the window position corresponding to the element to be displayed according to the position of the display area;

[0204] determining a size adjustment direction according to the window orientation;

[0205] The size of the adjustment display element is adjusted according to the size adjustment direction and the window display specification of the browser to obtain a stretch display element.

[0206] A4. In the display adjustment method described in A1, the step of removing the element to be hidden from the browser comprises:

[0207] Obtaining element classification and element information corresponding to the element to be hidden;

[0208] Finding an element hiding strategy corresponding to the element classification;

[0209] The element to be hidden is removed from the browser based on the element hiding strategy and the element information.

[0210] A5. The display adjustment method as described in A4, wherein the element classification includes a browser component;

[0211] The step of removing the element to be hidden from the browser based on the element hiding strategy and the element information includes:

[0212] Determining the element hiding interface according to the element hiding strategy;

[0213] Constructing an element hiding instruction according to the element information;

[0214] The element hiding interface is called according to the element hiding instruction to remove the element to be hidden from the browser.

[0215] A6. The display adjustment method as described in A4, wherein the element classification includes page elements;

[0216] The step of removing the element to be hidden from the browser based on the element hiding strategy and the element information includes:

[0217] Determine an element hiding script template according to the element hiding strategy;

[0218] Generate an element hiding script according to the element information and the element hiding script template;

[0219] The element hiding script is executed to remove the element to be hidden from the browser.

[0220] A7. In the display adjustment method described in A1, the step of dividing the elements displayed in the browser into elements to be hidden and elements to be displayed comprises:

[0221] Read the elements displayed in the browser and obtain the display element set;

[0222] The element type corresponding to each element in the display element set is matched with a preset hidden element list, and the elements in the display element set are divided into elements to be hidden and elements to be displayed according to the matching result.

[0223] A8. The display adjustment method as described in A7, before the step of matching the element type corresponding to each element in the display element set with the preset hidden element list, and dividing each element in the display element set into elements to be hidden and elements to be displayed according to the matching result, further comprising:

[0224] Obtaining an initial hidden element list and obtaining a user ID of a currently logged-in user in the browser;

[0225] Searching for an element adjustment record corresponding to the user identifier;

[0226] A preset hidden element list is constructed according to the element adjustment record and the initial hidden element list.

[0227] A9. The display adjustment method as described in A1, before the step of dividing the elements displayed in the browser into elements to be hidden and elements to be displayed, further comprising:

[0228] Real-time monitoring of user operations;

[0229] If the user operation triggers the large display area mode, the elements displayed in the browser are divided into elements to be hidden and elements to be displayed.

[0230] A10. In the display adjustment method described in A9, the user operation triggering the large display area mode includes at least one of the following situations:

[0231] The user operates to trigger the function start button corresponding to the large display area mode;

[0232] The operation keys corresponding to user operations are consistent with the shortcut keys corresponding to the large display area mode;

[0233] The sliding track corresponding to the user operation is consistent with the trigger track corresponding to the large display area mode.

[0234] A11. The display adjustment method as described in any one of A1 to A10, further comprising, after the step of removing the element to be hidden from the browser and displaying the stretched display element in the browser:

[0235] Cache the elements to be hidden and the elements to be displayed;

[0236] When exiting the large display area mode is detected, the to-be-hidden element and the to-be-displayed element are read from the cache;

[0237] The stretched display element being displayed is removed from the browser, and the element to be hidden and the element to be displayed are displayed in the browser.

[0238] The present application also discloses B12, a display adjustment device, the display adjustment device comprising the following modules:

[0239] A division module, used to divide the elements displayed in the browser into elements to be hidden and elements to be displayed;

[0240] An adjustment module, used for adjusting the size of the element to be displayed according to the window display specification of the browser to obtain a stretched display element;

[0241] The display module is used to remove the element to be hidden from the browser and display the stretched display element in the browser.

[0242] B13. In the display adjustment device as described in B12, the adjustment module is further used to obtain the element type corresponding to the element to be displayed; adjust the layout of the element to be displayed based on the element type and a preset typesetting strategy to obtain an adjusted display element; and adjust the size of the adjusted display element according to the window display specifications of the browser to obtain a stretched display element.

[0243] B14. In the display adjustment device as described in B13, the adjustment module is further used to obtain the display area position corresponding to the element to be displayed; locate the window orientation corresponding to the element to be displayed according to the display area position, and determine the size adjustment direction; adjust the size of the adjustment display element according to the size adjustment direction and the window display specifications of the browser to obtain a stretched display element.

[0244] B15. In the display adjustment device as described in B12, the display module is further used to obtain the element classification and element information corresponding to the element to be hidden; search for the element hiding strategy corresponding to the element classification; and remove the element to be hidden from the browser based on the element hiding strategy and the element information.

[0245] B16. The display adjustment device as described in B15, wherein the element classification includes a browser component;

[0246] The display module is further used to determine the element hiding interface according to the element hiding strategy; construct an element hiding instruction according to the element information; and call the element hiding interface according to the element hiding instruction to remove the element to be hidden from the browser.

[0247] B17. The display adjustment device as described in B15, wherein the element classification includes page elements;

[0248] The display module is further used to determine an element hiding script template according to the element hiding strategy; generate an element hiding script according to the element information and the element hiding script template; and execute the element hiding script to remove the element to be hidden from the browser.

[0249] B18. A display adjustment device as described in B12, wherein the elements displayed in the browser are read to obtain a display element set; the element type corresponding to each element in the display element set is matched with a preset hidden element list, and the elements in the display element set are divided into elements to be hidden and elements to be displayed according to the matching result.

[0250] The present application also discloses C19, a display adjustment device, which includes: a processor, a memory, and a display adjustment program stored in the memory and executable on the processor, wherein the display adjustment program implements the steps of the display adjustment method described above when executed by the processor.

[0251] The present application also discloses D20, a computer-readable storage medium, on which a display adjustment program is stored, and when the display adjustment program is executed, the steps of the display adjustment method described above are implemented.

Claims

1. A display adjustment method, characterized in that: The display adjustment method comprises the following steps: Divide the elements displayed in the browser into elements to be hidden and elements to be displayed; Adjust the size of the element to be displayed according to the window display specification of the browser to obtain a stretched display element; The element to be hidden is removed from the browser, and the stretched display element is displayed in the browser.

2. The display adjustment method according to claim 1, wherein: The step of adjusting the size of the element to be displayed according to the window display specification of the browser to obtain the stretched display element comprises: Obtaining the element type corresponding to the element to be displayed; Adjusting the layout of the element to be displayed based on the element type and the preset layout strategy to obtain an adjusted display element; The size of the adjusted display element is adjusted according to the window display specification of the browser to obtain a stretched display element.

3. The display adjustment method according to claim 2, wherein: The step of adjusting the size of the adjusted display element according to the window display specification of the browser to obtain the stretched display element comprises: Obtaining the display area position corresponding to the element to be displayed; Locate the window position corresponding to the element to be displayed according to the position of the display area; determining a size adjustment direction according to the window orientation; The size of the adjustment display element is adjusted according to the size adjustment direction and the window display specification of the browser to obtain a stretch display element.

4. The display adjustment method according to claim 1, wherein: The step of removing the element to be hidden from the browser comprises: Obtaining element classification and element information corresponding to the element to be hidden; Finding the element hiding strategy corresponding to the element classification; The element to be hidden is removed from the browser based on the element hiding strategy and the element information.

5. The display adjustment method according to claim 4, wherein: The element classification includes browser components; The step of removing the element to be hidden from the browser based on the element hiding strategy and the element information includes: Determining the element hiding interface according to the element hiding strategy; Constructing an element hiding instruction according to the element information; The element hiding interface is called according to the element hiding instruction to remove the element to be hidden from the browser.

6. The display adjustment method according to claim 4, wherein: The element classification includes page elements; The step of removing the element to be hidden from the browser based on the element hiding strategy and the element information includes: Determine an element hiding script template according to the element hiding strategy; Generate an element hiding script according to the element information and the element hiding script template; The element hiding script is executed to remove the element to be hidden from the browser.

7. The display adjustment method according to claim 1, wherein: The step of dividing the elements displayed in the browser into elements to be hidden and elements to be displayed includes: Read the elements displayed in the browser and obtain the display element set; The element type corresponding to each element in the display element set is matched with a preset hidden element list, and the elements in the display element set are divided into elements to be hidden and elements to be displayed according to the matching result.

8. A display adjustment device, characterized in that: The display adjustment device comprises the following modules: A division module, used for dividing the elements displayed in the browser into elements to be hidden and elements to be displayed; An adjustment module, used for adjusting the size of the element to be displayed according to the window display specification of the browser to obtain a stretched display element; The display module is used to remove the element to be hidden from the browser and display the stretched display element in the browser.

9. A display adjustment device, characterized in that: The display adjustment device comprises: a processor, a memory, and a display adjustment program stored in the memory and executable on the processor, wherein the display adjustment program implements the steps of the display adjustment method according to any one of claims 1 to 7 when executed by the processor.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a display adjustment program, and when the display adjustment program is executed, the steps of the display adjustment method according to any one of claims 1 to 7 are implemented.