Method for implementing CSS multi-browser compatibility

A multi-browser and browser technology, applied in the direction of instruments, website content management, special data processing applications, etc., can solve problems such as CSS compatibility differences, achieve the effects of improving usability, concise structure, and enhancing user experience

Inactive Publication Date: 2015-08-26
G CLOUD TECH
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem solved by the present invention is to provide a method for realizing CSS

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 for implementing CSS multi-browser compatibility

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Such as figure 1 As shown, the present invention uses common HTML tags Combining with CSS style sheets to achieve multi-browser compatibility, the specific steps are as follows:

[0033] Step 1, first create an html page and an external style sheet file (.css);

[0034] Step 2. Link in the external css style sheet in the html page;

[0035]

[0036]

[0037]

[0038] Step 3. Definition The tag also sets the class or id attribute;

[0039] Step 4. According to the needs of different browsers, write the css style corresponding to the class

[0040] Such as:

[0041] .select {color: #fc0! important;}! important can be recognized by FireFox and IE7

[0042] .select{*color: #fc0;}* can be recognized by IE6 and IE7

[0043] .select{_color: #360;}_ can be recognized by IE6

[0044] .select{*+color: #36c;}*+ can be recognized by IE7

[0045] *html.select{color: #666;} / *IE6* /

[0046] *+html.select{color: #999;} / *IE7...

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 present invention relates to the technical field of Web front-end development, and in particular relates to a method for implementing CSS multi-browser compatibility. The method according to the present invention achieves CSS multi-browser compatibility via a combination of
label and CSS style. The method according to the present invention effectively solves the problems that floating in the conventional IE browser generates double distance, FF and IE are not adaptive to the difference and height of a box model, and thus the integral effect of the page is affected. The method can be used in implementation of compatibility of CSS with various browsers.

Description

technical field [0001] The invention relates to the technical field of Web front-end development, in particular to a method for solving CSS multi-browser compatibility. Background technique [0002] With the development of the Internet, the design of the page is becoming more and more complicated and the user experience requirements are getting higher and higher. For example, when we use different browsers (Firefox IE7 IE6) to visit the same website or page, there will be Some incompatibility issues. Some display is normal, some display is abnormal, and some dislocations cause the deformation of the page and affect the overall effect of the page, which is not good for the user experience. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a method for realizing CSS multi-browser compatibility, and solve the problem that browsers have differences in CSS compatibility. [0004] The technical scheme that the present ...

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/986
Inventor 秦峰秀季统凯
Owner G CLOUD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products