Unlock instant, AI-driven research and patent intelligence for your innovation.

A style editing method and a device thereof

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

Active Publication Date: 2019-03-08
PING AN TECH (SHENZHEN) CO LTD
View PDF14 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] A page usually consists of multiple identical or different page elements, which can be used to present different page effects. In order to make the page present a good visual effect, it is usually necessary to edit the style of the page elements. However, due to the complex page structure , There are many styles of page elements, etc., resulting in unclear style structure of page elements, which makes it inconvenient to edit the style of page elements, resulting in the need to repeatedly adjust the style of page elements

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A style editing method and a device thereof
  • A style editing method and a device thereof
  • A style editing method and a device thereof

Examples

Experimental program
Comparison scheme
Effect test

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 can 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 can 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 are "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. DOM ...

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 can 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 can 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 device 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" page ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a style editing method and a device thereof, wherein the style editing method comprises the steps of obtaining a style name field of a page element; storing a style attribute name of the page element in a style class, so that the style attribute name of the page element is used as a style name field of the style class; creating an instance of the style class, reading a style field in the instance, and setting a style name field in the instance as a style name field of a layout element. The invention can make the style structure of the page element clear, thereby facilitating the developer to edit the style of the page element.

Description

technical field [0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a style editing method and device. Background technique [0002] The page is usually composed of multiple same or different page elements. The page elements can be used to present different page effects. In order to make the page present a good visual effect, it is usually necessary to edit the style of the page elements. However, due to the complex structure of the page , there are many styles of page elements, etc., resulting in unclear style structure of page elements, which is inconvenient for style editing of page elements, resulting in the need to repeatedly adjust the styles of page elements. Therefore, it is necessary to provide a style editing method and device, which facilitates style editing of page elements and improves the editing efficiency of page element styles. SUMMARY OF THE INVENTION [0003] The present invention provides ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38
CPCG06F8/38
Inventor 赵宝森
Owner PING AN TECH (SHENZHEN) CO LTD