A style editing method and device
A style and editing technology, applied in the computer field, can solve the problems of unclear page element style structure and inconvenient page element style editing, and achieve the effect of clear style structure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] see figure 1 , figure 1 It is a style editing method disclosed in the embodiment of the present invention. in, figure 1 The shown method may be executed in a Mac operating system, a Windows operating system, a Unix operating system, a Linux operating system, an Alios operating system, etc., which is not limited in the embodiment of the present invention. like figure 1 As shown, the style editing method may include the following steps:
[0048]101. Obtain the style name field of the page element. For example, to obtain a page element named "div" from a specified page, the style name fields of the "div" page element include "width" and "height", where the "width" field represents the width style of the "div" page element, The "height" field represents the height style of the "div" page element.
[0049] Specifically, page elements can be obtained through the Document Object Model (DOM). DOM is a common method for representing and processing an HTML or XML document. ...
Embodiment 2
[0060] see figure 2 , figure 2 It is a style editing method disclosed in the embodiment of the present invention. in, figure 2 The shown method may be executed in a Mac operating system, a Windows operating system, a Unix operating system, a Linux operating system, an Alios operating system, etc., which is not limited in the embodiment of the present invention. like figure 2 As shown, the style editing method may include the following steps:
[0061] 201. Obtain the value of the type name field of the page element, the style attribute name of the page element, and the value of the style attribute name of the page element. For example, get the value "div" of the type name field of the page element "div", the value of the "width" style attribute name, and the value of the "251px" style attribute name.
[0062] 202. Save the value of the type name field of the page element into the style class, so as to use the value of the type name field of the page element as the valu...
Embodiment 3
[0073] see image 3 , image 3 It is a schematic structural diagram of a style editing device disclosed in an embodiment of the present invention. in, image 3 The shown device may be applied to a Mac operating system, a Windows operating system, a Unix operating system, a Linux operating system, an Alios operating system, etc., which is not limited in the embodiment of the present invention. like image 3 As shown, the style editing apparatus may include a style parameter acquisition module 301, a style saving module 302, and an instance creation module 303, wherein:
[0074] The style parameter obtaining module 301 is used to obtain the style name field of the page element.
[0075] For example, to obtain a page element named "div" from a specified page, the style name fields of the "div" page element include "width" and "height", where the "width" field represents the width style of the "div" page element, The "height" field represents the height style of the "div" pag...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



