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

Method and device of automatically detecting CSS expression

An automatic detection and expression technology, which is applied in the Internet field, can solve problems such as missing checks, page freezes, slowing down the loading speed of web pages, etc., and achieve the effect of accurate results

Inactive Publication Date: 2016-08-17
PHICOMM (SHANGHAI) CO LTD
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This will affect the performance of the entire page, slow down the page loading speed and even cause the page to freeze
[0005] Therefore, it is usually checked whether there is a CSS expression in the page. In the prior art, whether there is a CSS expression in the interface is generally checked by manually checking the source code to see if the expression is included. If the amount of code is large, Time-consuming and laborious, and it is easy to miss checks

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
  • Method and device of automatically detecting CSS expression
  • Method and device of automatically detecting CSS expression
  • Method and device of automatically detecting CSS expression

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] see figure 1 , figure 1 It is a flowchart of a method for automatically detecting CSS expressions provided by an embodiment of the present invention. Such as figure 1 As shown, the method of the embodiment of the present invention includes the following steps:

[0021] Step S1: Obtain an HTML file containing the source code of the user interface.

[0022] Before this step, it also includes storing the address information of the user interface. Specifically, the address of the user interface is loaded into the memory through the Java language for storage.

[0023] This step specifically includes obtaining the source code of the user interface, and then parsing the HTML file.

[0024] Step S2: Detect whether the source code in the HTML file contains an identifier of a CSS expression based on a preset language.

[0025] In this step, if the identifier is detected, go to step S3, otherwise go to step S4.

[0026] Since the code of javascript (js) will be inserted int...

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 method and a device of automatically detecting CSS expression. The method includes: acquiring an HTML (hypertext markup language) file containing a source code of a user interface; detecting whether the source code in the HTML file contains an identifier of the CSS expression on the basis of preset language or not; if the identifier is detected, determining that the source code contains the CSS expression, and if not, determining that the source code does not contain the CSS expression. Through the above mode, whether the source code contains the CSS expression or not can be detected automatically, and convenience, quickness and accurate result are realized.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method and device for automatically detecting CSS expressions. Background technique [0002] Cascading Style Sheets (CSS) is a computer language used to represent file styles such as HTML (an application of Standard Generalized Markup Language) or XML (a subset of Standardized Generalized Markup Language). [0003] CSS can effectively control the layout, font, color, background and other effects of the page more precisely, making the page more beautiful, easier to arrange, making the page really pleasing to the eye, and giving customers a good visual effect, while CSS expresses The style is a way to dynamically set CSS properties, so it will be very powerful in interlaced color changing or simulating pseudo-classes. [0004] But CSS expressions are often double-evaluated. Expressions are recalculated not only when the page is rendered and resized, but also when the page ...

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
IPC IPC(8): G06F17/30
CPCG06F16/835G06F16/958
Inventor 黄金钰
Owner PHICOMM (SHANGHAI) CO LTD