A web page display method, device, terminal device and medium
By automatically changing the properties of web page tags, it solves the problem that users need to click the button to view more content, realizing immersive reading, improving reading experience and brand effect.
Patent Information
- Application Number
- CN202110110451.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-27
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2041-07-08
AI Technical Summary
When users browse web pages, they need to click on buttons to see more content, resulting in interruption of reading experience and inability to immerse themselves in reading.
By obtaining the tag characteristics and tag attribute status of the web page, automatically change the tag attributes to display hidden content, providing an immersive reading experience.
The hidden content of the web page can be automatically displayed without the user clicking the button, improving the user's reading experience and enhancing the brand effect of terminal devices.
Smart Images

Figure CN112818271B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network technologies, and in particular, to a web page display method, apparatus, terminal device, and medium. Background Art
[0002] Currently, some websites set display restrictions on the content in web pages. When a user accesses a web page using a browser on a terminal device, only partial content of the text displayed on the web page can be seen. It is necessary to click the button labeled "Show More Content" on the web page to view more content in the web page. This causes the user to need to click the button at least once to read all the content in the web page when browsing the text in the web page, and in some cases, continuously click the button to be able to view all the content. The user is continuously interrupted during the reading process and cannot immerse in the reading, which affects the user's reading experience. Summary of the Invention
[0003] To overcome the problems existing in the related art, the present disclosure provides a web page display method, apparatus, terminal device, and medium.
[0004] According to the first aspect of the embodiments of the present disclosure, a web page display method is provided, which is applied to a terminal device. The method includes:
[0005] Obtain the label feature of the currently displayed content on the web page and the current state of the label attribute of the label feature;
[0006] When the current state of the label attribute of the label feature represents a hidden state, determine that there is hidden content belonging to the label feature;
[0007] Change the current state of the label attribute of the label feature to a target state to display the hidden content.
[0008] Optionally, the determining that there is hidden content belonging to the label feature when the current state of the label attribute of the label feature represents a hidden state includes:
[0009] Determine combined information according to the label feature and the website to which the label feature belongs;
[0010] Judge whether the combined information exists in the pre-stored configuration information;
[0011] If the combined information exists in the configuration information, determine that there is hidden content belonging to the label feature.
[0012] Optionally, the method further includes:
[0013] If the combined information does not exist in the configuration information, change the current state of the label attribute of the label feature to a target state according to the received trigger instruction;
[0014] Store the label feature and the website to which it belongs to form record information.
[0015] Optionally, the method further includes:
[0016] Determine whether the number of occurrences of the record information is greater than or equal to a preset number;
[0017] If so, store the record information into the configuration information.
[0018] Optionally, when the current state of the label attribute of the label feature represents a hidden state, determining that there is hidden content belonging to the label feature includes:
[0019] Determine whether the content belonging to the label feature is preset content, where the preset content includes body content;
[0020] If the content belonging to the label feature is preset content and the current state of the label attribute represents a hidden state, determine that there is hidden content belonging to the label feature.
[0021] Optionally, determining whether the content belonging to the label feature is preset content includes:
[0022] Determine whether the character density value of the content belonging to the label is greater than or equal to a preset density value. If so, the content belonging to the label feature is preset content;
[0023] And / or,
[0024] Determine whether the line block length value of the content belonging to the label is greater than or equal to a preset length value. If so, the content belonging to the label is preset content.
[0025] According to a second aspect of the embodiments of the present disclosure, there is provided a web page display device applied to a terminal device. The device includes:
[0026] An acquisition module, configured to acquire the label feature of the current web page display content and the current state of the label attribute of the label feature;
[0027] A processing module, configured to determine that there is hidden content belonging to the label feature when the current state of the label attribute of the label feature represents a hidden state;
[0028] The processing module is further configured to change the current state of the label attribute of the label feature to a target state to display the hidden content.
[0029] Optionally, the processing module is further configured to:
[0030] Determine combined information according to the label feature and the website to which the label feature belongs;
[0031] Determine whether the combined information exists in the pre-stored configuration information;
[0032] If the combined information exists in the configuration information, determine that there is hidden content in the content belonging to the label feature.
[0033] Optionally, the processing module is further configured to:
[0034] If the combined information does not exist in the configuration information, change the current state of the label attribute of the label feature to a target state according to the received trigger instruction;
[0035] Store the label feature and the website to which it belongs to form record information.
[0036] Optionally, the processing module is further configured to:
[0037] Determine whether the number of occurrences of the record information is greater than or equal to a preset number of times;
[0038] If so, store the record information in the configuration information.
[0039] Optionally, the processing module is further configured to:
[0040] Determine whether the content belonging to the label feature is preset content, where the preset content includes body content;
[0041] If the content belonging to the label feature is preset content and the current state of the label attribute represents a hidden state, determine that there is hidden content in the content belonging to the label feature.
[0042] Optionally, the processing module is further configured to:
[0043] Determine whether the character density value of the content belonging to the label is greater than or equal to a preset density value. If so, the content belonging to the label feature is preset content;
[0044] And / or,
[0045] Determine whether the line block length value of the content belonging to the label is greater than or equal to a preset length value. If so, the content belonging to the label is preset content.
[0046] According to the third aspect of the embodiments of the present disclosure, there is provided a terminal device, including:
[0047] A processor;
[0048] A memory for storing executable instructions of the processor;
[0049] Among them, the processor is configured to execute the web page display method as described in the first aspect.
[0050] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of a terminal device, the terminal device can execute the web page display method as described in the first aspect.
[0051] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: By using the method in the present disclosure, the hidden content in the web page can be automatically displayed, providing an immersive reading experience for users, enhancing the user's web surfing experience, and establishing the brand effect of the terminal device.
[0052] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present invention, and are used together with the specification to explain the principles of the present invention.
[0054] Figure 1 It is a flowchart of a web page display method shown according to an exemplary embodiment.
[0055] Figure 2 It is a flowchart of a web page display method shown according to an exemplary embodiment.
[0056] Figure 3 It is a flowchart of a web page display method shown according to an exemplary embodiment.
[0057] Figure 4 It is a flowchart of a web page display method shown according to an exemplary embodiment.
[0058] Figure 5 It is a block diagram of a web page display device shown according to an exemplary embodiment.
[0059] Figure 6 It is a block diagram of a terminal device shown according to an exemplary embodiment. DETAILED DESCRIPTION
[0060] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. On the contrary, they are only examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0061] At present, some websites set display restrictions on the content in web pages. When users access web pages using a browser on a terminal device, they can only see partial content of the text displayed on the web page. They must click the button labeled "Show More Content" on the web page to view more content in the web page. This causes users to need to click the button at least once to read all the content in the web page when browsing the text in the web page, and some even need to continuously click the button to view all the content. Users are constantly interrupted during the reading process and cannot immerse themselves in reading, which affects the user's reading experience.
[0062] To solve the above problems, the present disclosure provides a web page display method. Using the method in the present disclosure, it is possible to determine whether there is hidden content for the content belonging to the tag feature. If there is hidden content, the current state of the tag attribute of the tag feature can be automatically changed to the target state to display the hidden content in the content, providing an immersive reading experience for users, enhancing the user's web surfing experience, and establishing the brand effect of the terminal device.
[0063] According to an exemplary embodiment, as Figure 1 shown, this embodiment discloses a web page display method applied to a terminal device. The terminal device can be, for example, a mobile phone, a tablet computer, etc. that can perform web page browsing. The web page display method in the present disclosure relates to the field of network technology, such as the W3C and HTML5 network fields.
[0064] W3C generally refers to the World Wide Web Consortium, founded in 1994, which is the most authoritative and influential international neutral technical standards organization in the field of Web technology. So far, W3C has released more than 200 far-reaching Web technology standards and implementation guidelines. The most important work of W3C is to develop Web specifications (referred to as Recommendations), which describe the communication protocols of the Web (such as HTML and XHTML) and other building blocks.
[0065] HTML5 is the cornerstone of open Web standards. It is a complete programming environment suitable for cross-platform applications, video and animation, graphics, styles, typography, and other digital content publishing tools, a wide range of network functions, and so on.
[0066] The method in this embodiment is implemented based on W3C and HTML5. The method in this embodiment includes the following steps:
[0067] S110. Obtain the tag feature of the currently displayed content of the web page and the current state of the tag attribute of this tag feature.
[0068] Generally, a web page will display various types of content, such as text, pictures, videos, etc. Usually, according to the layout and classification of the content, it is generally divided into title content, body content, etc. Such layout and classification are generally referred to as label features. When content with different label features is displayed, the display methods are different. For example, generally to attract users to browse, the title content will be displayed in a more prominent form during the display process and will be presented in a complete display state. Another example is that for certain purposes (such as knowledge payment), sometimes only a part of the body content is displayed, and some parts will be hidden.
[0069] In addition, for content with the label feature of body content, when the current state of the label attribute of this label feature is different, the display method presented on the web page is also different. Taking the label feature of body content as an example, its label attributes can include a hidden state and a display state. If the current state of the label attribute represents the hidden state, then only part of the body content is displayed, and the rest are hidden and not displayed; if the current state of the label attribute represents the display state, the entire body content is displayed.
[0070] In the specific implementation process, the label attribute of the body content can be modified by changing the overflow attribute of the web page. When the overflow attribute is hidden, it means that the body content is hidden and not displayed after exceeding the display area set by the web page, that is, the hidden state. When the height attribute is set to max-height, it means that the display area height of the body content is the maximum height of the display area, that is, the display state.
[0071] Here, it should be noted that when a user browses using a terminal device, according to the settings of each website for the web page, the current state of the label attribute of the body content with the label feature on the web page can be the hidden state or can be set to the display state. When the current state of the label attribute of the body content represents the display state, the user can read the full text without clicking any button and achieve immersive reading. At this time, there is no need to use the method in this embodiment to modify the current state of the label attribute of the body content label feature on the web page. However, when the current state of the label attribute of the body content label feature represents the hidden state, in order to achieve the effect of facilitating the user's immersive reading, the goal is to set the current state of the label attribute to the display state. Therefore, the target state in step S130 below is the display state.
[0072] Of course, it can be understood that in addition to the overflow property mentioned above, other properties can also be changed to achieve the purpose of fully displaying the main content of the web page. For example, other properties involved in the class set can be modified. Moreover, in addition to modifying the label attributes of the label feature of the main content, the label attributes of other label features can also be modified to provide users with an immersive reading experience. Regarding the setting of label attributes, those skilled in the art can make settings according to the specific situation in the implementation process. For example, in the process of modifying label attributes, the modification of the height attribute is also involved. The height attribute is used to set the display area of the content on the display screen. When the height attribute is set to max-height, it means that the display area height of the main content is the maximum height of the display area, that is, the display state.
[0073] S120. Determine that there is hidden content in the content belonging to the label feature according to the current state of the label feature and its label attributes.
[0074] In this step, after determining the label feature and the current state of the label attributes of this label feature, it is possible to determine whether there is hidden content in the current web page.
[0075] In one example, when the current state of the label attributes of the label feature of the main content is the hidden state, it means that some text or some pictures belonging to the main content in the web page are hidden and not displayed. Users cannot see this content, that is, there is hidden content. For the above hidden content, users must pay or click the set button before the above hidden content will be displayed for users to view.
[0076] In another example, when the current state of the label attributes of the label feature of the main content is the display state, it means that all the text or all the pictures belonging to the main content in the web page can be browsed by users without paying or clicking a button, that is, there is no hidden content in the current web page.
[0077] S130. Change the current state of the label attributes of the label feature to the target state to display the hidden content.
[0078] In this step, the target state refers to the display state. As mentioned above, the current state of the label attributes can be the display state or the hidden state. If the current state of the label attributes of the label feature of the main content is the hidden state, in order to provide users with an immersive reading experience, change the current state of the label attributes to the target state, that is, change the label attributes to the display state so that the main content is fully displayed.
[0079] When the current state of the tag attribute of the tag feature of the main text content is the display state, it indicates that all the content in the main text content is presented to the user for browsing, and there is no hidden content in the main text content part. At this time, there is no need to modify the tag attribute of the tag feature of the main text content, or it can be considered that the tag attribute has been modified to the target state.
[0080] The method in this embodiment can, during the user's web browsing process, automatically display the hidden content in the web page main text content part to the user for browsing by modifying the tag attribute of the tag feature of the main text content, bringing the user an immersive browsing reading experience and enhancing the product quality and market competitiveness of the terminal device.
[0081] According to an exemplary embodiment, as Figure 2 shown, the web page display method in this embodiment includes the following steps:
[0082] S210. Obtain the tag feature of the current web page display content and the current state of the tag attribute of this tag feature.
[0083] The implementation manner and explanation of this step are the same as those of step S110 in the above embodiment, and will not be elaborated here.
[0084] S220. Determine the combined information according to the tag feature and the website to which this tag feature belongs.
[0085] In this step, using the website to which the current web page belongs and the tag feature in the page, the combined information can be determined. For example, according to the website address input by the user, the website "Website 1" to which the current page belongs can be determined, and the combined information is determined by combining the website and the tag feature in the web page. The combined information can be, for example, [Website 1, main text content], or [Website 2, title content], etc.
[0086] S230. Determine that there is hidden content in the content belonging to the tag feature according to the pre-stored configuration information, the combined information, and the current state of the tag attribute of the tag feature.
[0087] In this embodiment, in order to avoid misjudgment and improve the accuracy of judging the hidden content in the web page, it is necessary to use the combined information and the configuration information for comparison. Only when the preset conditions are met, will it be determined whether there is hidden content in the web page according to the current state of the tag attribute of the tag feature.
[0088] In this step, when determining whether there is hidden content in the web page, it is necessary to refer to the pre-stored configuration information, the combined information obtained in step S220, and the current state of the tag attribute at the same time.
[0089] In the implementation process of this step, the following manner can be specifically adopted:
[0090] S231. Determine whether the combined information exists in the configuration information. If so, execute step S232;
[0091] If not, execute step S233.
[0092] In this step, only when the current state of the label attribute of the label feature represents a hidden state, is it necessary to change the current state, and switch the current state of the label attribute from the hidden state to the display state. If the current state of the label attribute of the label feature is the display state, then there is no need to change the current state.
[0093] Therefore, only when it is determined that the current state of the label attribute of the label feature represents a hidden state, is it necessary to use the combined information and the configuration information for judgment to determine whether there is hidden content.
[0094] S232. Determine that there is hidden content in the content belonging to the label feature.
[0095] If it is determined that the combined information exists in the configuration information, it means that the combined information already meets the preset requirements, indicating that the user has performed corresponding operations before browsing the current web page, such as clicking a preset button to make the hidden content become visible. Therefore, when it is determined in the above step that the combined information exists in the configuration information, it means that there is hidden content in the label feature of the main text content on this website, and it needs to be changed to the display state for the user to view.
[0096] After this step is completed, directly execute step S240.
[0097] S233. Change the current state of the label attribute of the label feature to the target state according to the received trigger instruction.
[0098] If the judgment result in step S231 is no, it means that the combined information is not stored in the configuration information, indicating that the user has not browsed the web page of this website containing the label feature of the main text content before and performed the operation of changing the hidden content to visible content; or, it means that the number of times the user has browsed the web page of this website containing the label feature of the main text content has not reached the preset condition. Therefore, in order to avoid misjudgment, such a situation needs to be further statistically verified.
[0099] For the case where the judgment result is no, the current state of the label feature will not be directly automatically changed. It is necessary to receive the user's operation before changing the current state of the label attribute of the label feature to the target state, that is, changing the current state to the situation where the main text content is represented as visible.
[0100] Among them, the triggering instruction of the user can be a touch instruction acting on the display screen of the terminal device, a voice instruction, or other instructions that can achieve the triggering operation. For example, a touch instruction applied by the user to a preset area of the display screen. Another example is the voice instruction "display all content" issued by the user.
[0101] After this step is completed, step S250 is then executed.
[0102] S240. Change the current state of the label attribute of the label feature to the target state to display the hidden content.
[0103] When it is determined in the above step S232 that the body content contains hidden content, the terminal device can automatically display the hidden content without receiving a user operation instruction, so as to save the user operation process and provide the user with an immersive reading experience.
[0104] S250. Store the label feature and the website to which it belongs to form record information.
[0105] In this step, since in the above step S233, it is not the terminal device that automatically switches the current state of the label attribute of the label feature to the target state, but the switch is made under the trigger of the user. In order to be able to automatically display the hidden content when the user browses the web page of this website later, it is necessary to record the label feature in the website and the web page to form a binary combination formed by the combination of the website and the label feature, that is, record information.
[0106] For example, when the user is browsing an article in the library of website 1 and finds that there is hidden content during the browsing process, and the user clicks a button to display the hidden content. For the above situation, the terminal device will record the website and the label feature corresponding to the hidden content. If such a situation occurs multiple times, then when the label feature of this website appears again later, the hidden content in the label feature will be automatically displayed by modifying the current state of the label attribute to the display state to facilitate the user's browsing.
[0107] In this embodiment, when the current state of the label attribute of the label feature is the hidden state, it is judged whether the combined information formed by the website and the label feature exists in the configuration information. When the combined information exists in the configuration information, it indicates that there is hidden content in the web page, and the hidden content is automatically displayed to provide the user with an immersive reading experience and improve the user experience.
[0108] According to an exemplary embodiment, as Figure 3 shown, the method of this embodiment is used to set the configuration information in the above method. The method in this embodiment includes the following steps:
[0109] S310. Receive a browsing instruction and open a web page.
[0110] Generally, users will open a web page by entering a website address or searching. Through the website address, the name of the website that the user browses can be obtained.
[0111] S320. Determine whether a trigger instruction input by the user is received within a preset duration. If so, execute step S330;
[0112] If not, execute step S340.
[0113] In this step, the preset duration can be, for example, 1 minute, 30 seconds, or 5 minutes, etc. The specific duration can be set by those skilled in the art according to experience.
[0114] S330. Change the current state of the label attribute of the label feature in the web page to the target state.
[0115] The implementation manner of this step is the same as that of the steps in the above embodiment, and will not be elaborated here.
[0116] After this step, execute step S350.
[0117] S340. Keep the label attribute of the label feature in the web page.
[0118] If the judgment result in step S320 above is no, it means that it is possible that the user did not input a trigger instruction, that is, the user does not want to view the hidden content. Or, there is no hidden content in the web page, then keep the label attribute of the label feature in the web page and do not need to modify the current state of the label attribute.
[0119] S350. Store the label feature and the website to which it belongs to form record information.
[0120] The explanation and implementation manner of this step are the same as those of step S250 in the above embodiment, and will not be elaborated here.
[0121] S360. Determine whether the number of occurrences of the record information is greater than or equal to a preset number; if so, execute step S370;
[0122] If not, execute step S380.
[0123] In this step, the preset number of times can be, for example, three times, five times, etc. That is to say, if the number of times the recorded information appears exceeds the preset number of times, it means that every time the user browses the label feature with hidden content on this website, the label attribute of this label feature needs to be modified, indicating that the user hopes to browse the hidden content. Then for such content, in order to provide the user with an immersive reading experience, when the user browses the hidden content containing the above label feature on this website again after multiple operations, the hidden content in the above label feature is automatically displayed.
[0124] S370. Store the recorded information into the configuration information.
[0125] In this step, after the number of times the recorded information appears exceeds the preset number of times, it means that the user wants to browse the hidden content multiple times, then the recorded information can be stored into the configuration information. What is stored in the configuration information are the websites where the user wants to browse the hidden content and the label features with hidden content on these websites, so that in the subsequent browsing process, when this website appears, the hidden content under the label feature of this website is directly displayed without the user's operation, providing an immersive reading experience.
[0126] S380. Increase the number of times the recorded information appears by one.
[0127] If the judgment result in S360 is no, it means that the user browses the hidden content on this website for the first time, or the number of times the user browses the hidden content under the same label feature on this website has not reached the requirement, then increase the number of times the recorded information appears by one.
[0128] For example, if the recorded information has passed once before and has not reached the preset number of times three times, after browsing the web page this time and receiving the user's touch command, the number of times the recorded information appears is increased by one, that is, the number of times the recorded information appears is two.
[0129] In this embodiment, the configuration information is set. When the number of times the recorded information appears exceeds the preset number of times, it means that every time the user browses this website, the user will want to browse the hidden content on the web page. In order to provide the user with an immersive reading experience, the browser automatically displays the hidden content on the web page, improving the user experience.
[0130] According to an exemplary embodiment, as Figure 4 shown, this embodiment provides a web page display method. In this embodiment, when the user browses the page of the website for the first time, it can determine whether there is hidden content on this web page according to the label feature of the web page and the current state of the label attribute of this label feature, and then automatically display the hidden content without the user's operation. The method in this embodiment includes the following steps:
[0131] S410. Obtain the label features of the currently displayed content of the web page and the current status of the label attributes of the label features.
[0132] This step is implemented in the same way as the relevant steps in the above embodiments, and will not be elaborated here.
[0133] S420. Determine whether the content belonging to the label features is preset content, and the preset content includes the main text content. If so, execute step S430;
[0134] If not, execute step S450.
[0135] In this step, if the label feature is the main text content, it indicates that there may be hidden content in this part of the main text content, and further judgment is required, then execute step S430.
[0136] Among them, when determining whether the content belonging to the label features is preset content, some currently common algorithms can be used. In one example, determine whether the character density value of the content belonging to the label features is greater than or equal to the preset density value. If so, the content belonging to the label features is the preset content. In this example, since the preset content is the main text content, after removing all the labels in HTML, the character density of the main text part is relatively high, and there are few occurrences of multiple blank lines. Based on this principle, if it is determined that the character density value of the content of the label features is greater than or equal to the preset density value, it indicates that the text appears densely, and it is determined that it is the main text content.
[0137] In another example, determine whether the line block length value of the content belonging to the label features is greater than or equal to the preset length value. If so, the content belonging to the label features is the preset content. Generally, for the content in the non-main text area, separate label features are usually used for marking, which can also be understood as the line blocks in the non-main text content area are shorter. Therefore, when it is determined that the line block length value is greater than or equal to the preset length value, it indicates that this part of the content is the main text content.
[0138] S430. Determine that there is hidden content in the content belonging to the label features according to the current status of the label attributes.
[0139] After this step is executed, execute step S440.
[0140] S440. Change the current status of the label attributes of the label features to the target status to display the hidden content.
[0141] S450. Ignore the label features.
[0142] If the judgment result in step S420 above is negative, it indicates that the content of this label feature is not the main text content, and the possibility of there being hidden content is very small. Therefore, there is no need to change the label attributes of this label feature, and it can be ignored.
[0143] The present disclosure also provides a web page display device, which is applied to a terminal device. As Figure 5 shown, the device in this embodiment includes an acquisition module 100 and a processing module 200. The device in this embodiment is used to implement the web page display method as Figures 1 to 4 shown above.
[0144] During implementation, the acquisition module 100 is used to acquire the label features of the current web page display content and the current state of the label attributes of the label features. The processing module 200 is used to determine that there is hidden content belonging to the label features according to the label features and the current state of their label attributes; and is also used to change the current state of the label attributes of the label features to a target state to display the hidden content.
[0145] When the acquisition module 100 and the processing module 200 implement the web page display method as shown in 2 to Figure 4 above, it is similar to the content mentioned above, and will not be elaborated here.
[0146] As Figure 6 shown, it is a block diagram of a terminal device. The present disclosure also provides a terminal device, including a processor; a memory for storing executable instructions of the processor. Among them, the processor is configured to execute the above-mentioned method. The device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc. The terminal device may also be a photosensitive element, such as a light sensor.
[0147] The device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.
[0148] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, telephone call, data communication, camera operation, and recording operation. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0149] The memory 504 is configured to store various types of data to support the operation of the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, and the like. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0150] The power component 506 provides power to the various components of the device 500. The power component 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 500.
[0151] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0152] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC) that is configured to receive external audio signals when the device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further includes a speaker for outputting audio signals.
[0153] The I / O interface 512 provides an interface between the processing component 502 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power-on button, and a lock button.
[0154] The sensor assembly 514 includes one or more sensors for providing a status assessment of various aspects of the device 500. For example, the sensor assembly 514 can detect the on / off state of the device 500, the relative positioning of components, such as components for the display and keypad of the device 500. The sensor assembly 514 can also detect a change in the position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and a change in the temperature of the device 500. The sensor assembly 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0155] The communication component 516 is configured to facilitate communication between the device 500 and other devices in a wired or wireless manner. The device 500 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0156] In an exemplary embodiment, the device 500 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0157] A non-transitory computer-readable storage medium provided in another exemplary embodiment of the present disclosure, such as a memory 504 including instructions, the above instructions can be executed by a processor 520 of the device 500 to complete the above method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc. When the instructions in the storage medium are executed by the processor of the terminal device, the terminal device can execute the above method.
[0158] Other embodiments of the present invention will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include known common general knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the invention are pointed out by the following claims.
[0159] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A web page display method, applied to a terminal device, characterized in that, The method includes: Obtaining the label features of the current web page display content and the current status of the label attributes of the label features; When the current status of the label attributes of the label features represents a hidden status, determining that there is hidden content belonging to the content of the label features; Automatically changing the web page attributes so that the current status of the label attributes of the label features is changed to a target status to display the hidden content; Wherein, when the current status of the label attributes of the label features represents a hidden status, determining that there is hidden content belonging to the content of the label features includes: Determining combined information according to the label features and the website to which the label features belong; Judging whether the combined information exists in the pre-stored configuration information; If the combined information exists in the configuration information, determining that there is hidden content belonging to the content of the label features.
2. The web page display method according to claim 1, characterized in that The method further includes: If the combined information does not exist in the configuration information, changing the current status of the label attributes of the label features to the target status according to the received trigger instruction; Storing the label features and the website to which they belong to form record information.
3. The web page display method according to claim 2, wherein The method further includes: Judging whether the number of occurrences of the record information is greater than or equal to a preset number; If so, storing the record information into the configuration information.
4. The web page display method according to claim 1, wherein When the current status of the label attributes of the label features represents a hidden status, determining that there is hidden content belonging to the content of the label features includes: Judging whether the content belonging to the label features is preset content, and the preset content includes body content; If the content belonging to the label features is preset content and the current status of the label attributes represents a hidden status, determining that there is hidden content belonging to the content of the label features.
5. The web page display method according to claim 4, wherein The judging whether the content belonging to the label features is preset content includes: Judging whether the character density value of the content belonging to the label features is greater than or equal to a preset density value, and if so, the content belonging to the label features is preset content; And / or, Judging whether the line block length value of the content belonging to the label features is greater than or equal to a preset length value, and if so, the content belonging to the label features is preset content.
6. A web display device, applied to a terminal device, characterized in that The device includes: An obtaining module, configured to obtain the label features of the current web page display content and the current status of the label attributes of the label features; A processing module, configured to determine that there is hidden content belonging to the content of the label features when the current status of the label attributes of the label features represents a hidden status; The processing module is further configured to automatically change the web page attributes so that the current status of the label attributes of the label features is changed to a target status to display the hidden content; Wherein, the processing module is further configured to: Determine combined information according to the label features and the website to which the label features belong; Judge whether the combined information exists in the pre-stored configuration information; If the combined information exists in the configuration information, determine that there is hidden content belonging to the content of the label features.
7. A terminal device, characterized in that Includes: A processor; A memory for storing executable instructions of the processor; Wherein, the processor is configured to execute the web page display method according to any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the terminal device, the terminal device is enabled to execute the web page display method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Page display method and device
CN109656443A