CN109725965A - Cascading style listing maintenance, device, computer equipment and storage medium - Google Patents
Cascading style listing maintenance, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109725965A CN109725965A CN201811527481.6A CN201811527481A CN109725965A CN 109725965 A CN109725965 A CN 109725965A CN 201811527481 A CN201811527481 A CN 201811527481A CN 109725965 A CN109725965 A CN 109725965A
- Authority
- CN
- China
- Prior art keywords
- selector
- dom tree
- html file
- cascading style
- web page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present application provides a kind of cascading style listing maintenance, device, computer equipment and storage medium.Method includes: acquisition web page files, and analyzing web page file is to obtain the html file that web page files include;Html file is parsed, and the corresponding dom tree of html file, the first selector comprising html file reference in dom tree are constructed according to the html file after parsing;The cascading style sheets in the affiliated project of the first selector is obtained, parses cascading style sheets to obtain the second selector that cascading style sheets includes;Predetermined manner is used to traverse the second selector in dom tree to determine whether the second selector is contained in dom tree;If the second selector is contained in dom tree, retain the second selector;If the second selector is not included in dom tree, the second selector is removed.The embodiment of the present application is optimized based on O&M, reduces the cost of maintenance of netpage.
Description
Technical field
This application involves maintenance of netpage technical field more particularly to a kind of cascading style listing maintenances, device, computer
Equipment and computer readable storage medium.
Background technique
CSS is almost unavoidably used in Web (World Wide Web, Global Internet, also referred to as WWW) page
(full name in English: Cascading Style Sheets, cascading style sheets are abbreviated as CSS) progress style sheet rendering, but with
Project iteration upgrading, HTML (HyperText Markup Language, HyperText Markup Language are abbreviated as HTML) knot
Structure adjustment can have much discarded CSS style, cause CSS style Documents Comparison mixed and disorderly, bullet Style finally occur and be difficult to tie up
The problem of shield.Generally so that maintenance of netpage workload is very big, the cost of maintenance of netpage can only be led to very to project Perfect Reconstruction
Height leads to the wasting of resources of human and material resources and financial resources etc. in maintenance of netpage.
Summary of the invention
The embodiment of the present application provides a kind of cascading style listing maintenance, device, computer equipment and computer-readable
Storage medium, the problem of being able to solve the maintenance of netpage wasting of resources in traditional technology.
In a first aspect, the embodiment of the present application provides a kind of cascading style listing maintenance, which comprises obtain net
Page file parses the web page files to obtain the html file that the web page files include;Parse the html file, and root
The corresponding dom tree of the html file is constructed according to the html file after parsing, is quoted in the dom tree comprising the html file
The first selector;The cascading style sheets in the affiliated project of the first selector is obtained, the stacking sample is parsed
Formula table is to obtain the second selector that the cascading style sheets includes;And second pattern is traversed using predetermined manner
Whether selector is contained in the dom tree in the dom tree with determination second selector, if second pattern selects
Select device and be contained in the dom tree, retain second selector, if second selector be not included in it is described
Dom tree removes second selector.
Second aspect, the embodiment of the present application also provides a kind of cascading style sheets maintenance devices, comprising: first obtains list
Member parses the web page files for obtaining web page files to obtain the html file that the web page files include;Second obtains
Unit constructs the corresponding dom tree of the html file for parsing the html file, and according to the html file after parsing,
The first selector comprising html file reference in the dom tree;Acquiring unit, for obtaining first pattern
Cascading style sheets in the affiliated project of selector, parse the cascading style sheets with obtain that the cascading style sheets includes second
Selector;And maintenance unit, for using predetermined manner to traverse second selector in the dom tree with true
Whether fixed second selector is contained in the dom tree, if second selector is contained in the dom tree,
Retain second selector, if second selector is not included in the dom tree, removes second pattern
Selector.
The third aspect, the embodiment of the present application also provides a kind of computer equipments comprising memory and processor, it is described
Computer program is stored on memory, the processor realizes the cascading style sheets maintenance when executing the computer program
Method.
Fourth aspect, the embodiment of the present application also provides a kind of computer readable storage medium, the storage medium storage
There is computer program, the computer program makes the processor execute the cascading style sheets maintenance side when being executed by processor
Method.
The embodiment of the present application provides a kind of cascading style listing maintenance, device, computer equipment and computer-readable
Storage medium.The described method includes: obtaining web page files, parsing the web page files to obtain the web page files includes
Html file;The html file is parsed, and the corresponding dom tree of the html file is constructed according to the html file after parsing,
The first selector comprising html file reference in the dom tree;Obtain item belonging to first selector
Cascading style sheets in mesh parses the cascading style sheets to obtain the second selector that the cascading style sheets includes;
And use predetermined manner traverse second selector in the dom tree with determination second selector whether
It is contained in the dom tree, if second selector is contained in the dom tree, retains second selector, if
Second selector is not included in the dom tree, removes second selector.The embodiment of the present application is by obtaining
Dom tree belonging to the first selector currently in use of the html file in webpage is taken, and obtains the first pattern choosing
The second selector for including in the affiliated project of device is selected, by traversing the dom tree, if second selector includes
In the dom tree, retain second selector, if second selector is not included in the dom tree, removes
Second selector.Retain the selector having used by webpage, removes discarded selector, it is real
Existing effect safeguards CSS style sheet, reduces the cost of maintenance of netpage.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the application scenarios schematic diagram of cascading style listing maintenance provided by the embodiments of the present application;
Fig. 2 is the flow diagram of cascading style listing maintenance provided by the embodiments of the present application;
Fig. 3 is DOM tree structure schematic diagram in cascading style listing maintenance provided by the embodiments of the present application;
Fig. 4 is the flow diagram for the cascading style listing maintenance that another embodiment of the application provides;
Fig. 5 is the schematic block diagram of cascading style sheets maintenance device provided by the embodiments of the present application;And
Fig. 6 is the schematic block diagram of computer equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen
Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall in the protection scope of this application.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Referring to Fig. 1, Fig. 1 is the application scenarios schematic diagram of cascading style listing maintenance provided by the embodiments of the present application.
The application scenarios include:
(1) server.Server provides the WEB services such as webpage load, such as finance and economics for providing the back-end services of WEB
The web service of website, news website etc..Server is a kind of computer equipment, can be single server or server set
Group, or Cloud Server, or be special web page server receives the access of exterior terminal, by cable network or
Person's wireless network is connect with terminal.
(2) terminal, terminal shown in Fig. 1 include terminal 1, terminal 2 and terminal 3, and the terminal is by access server, from clothes
It is engaged in loading WEB webpage on device, at the terminal for user's displayed web page content, for example browses news, reads the web page contents such as novel,
The WEB webpage obtained, includes html file, and the selector quoted in the html file is the selection of effective pattern
Device.The terminal can be the electronic equipments such as smart phone, smartwatch, laptop, tablet computer or desktop computer,
Terminal accesses server by cable network or wireless network.
Each body of work process in Fig. 1 is as follows: server obtains web page files, and the webpage is namely at the terminal
The webpage that can be shown refers to the webpage shown after the upgrading of project iteration, and it is described to obtain that server parses the web page files
The html file that web page files include;The html file is parsed, and the HTML text is constructed according to the html file after parsing
The corresponding dom tree of part, the first selector comprising html file reference in the dom tree;Due to first sample
Formula selector is the selector quoted in current web page, after the upgrading of WEB project iteration, by tying to the HTML in webpage
Structure is adjusted, and necessarily includes discarded selector in the project, obtains item belonging to first selector
Cascading style sheets in mesh parses the cascading style sheets to obtain the second selector that the cascading style sheets includes;
Second selector is called, predetermined manner is used to traverse second selector in the dom tree to determine
It states whether the second selector is contained in the dom tree, if second selector is contained in the dom tree, shows
Second selector is incorporated in the html file, belongs in first selector, that is, described
Second selector is used by current web page, retains second selector, if second selector is not
It is contained in the dom tree, second selector is removed, filters out all second not quoted by the webpage in project
Selector, the second selector quoted by the webpage in suspended item, the second pattern choosing in the WEB project of reservation
The first selector for selecting the html file reference for including in device i.e. the dom tree, by the second of the reservation
Selector is packed into web page files, and unreferenced second selector of the webpage is removed, that is, will
The selector discarded in the WEB project removes, to realize that server end effectively safeguards CSS style sheet.
It should be noted that server can be server cluster or Cloud Server etc. in Fig. 1, or special
The application scenarios of web page server, above-mentioned cascading style listing maintenance are merely illustrative technical scheme, and do not have to
In restriction technical scheme.
Fig. 2 is the schematic flow chart of cascading style listing maintenance provided by the embodiments of the present application.The cascading style sheets
Maintaining method is applied to the server end in Fig. 1, and the server can be the computer equipments such as desktop computer or server,
To complete all or part of function of cascading style sheets maintaining method.
Fig. 2 is the flow diagram of cascading style listing maintenance provided by the embodiments of the present application.As shown in Fig. 2, the party
Method includes the following steps S210-S240:
S210, web page files are obtained, parses the web page files to obtain the html file that the web page files include.
Wherein, table is laminated in pattern, and English is Cascading Style Sheet, is abbreviated as CSS, is referred to as being laminated
Style sheet is a kind of label language for controlling webpage pattern and allowing to separate style information with web page contents.CSS
Selector will use CSS to realize one-to-one, one-to-many or many-to-one control to the element in html page, this is just needed
Use CSS selector.Element in html page is exactly to be controlled by CSS selector.
Webpage refers to WEB webpage, in WEB project, after the upgrading of project iteration, determines the WEB webpage of display at the terminal.Net
Page file refers to the corresponding program file of webpage.Since WEB webpage is existed in the form of program file, each webpage pair
Answer a web page files.
Webpage includes multiple types, and common webpage is all the file to be ended up with HTM or HTML suffix, referred to as HTML text
Part.But also there is the file to end up with suffix such as CGI, ASP, PHP, different suffix respectively represents different types of WEB webpage text
Part, such as the file to be ended up with suffix such as CGI, ASP, PHP, respectively represent CGI webpage, ASP webpage and PHP webpage.Wherein,
Html file generally comprises HTML, CSS and JavaScript language, and it is static resource, content that HTML, which is the carrier of web page contents,
It is exactly that webpage author is placed on the information for wanting to allow user to browse on the page, may include text, picture, video etc..CSS style
It is performance, is appearance control, for example, the Header font of text, picture or video that user browses to etc., color change, big
Small equal control, or background picture, frame etc. is added for title, it is referred to as changing the thing of web page contents appearance of displaying
Performance.JavaScript is for realizing the special effect on webpage, for example, mouse-over pop-up drop-down menu or mouse
The background color for slipping over table changes, there are also focus and the rotation of news picture etc., have animation and have it is interactive it is general all
It is to be realized with JavaScript.
The web page files are parsed, refer to computer equipment according to the Nomenclature Composition and Structure of Complexes of web page files, to the webpage text
Part is analyzed, and is formed with obtaining the web page files, the process of structure and logical relation.For example, the composition object packet of webpage
Text, image and hyperlink are included, the web page files are parsed, refers to text, image and hyperlink that analysis webpage includes
And the logical relation between them.Common webpage is all the file to be ended up with HTM or HTML suffix, referred to as html file.
Html file generally comprises HTML, CSS and JavaScript language, parses the web page files, that is, refer to and analyze webpage
HTML, CSS and JavaScript language that file includes, further to form HTML, CSS and JavaScript packet to webpage
The content contained is further analyzed.
Specifically, server obtains the web page files upgraded after iteration in WEB project, that is, shows net at the terminal
The corresponding web page files of page, parse the web page files, obtain the static html file that the web page files include.
S220, the parsing html file, and the corresponding DOM of the html file is constructed according to the html file after parsing
It sets, the first selector comprising html file reference in the dom tree.
Dom tree refers to that DOM tree structure, general DOM tree structure include father node, the brotgher of node, present node, attribute section
Point, child node and the brotgher of node, the corresponding dom tree of general html file include all elements in html file.Construct DOM
Tree, comprising the following steps:
1) from a central element, all lineal relative's elements are accessed;
2) father's element: parentNode is accessed;
3) upper one fraternal element: previousSibling is accessed;
4) next brother element: nextSibling is accessed;
5) first property element: attributes [1] is accessed;
6) the last one daughter element: lastChild or childNodes [childNodes.length-1] is accessed.
Wherein, DOM refers to docuemnt object model DOM Document Object Model.Referring to Fig. 3, Fig. 3 is that the application is real
DOM tree structure schematic diagram in the cascading style listing maintenance of example offer is provided, from web document, root element is obtained, successively draws
Root element element " head " and element " content " included below out, wherein " head " includes node " title ", node " title "
Comprising child node " attribute: the first selector 1 ", the first selector can be used for being arranged the color, size, position of title
It sets, and the content " text: Document Title " of " title ".
Selector, also known as CSS selector will use CSS to realize the element in html page one-to-one, a pair of
More or many-to-one control, needs to use CSS selector.Element in html page is exactly to pass through CSS selector to be controlled
System.Each CSS style statement (definition) consists of two parts, and form is as follows:
Selector
Pattern;
}
Part before { } is exactly " selector ", and " selector " specifies the effective object of " pattern " in { }, also
It is which element that " pattern " acts in webpage.Selector includes label selector, class selector, ID selector and son
Selector etc..
The html file is parsed, refers to and html file is analyzed according to the syntax rule of HTML, to obtain HTML
The process of file composition, structure and logical relation.HTML, HyperText MarkUpLanguage, hypertext markup language or
Hypertext markup language describes a kind of language of file structure and the form of expression by using label, by browser into
Row parsing, then as the result is shown on webpage.Html file generally comprises HTML, CSS and JavaScript language, HTML's
Structure includes head (English is Head) and main body (English is Body) two large divisions, letter needed for wherein head describes browser
Breath, and main body then includes the particular content to be illustrated.The html file is parsed, refers to that analysis html file includes
HTML, CSS and JavaScript language, and the structure for the analyzing HTML head that includes and main body two large divisions, to obtain HTML
HTML, CSS and JavaScript language that file includes, for example, construct the corresponding dom tree of the html file, parse CSS with
Obtain the selector etc. that the CSS includes.
Specifically, the html file that server parsing obtains, and according to the html file building after parsing
The corresponding dom tree of html file includes the HTML in the dom tree due to using CSS to carry out style sheet rendering in webpage
First selector of file reference.
Cascading style sheets in S230, the acquisition affiliated project of the first selector, parses the cascading style sheets
To obtain the second selector that the cascading style sheets includes.
Wherein, the cascading style sheets in the affiliated project of the first selector, after referring to the upgrading of WEB project iteration
Cascading style sheets in WEB project.Due to using CSS to carry out style sheet rendering in webpage, as project iteration upgrades, HTML
Structure is adjusted, the selector that WEB project is quoted after being not only adjusted there is HTML structure, can also be existed many
The discarded CSS style that HTML structure is no longer quoted after being adjusted, therefore, the second selector includes two in WEB project
Class selector: one is the selectors that current HTML is being quoted, that is, the first selector, need to protect
It stays;One is the selectors for using before WEB project iteration upgrades and not using after the upgrading of WEB project iteration, are useless
The CSS style of abandoning needs to remove during safeguarding cascading style sheets.
Specifically, server obtains the cascading style sheets in the affiliated project of the first selector, using what is write
Script parses CSS file, that is, parses the cascading style sheets, traverses the selector of CSS file, obtains the stacking
The second selector that style sheet includes.Namely CSS file is split according to structure, the member for including by CSS file
Element and its color, position etc. are disassembled according to minimum unit, are then carried out in CSS file according to different selectors
Match.For example, being pound sign (#) number before ID selector, then searched whether in CSS file comprising pound sign (#), if found
Pound sign (#) number, then obtain ID selector.Similar, can obtain the CSS file such as label selector, class selector respectively includes
All selectors, that is, the second selector.
S240, predetermined manner is used to traverse second selector in the dom tree with determination second pattern
Whether selector is contained in the dom tree;
If second selector is contained in the dom tree, following steps S250 is executed: retaining second pattern
Selector;
If second selector is not included in the dom tree, following steps S260 is executed: removing second sample
Formula selector.
Wherein, the predetermined manner, which refers to, traverses second selector in the mode of the dom tree, for example uses
Default regular expression or JS traverse second selector in the dom tree.Wherein, JS is the letter of JavaScript
It writes, a kind of literal translation formula scripting language of JavaScript, is a kind of regime type, weak type, the language based on prototype, built-in support
Type.Its interpreter is referred to as JavaScript engine, is a part of browser, is widely used in the script language of client
Speech is to use on HTML (application under standard generalized markup language) webpage earliest, is used to increase to html web page dynamic
State function.
Traversal, English are Traversal, refer to along certain search pattern, successively do one to node each in dom tree
It is secondary and only do primary access.Parse a document, it is meant that convert it into a significant structure, that is, program code
It will be seen that and the thing that uses, the result of parsing are usually the node set of a tree, for indicating file structure, it is claimed
For analytic tree or syntax tree.
Specifically, server obtains multiple second selectors of the html file reference, generally using existing
There are tool, such as tool Puppeteer, traversing each second selector in the dom tree, if described one by one
Second selector is contained in the dom tree, that is, second selector is matched in the dom tree,
Show that second selector is quoted by the html file, second selector be being used it is effective
Selector retains second selector, otherwise, if second selector is not included in the dom tree,
Namely described second selector is not matched in the dom tree, shows second selector not by institute
Html file reference is stated, second selector is the invalid selector being not used by, and removes second sample
Formula selector removes invalid selector to retain effective selector in WEB project iteration escalation process,
It realizes the maintenance to pattern stacking table, avoids the adjustment of the iteration upgrading and HTML structure with WEB project, there are more and more
Discarded CSS style, causes CSS style Documents Comparison mixed and disorderly, WEB bullet Style finally occurs and is difficult to the problem of safeguarding, if right
WEB project Perfect Reconstruction, and lead to workload also very big and cost is very high.
The embodiment of the present application is by obtaining DOM belonging to html file the first selector currently in use in webpage
Tree, and the second selector for including in the affiliated project of the first selector is obtained, by traversing the DOM
Tree retains second selector, if second pattern if second selector is contained in the dom tree
Selector is not included in the dom tree, removes second selector.Retain the pattern having used by webpage to select
Device is selected, discarded selector is removed, effectively maintenance CSS style sheet is realized, reduces the manpower maintenance cost of maintenance of netpage.
Referring to Fig. 4, Fig. 4 is the process signal for the cascading style listing maintenance that another embodiment of the application provides
Figure.As shown in figure 4, in this embodiment, the acquisition web page files parse the web page files to obtain the web page files
The step of html file for including includes:
S2101, multiple web page files are obtained, multiple web page files is traversed and parse, to obtain each institute
State the corresponding html file of webpage;
The parsing html file, and the corresponding DOM of the html file is constructed according to the html file after parsing
The step of tree includes:
S2201, each html file of parsing construct the corresponding dom tree of each html file, to obtain
Multiple dom trees;
It is described that predetermined manner is used to traverse second selector in the dom tree with determination the second pattern choosing
Select that the step of whether device is contained in the dom tree includes:
S2401, predetermined manner is used to traverse second selector in each described dom tree with determination described the
Whether two selectors are contained in the dom tree.
In addition, step S230, S250 and S260 are identical as embodiment illustrated in fig. 2, it is incorporated herein by reference, herein
It repeats no more.
Specifically, since a website frequently includes multiple webpages, and CSS can realize one to the element in html page
To one, one-to-many or many-to-one control, that is, selector can quote by multiple HTML, and server obtains multiple
The web page files traverse and parse multiple web page files, to obtain the corresponding html file of each webpage.Than
Such as, if server obtains ten web page files, each web page files are traversed, and parse each web page files, obtains each net
The corresponding html file of page.
It is corresponding to obtain multiple html files if there is multiple webpages if server obtains the corresponding html file of each webpage,
For example, traversing and parsing each webpage if server obtains ten webpages, corresponding to obtain ten html files, server makes
With tool Puppeteer, traversal parses all html files, obtains the corresponding dom tree of each html page.For example, if having ten
A html file, traversal parse ten all html files, construct the corresponding DOM of each html file
Tree obtains ten dom trees.Wherein, Puppeteer is one by DevTools protocol integrated test system HeadlessChrome
The library Node.Chrome can be directly controlled by the api interface that Puppeteer is provided simulates most of user's operation to carry out UI
Test collects data as crawler accession page.
If server obtains multiple second selectors for including in the WEB project, traverse each described second
Selector is in each dom tree, if second selector is contained in any one of dom tree, that is, institute
It states the second selector to be matched in the dom tree, shows that second selector is drawn by the html file
With second selector is the effective selector being being used, and retains second selector, no
Then, if second selector is not included in any one of dom tree, that is, second selector in institute
It states in dom tree and is not matched, show that second selector is not quoted by the html file, the second pattern choosing
Selecting device is the invalid selector being not used by, and second selector is removed, to retain WEB project iteration liter
Effective selector during grade, removes invalid selector, realizes the maintenance to pattern stacking table, avoid with
The adjustment of the iteration upgrading and HTML structure of WEB project especially includes the WEB project of multiple webpages, and there are more and more useless
The CSS style of abandoning, causes CSS style Documents Comparison mixed and disorderly, WEB bullet Style finally occurs and is difficult to the problem of safeguarding.
In one embodiment, described the step of obtaining the second selector that the cascading style sheets includes, includes:
Obtain multiple second selectors that the cascading style sheets includes;
It is described that predetermined manner is used to traverse second selector in the dom tree with determination the second pattern choosing
Select that the step of whether device is contained in the dom tree includes:
Each described second selector is traversed in each dom tree using predetermined manner.
Specifically, due to using CSS to carry out style sheet rendering in webpage, due to generally comprising multiple members in WEB project
Element, different elements quote different selectors, and in WEB project iteration escalation process, with the adjustment of HTML structure,
Selector can also be replaced, and often include multiple institutes in the cascading style sheets in the affiliated project of the first selector
State the second selector.If server obtains multiple second selectors for including in the WEB project, each is traversed
Second selector is in each dom tree, if second selector is contained in any one of dom tree,
Namely described second selector is matched in the dom tree, shows that second selector is described
Html file reference, second selector is the effective selector being being used, and retains second pattern
Selector, otherwise, if second selector is not included in any one of dom tree, that is, second pattern
Selector is not matched in the dom tree, shows that second selector is not quoted by the html file, described
Second selector is the invalid selector being not used by, and second selector is removed, to retain WEB
Effective selector in project iteration escalation process removes invalid selector, realizes the dimension to pattern stacking table
Shield.
In one embodiment, described that predetermined manner is used to traverse second selector in the dom tree with true
Whether fixed second selector is contained in the dom tree, if second selector is contained in the dom tree,
Retain second selector, if second selector is not included in the dom tree, removes second pattern
The step of selector includes:
Second selector obtain and tastes mistake in the dom tree, includes if being got in the dom tree
The DOM node of second selector retains second selector, if second selector does not include
In the dom tree, second selector is removed, wherein the acquisition tastes mistake and refers to that obtaining second pattern selects
Device is attempted, and judges whether second selector is quoted by the dom tree, to attempt to judge the second pattern choosing
Select whether device is wrong cascading style sheets.
Wherein, obtain taste mistake refer to obtain selector attempted, judge whether selector is cited, also
It is to carry out attempting whether selector is wrong CSS file, the selector not used by html file is wrong
CSS file is correct CSS file by the selector that the html file uses.For example, obtaining an ID pattern selection
Device attempts the ID selector in the dom tree of html file, judges whether the ID selector is drawn
With being discarded selector if the ID selector is unreferenced, if the ID selector is drawn
With it is effective selector that then the ID selector, which is html file selector currently in use,.
Under normal circumstances, all selectors obtain using JS and taste mistake.Using JS to all selectors
Obtain and taste mistake, refers to and acquisition trial is carried out one by one to all selectors of CSS, judge each institute of the CSS
The second selector is stated whether in the dom tree of acquisition, that is, second selector whether be dom tree DOM
Node, if second selector in the dom tree, illustrates that second selector is currently used, no
It is discarded selector, if second selector not in the dom tree, illustrates the second pattern selection
Device is currently not used by, and is the selector discarded in iteration maintenance process, that is, if all obtain not in all dom trees
To the DOM node, illustrate that second selector is not quoted Anywhere, when forming html file, this is described
Second selector is not packed into html file, is realized by the directly discarded removal of the selector, to only protect
Stay the selector being cited in project iteration escalation process.Wherein, JS functions as an omniselector, by JS,
Guidance selector, which carries out obtaining in dom tree, tastes mistake.
Further, mistake is tasted in other than the dom tree in addition to using JS obtain to second selector, may be used also
Mistake is tasted in the dom tree to use default regular expression obtain to second selector.
Wherein, regular expression, also known as regular expression, English are Regular Expression, the Chang Jian in code
It is written as regex, regexp or RE, is used to meet the text of some mode (rule) in dom tree retrieval in the embodiment of the present application,
Second selector obtain and tastes mistake in the dom tree.
In one embodiment, the step of removal second selector includes:
Second selector that need to be removed is marked and presets mark, the default mark is for marking described in removal
Second selector.
Specifically, if server judges second selector not in the DOM of the corresponding dom tree of the html file
Node shows that second selector is not quoted by the html file, and second selector is to be not used by
Invalid selector, need to remove second selector when being packaged html file, by it need to remove described in
The default mark of second selector mark, the default mark remove second selector for marking, for example,
" * " is stamped on second selector of required removal, being packaged the html file is stamped if server identifies
Second selector of " * " default mark, is not packed into the html file, directly discarded, is removed.It needs
Bright, the default mark needs to be distinguished with identifier common in programming, to avoid will be in computer code normally
Code remove, the problem of causing code to be operating abnormally.
In one embodiment, described that predetermined manner is used to traverse second selector in the dom tree with true
Whether fixed second selector is contained in the dom tree, if second selector is contained in the dom tree,
Retain second selector, if second selector is not included in the dom tree, removes second pattern
It is further comprised the steps of: after the step of selector
When forming html file, second selector retained in the cascading style sheets is packed into described
Second selector removed in the cascading style sheets is not packed into the html file by html file.
Specifically, if server judges second selector not in the DOM of the corresponding dom tree of the html file
Node shows that second selector is not quoted by the html file, and second selector is to be not used by
Invalid selector, need to remove second selector when being packaged html file, be not packed into described
Html file, it is directly discarded, it is removed, if second selector is contained in the dom tree, that is, described second
Selector is matched in the dom tree, shows that second selector is quoted by the html file, described
Second selector is the effective selector being being used, and retains second selector, is packed into described
Html file.
It should be noted that cascading style listing maintenance described in above-mentioned each embodiment, can according to need will not
Re-start combination with the technical characteristic for including in embodiment, with obtain combination after embodiment, but all this application claims
Protection scope within.
Referring to Fig. 5, Fig. 5 is the schematic block diagram of cascading style sheets maintenance device provided by the embodiments of the present application.It is corresponding
In above-mentioned cascading style listing maintenance, the embodiment of the present application also provides a kind of cascading style sheets maintenance device.Referring to Fig. 5,
The cascading style sheets maintenance device includes the unit for executing above-mentioned cascading style listing maintenance, which can be configured
In the computer equipments such as server.Specifically, referring to Fig. 5, the cascading style sheets maintenance device 500 includes that the first acquisition is single
First 501, second obtaining unit 502, acquiring unit 503 and maintenance unit 504.
Wherein, first obtains unit 501 parse the web page files for obtaining web page files to obtain the webpage
The html file that file includes;
Second obtaining unit 502, for parsing the html file, and according to the html file building after parsing
The corresponding dom tree of html file, the first selector comprising html file reference in the dom tree;
Acquiring unit 503, for obtaining the cascading style sheets in the affiliated project of the first selector, described in parsing
Cascading style sheets is to obtain the second selector that the cascading style sheets includes;And
Maintenance unit 504, for using predetermined manner to traverse second selector in the dom tree to determine
It states whether the second selector is contained in the dom tree, if second selector is contained in the dom tree, retains
Second selector removes the second pattern selection if second selector is not included in the dom tree
Device.
In one embodiment, the first obtains unit 501, for obtaining multiple web page files, traverse and
Multiple web page files are parsed, to obtain the corresponding html file of each webpage;Second obtaining unit 502 is used
In parsing each html file, the corresponding dom tree of each html file is constructed;The maintenance unit 504 is used
In using predetermined manner to traverse second selector in each described dom tree with determination second selector
It whether is contained in the dom tree, if second selector is contained in the dom tree, retains the second pattern choosing
Device is selected, if second selector is not included in the dom tree, removes second selector.
In one embodiment, second obtaining unit 502, include for obtaining the cascading style sheets multiple
Two selectors;The maintenance unit 504, for traversing each described second selector in every using predetermined manner
One dom tree.
In one embodiment, the maintenance unit 504, for second selector obtain taste it is wrong in
The dom tree retains second sample if getting the DOM node comprising second selector in the dom tree
Formula selector removes second selector, wherein institute if second selector is not included in the dom tree
It states acquisition and tastes mistake and refer to obtaining second selector is attempted, and judges whether second selector is described
Dom tree reference, to attempt to judge whether second selector is wrong cascading style sheets.
In one embodiment, use default regular expression or JS to second sample in the maintenance unit 504
Formula selector, which obtain, tastes mistake in the dom tree.
In one embodiment, the maintenance unit 504, for second selector removed mark will to be needed pre-
Bidding is known, and the default mark removes second selector for marking.
In one embodiment, described device 500 further include:
When being used to form html file, second pattern retained in the cascading style sheets is selected for packaged unit
Device is packed into the html file, second selector removed in the cascading style sheets is not packed into described
Html file.
It should be noted that it is apparent to those skilled in the art that, above-mentioned cascading style sheets maintenance dress
Set the specific implementation process with each unit, can with reference to the corresponding description in preceding method embodiment, for convenience of description and
Succinctly, details are not described herein.
Meanwhile in above-mentioned cascading style sheets maintenance device the division of each unit and connection type be only used for for example,
In other embodiments, cascading style sheets maintenance device can be divided into as required to different units, it can also be by cascading style
Each unit takes the different order of connection and mode in table maintenance device, to complete the whole of above-mentioned cascading style sheets maintenance device
Or partial function.
Above-mentioned cascading style sheets maintenance device can be implemented as a kind of form of computer program, which can be with
It is run in computer equipment as shown in FIG. 6.
Referring to Fig. 6, Fig. 6 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The computer
Equipment 600 can be desktop computer, and perhaps server is also possible to component or component in other equipment.
Refering to Fig. 6, which includes processor 602, memory and the net connected by system bus 601
Network interface 605, wherein memory may include non-volatile memory medium 603 and built-in storage 604.
The non-volatile memory medium 603 can storage program area 6031 and computer program 6032.The computer program
6032 are performed, and processor 602 may make to execute a kind of above-mentioned cascading style listing maintenance.
The processor 602 is for providing calculating and control ability, to support the operation of entire electronic equipment 600.
The built-in storage 604 provides environment for the operation of the computer program 6032 in non-volatile memory medium 603, should
When computer program 6032 is executed by processor 602, processor 602 may make to execute a kind of above-mentioned cascading style sheets maintenance side
Method.
The network interface 605 is used to carry out network communication with other equipment.It will be understood by those skilled in the art that in Fig. 6
The structure shown, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to application scheme
The restriction of computer equipment 600 thereon, specific computer equipment 600 may include more more or fewer than as shown in the figure
Component perhaps combines certain components or with different component layouts.
Wherein, the processor 602 is for running computer program 6032 stored in memory, to realize following step
It is rapid: to obtain web page files, parse the web page files to obtain the html file that the web page files include;Parse the HTML
File, and the corresponding dom tree of the html file is constructed according to the html file after parsing, it include described in the dom tree
First selector of html file reference;The cascading style sheets in the affiliated project of the first selector is obtained, is solved
The cascading style sheets is analysed to obtain the second selector that the cascading style sheets includes;And it is traversed using predetermined manner
Whether second selector is contained in the dom tree in the dom tree with determination second selector, if institute
It states the second selector and is contained in the dom tree, retain second selector, if second selector is not
It is contained in the dom tree, removes second selector.
In one embodiment, when the processor 602 states step in realization, the acquisition web page files, described in parsing
Web page files include: the step of html file that the web page files include to obtain
Multiple web page files are obtained, multiple web page files are traversed and parse, to obtain each webpage
Corresponding html file;
The parsing html file, and the corresponding DOM of the html file is constructed according to the html file after parsing
The step of tree includes:
Each html file is parsed, the corresponding dom tree of each html file is constructed;
It is described that predetermined manner is used to traverse second selector in the dom tree with determination the second pattern choosing
Select that the step of whether device is contained in the dom tree includes:
Predetermined manner is used to traverse second selector in each described dom tree with determination second pattern
Whether selector is contained in the dom tree.
In one embodiment, when the processor 602 states step in realization, the acquisition cascading style sheets includes
The second selector the step of include:
Obtain multiple second selectors that the cascading style sheets includes;
It is described that predetermined manner is used to traverse second selector in the dom tree with determination the second pattern choosing
Select that the step of whether device is contained in the dom tree includes:
Each described second selector is traversed in each dom tree using predetermined manner.
In one embodiment, it is described using predetermined manner traversal described the when the processor 602 states step in realization
Whether two selectors are contained in the dom tree in the dom tree with determination second selector, if described second
Selector is contained in the dom tree, retains second selector, if second selector is not included in
The dom tree, remove second selector the step of include:
Second selector obtain and tastes mistake in the dom tree, includes if being got in the dom tree
The DOM node of second selector retains second selector, if second selector does not include
In the dom tree, second selector is removed, wherein the acquisition tastes mistake and refers to that obtaining second pattern selects
Device is attempted, and judges whether second selector is quoted by the dom tree, to attempt to judge the second pattern choosing
Select whether device is wrong cascading style sheets.
In one embodiment, when the processor 602 states step in realization, it is described to second selector into
Row acquisition tastes mistake in the step of dom tree
Second selector obtain using default regular expression or JS and tastes mistake in the dom tree.
In one embodiment, it is described to remove second selector when processor 602 states step in realization
The step of include:
Second selector that need to be removed is marked and presets mark, the default mark is for marking described in removal
Second selector.
In one embodiment, it is described using predetermined manner traversal described the when the processor 602 states step in realization
Whether two selectors are contained in the dom tree in the dom tree with determination second selector, if described second
Selector is contained in the dom tree, retains second selector, if second selector is not included in
It is further comprised the steps of: after the step of dom tree, removal second selector
When forming html file, second selector retained in the cascading style sheets is packed into described
Second selector removed in the cascading style sheets is not packed into the html file by html file.
It should be appreciated that in the embodiment of the present application, processor 602 can be central processing unit (Central
ProcessingUnit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices
Part, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or
The processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process,
It is that can be completed by computer program.The computer program can be stored in a storage medium, which is to calculate
Machine readable storage medium storing program for executing.The computer program is executed by least one processor in the computer system, to realize above-mentioned reality
Apply the process step of the method for example.
Therefore, the application also provides a kind of storage medium.The storage medium can be computer readable storage medium.This is deposited
Storage media is stored with computer program.The computer program makes processor execute following steps when being executed by processor:
A kind of computer program product, when run on a computer, so that computer executes in the above various embodiments
The step of described cascading style listing maintenance.
The storage medium can be the internal storage unit of aforementioned device, such as the hard disk or memory of equipment.It is described to deposit
Storage media is also possible to the plug-in type hard disk being equipped on the External memory equipment of the equipment, such as the equipment, intelligent storage
Block (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..
Further, the storage medium can also both including the equipment internal storage unit and also including External memory equipment.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description is set
The specific work process of standby, device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), magnetic disk
Or the various computer readable storage mediums that can store program code such as CD.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as beyond scope of the present application.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
Step in the embodiment of the present application method can be sequentially adjusted, merged and deleted according to actual needs.This Shen
Please the unit in embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the application
Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with
It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product,
It can store in one storage medium.Based on this understanding, the technical solution of the application is substantially in other words to existing skill
The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that an electronic equipment (can be individual
Computer, terminal or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
The above, the only specific embodiment of the application, but the bright protection scope of the application is not limited thereto, and is appointed
What those familiar with the art within the technical scope of the present application, can readily occur in various equivalent modifications or
Replacement, these modifications or substitutions should all cover within the scope of protection of this application.Therefore, the protection scope Ying Yiquan of the application
Subject to the protection scope that benefit requires.
Claims (10)
1. a kind of cascading style listing maintenance, which is characterized in that the described method includes:
Web page files are obtained, parse the web page files to obtain the html file that the web page files include;
The html file is parsed, and the corresponding dom tree of the html file is constructed according to the html file after parsing, it is described
The first selector comprising html file reference in dom tree;
The cascading style sheets in the affiliated project of the first selector is obtained, it is described to obtain to parse the cascading style sheets
The second selector that cascading style sheets includes;
Use predetermined manner traverse second selector in the dom tree with determination second selector whether
It is contained in the dom tree;And
If second selector is contained in the dom tree, retain second selector;
If second selector is not included in the dom tree, second selector is removed.
2. cascading style listing maintenance according to claim 1, which is characterized in that the acquisition web page files parse institute
State web page files includes: the step of html file that the web page files include to obtain
Multiple web page files are obtained, multiple web page files are traversed and parse, it is corresponding to obtain each webpage
Html file;
The parsing html file, and the corresponding dom tree of the html file is constructed according to the html file after parsing
Step includes:
Each html file is parsed, the corresponding dom tree of each html file is constructed;
It is described that predetermined manner is used to traverse second selector in the dom tree with determination second selector
The step of whether being contained in the dom tree include:
Predetermined manner is used to traverse second selector in each described dom tree with determination the second pattern selection
Whether device is contained in the dom tree.
3. cascading style listing maintenance according to claim 2, which is characterized in that described to obtain the cascading style sheets packet
The step of the second selector contained includes:
Obtain multiple second selectors that the cascading style sheets includes;
It is described that predetermined manner is used to traverse second selector in the dom tree with determination second selector
The step of whether being contained in the dom tree include:
Each described second selector is traversed in each dom tree using predetermined manner.
4. any one of -3 cascading style listing maintenance according to claim 1, which is characterized in that described to use predetermined manner
It traverses second selector and whether the dom tree is contained in determination second selector in the dom tree,
If second selector is contained in the dom tree, retain second selector, if second pattern selects
The step of device is not included in the dom tree, removes second selector include:
Second selector obtain and tastes mistake in the dom tree, if being got in the dom tree comprising described
The DOM node of second selector retains second selector, if second selector is not included in institute
State dom tree, remove second selector, wherein the acquisition taste mistake refer to obtain second selector into
Row is attempted, and judges whether second selector is quoted by the dom tree, to attempt to judge second selector
It whether is wrong cascading style sheets.
5. cascading style listing maintenance according to claim 4, which is characterized in that described to second selector
Obtain and tastes mistake and in the step of dom tree include:
Second selector obtain using default regular expression or JS and tastes mistake in the dom tree.
6. any one of -3 cascading style listing maintenance according to claim 1, which is characterized in that described to remove described second
The step of selector includes:
Second selector that need to be removed is marked into default mark, the default mark removes described second for marking
Selector.
7. any one of -3 cascading style listing maintenance according to claim 1, which is characterized in that described to use predetermined manner
It traverses second selector and whether the dom tree is contained in determination second selector in the dom tree,
If second selector is contained in the dom tree, retain second selector, if second pattern selects
It is further comprised the steps of: after the step of device is not included in the dom tree, removes second selector
When forming html file, second selector retained in the cascading style sheets is packed into the HTML text
Second selector removed in the cascading style sheets is not packed into the html file by part.
8. a kind of cascading style sheets maintenance device, which is characterized in that described device includes:
First obtains unit, for obtaining web page files, parsing the web page files to obtain the web page files includes
Html file;
Second obtaining unit constructs the html file for parsing the html file, and according to the html file after parsing
Corresponding dom tree, the first selector comprising html file reference in the dom tree;
Acquiring unit parses the stacking sample for obtaining the cascading style sheets in the affiliated project of the first selector
Formula table is to obtain the second selector that the cascading style sheets includes;And
Maintenance unit, for using predetermined manner to traverse second selector in the dom tree with determination described second
Whether selector is contained in the dom tree, if second selector is contained in the dom tree, retains described the
Two selectors remove second selector if second selector is not included in the dom tree.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and is connected with the memory
Processor;The memory is for storing computer program;The processor is based on running and storing in the memory
Calculation machine program, to execute as described in claim any one of 1-7 the step of cascading style listing maintenance.
10. a kind of computer readable storage medium, which is characterized in that the storage medium is stored with computer program, the meter
Calculation machine program makes the processor execute the cascading style sheets maintenance as described in any one of claim 1-7 when being executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811527481.6A CN109725965A (en) | 2018-12-13 | 2018-12-13 | Cascading style listing maintenance, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811527481.6A CN109725965A (en) | 2018-12-13 | 2018-12-13 | Cascading style listing maintenance, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109725965A true CN109725965A (en) | 2019-05-07 |
Family
ID=66295931
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811527481.6A Pending CN109725965A (en) | 2018-12-13 | 2018-12-13 | Cascading style listing maintenance, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109725965A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110688118A (en) * | 2019-10-28 | 2020-01-14 | 郑州阿帕斯科技有限公司 | Webpage optimization method and device |
CN111008513A (en) * | 2019-12-16 | 2020-04-14 | 北京华大九天软件有限公司 | Cell matrix merging method in physical verification of flat panel display layout |
CN111027281A (en) * | 2019-11-20 | 2020-04-17 | 北京字节跳动网络技术有限公司 | Word dividing method, device, equipment and storage medium |
CN111563363A (en) * | 2020-05-12 | 2020-08-21 | 北京飞漫软件技术有限公司 | Method for generating and analyzing hypertext markup language document content |
CN112231619A (en) * | 2020-10-15 | 2021-01-15 | 北京三快在线科技有限公司 | Conversion method, conversion device, electronic equipment and storage medium |
CN112650479A (en) * | 2019-10-10 | 2021-04-13 | 上海哔哩哔哩科技有限公司 | Webpage CSS structure automatic generation method and storage medium |
CN116136760A (en) * | 2023-04-17 | 2023-05-19 | 深圳复临科技有限公司 | Method, device, equipment and storage medium for replacing native selector of browser |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7383498B1 (en) * | 2002-12-27 | 2008-06-03 | Sap Ag | Editing styles for markup documents using parametrized styles sheets |
CN102479181A (en) * | 2010-11-22 | 2012-05-30 | 中国电信股份有限公司 | Method and device for extracting webpage text based on DIV (Division) position |
US20120173967A1 (en) * | 2010-12-30 | 2012-07-05 | Opera Software Asa | Method and device for cascading style sheet (css) selector matching |
CN102663126A (en) * | 2012-04-23 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and device for displaying webpage in mobile terminal |
CN103593414A (en) * | 2013-10-29 | 2014-02-19 | 北京奇虎科技有限公司 | Showing method and device of webpages in browser |
CN105205080A (en) * | 2014-06-26 | 2015-12-30 | 阿里巴巴集团控股有限公司 | Redundant file clearing method, device and system |
CN106503212A (en) * | 2016-10-27 | 2017-03-15 | 中企动力科技股份有限公司 | A kind of method to set up of web page element pattern and device |
US20170097927A1 (en) * | 2014-04-17 | 2017-04-06 | Hewlett Packard Enterprise Development Lp | Cascading style sheet meta language performance |
-
2018
- 2018-12-13 CN CN201811527481.6A patent/CN109725965A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7383498B1 (en) * | 2002-12-27 | 2008-06-03 | Sap Ag | Editing styles for markup documents using parametrized styles sheets |
CN102479181A (en) * | 2010-11-22 | 2012-05-30 | 中国电信股份有限公司 | Method and device for extracting webpage text based on DIV (Division) position |
US20120173967A1 (en) * | 2010-12-30 | 2012-07-05 | Opera Software Asa | Method and device for cascading style sheet (css) selector matching |
CN102663126A (en) * | 2012-04-23 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and device for displaying webpage in mobile terminal |
CN103593414A (en) * | 2013-10-29 | 2014-02-19 | 北京奇虎科技有限公司 | Showing method and device of webpages in browser |
US20170097927A1 (en) * | 2014-04-17 | 2017-04-06 | Hewlett Packard Enterprise Development Lp | Cascading style sheet meta language performance |
CN105205080A (en) * | 2014-06-26 | 2015-12-30 | 阿里巴巴集团控股有限公司 | Redundant file clearing method, device and system |
CN106503212A (en) * | 2016-10-27 | 2017-03-15 | 中企动力科技股份有限公司 | A kind of method to set up of web page element pattern and device |
Non-Patent Citations (1)
Title |
---|
车元媛;: "CSS技术在网页设计中的应用研究", 科技信息, no. 05, pages 514 - 515 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112650479A (en) * | 2019-10-10 | 2021-04-13 | 上海哔哩哔哩科技有限公司 | Webpage CSS structure automatic generation method and storage medium |
CN110688118A (en) * | 2019-10-28 | 2020-01-14 | 郑州阿帕斯科技有限公司 | Webpage optimization method and device |
CN110688118B (en) * | 2019-10-28 | 2023-05-05 | 郑州阿帕斯科技有限公司 | Webpage optimization method and device |
CN111027281A (en) * | 2019-11-20 | 2020-04-17 | 北京字节跳动网络技术有限公司 | Word dividing method, device, equipment and storage medium |
CN111027281B (en) * | 2019-11-20 | 2023-06-06 | 北京字节跳动网络技术有限公司 | Word segmentation method, device, equipment and storage medium |
CN111008513A (en) * | 2019-12-16 | 2020-04-14 | 北京华大九天软件有限公司 | Cell matrix merging method in physical verification of flat panel display layout |
CN111563363A (en) * | 2020-05-12 | 2020-08-21 | 北京飞漫软件技术有限公司 | Method for generating and analyzing hypertext markup language document content |
CN111563363B (en) * | 2020-05-12 | 2023-08-15 | 北京飞漫软件技术有限公司 | Method for generating and analyzing document content of hypertext markup language |
CN112231619A (en) * | 2020-10-15 | 2021-01-15 | 北京三快在线科技有限公司 | Conversion method, conversion device, electronic equipment and storage medium |
CN116136760A (en) * | 2023-04-17 | 2023-05-19 | 深圳复临科技有限公司 | Method, device, equipment and storage medium for replacing native selector of browser |
CN116136760B (en) * | 2023-04-17 | 2023-07-04 | 深圳复临科技有限公司 | Method, device, equipment and storage medium for replacing native selector of browser |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109725965A (en) | Cascading style listing maintenance, device, computer equipment and storage medium | |
US10726195B2 (en) | Filtered stylesheets | |
US20240004949A1 (en) | Systems and Methods for Hosted Applications | |
CN102955854B (en) | A kind of webpage exhibiting method based on HTML5 agreement and device | |
US10542123B2 (en) | System and method for generating and monitoring feedback of a published webpage as implemented on a remote client | |
US9576068B2 (en) | Displaying selected portions of data sets on display devices | |
CN104866512B (en) | Extract the method, apparatus and system of web page contents | |
EA033675B1 (en) | System and method for automated conversion of interactive sites and applications to support mobile and other display environments | |
US20110167332A1 (en) | System and Method for Generating Web Pages | |
WO2014172680A2 (en) | Client side page processing | |
CN104049991A (en) | Method and system for converting network applications into mobile applications | |
CN104899212B (en) | Web page display method, server and system | |
KR101340588B1 (en) | Method and apparatus for comprising webpage | |
CN108090069A (en) | A kind of method and apparatus for showing web page resources in a browser | |
CN110990345A (en) | Method and device for online preview of Excel file | |
CN110381363A (en) | Video encoding/decoding method, device, server and storage medium | |
CN107368546B (en) | Method and device for generating article outline | |
CN110032694A (en) | Form of general use control implementation method suitable for network auditing system | |
CN104978325B (en) | A kind of web page processing method, device and user terminal | |
CN113360106B (en) | Webpage printing method and device | |
CN115659087B (en) | Page rendering method, equipment and storage medium | |
US11126410B2 (en) | Method and apparatus for building pages, apparatus and non-volatile computer storage medium | |
CN110244948B (en) | Method for switching button states based on programming language and electronic equipment | |
CN115878098A (en) | Data processing method, device, equipment and storage medium | |
CN112800078A (en) | Lightweight text labeling method, system, equipment and storage medium based on javascript |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |