As a website designer/developer, you must constantly find ways to reduce the time spent in the design/development process. This is very important for improving your work efficiency and maximizing your profits. Which of the following is categorized
In general web pages, we require that the printed results be the same as the displayed results, but in some reports or business systems, we may only need to print part of the page content. For example, if I only need to print data, however, buttons
I will summarize the following HTML encoding elements:
1. The text size is incompatible. It is also the font-size: 14px text. The space occupied by different browsers is different. The actual space occupied by IE is 16 PX, and the space reserved by
To write this effect, you can familiarize yourself with the following:
1. Absolute positioning in relative positioning;
2. CSS for the browser hack;
3. Understand several borders and the changes that can be implemented; and the calculation method of
1. for CSS attributes without hyphens, you can directly use style. attribute name.
For example, obj. style. margin, obj. style. Width, obj. style. Left, obj. style. Position, etc.
2. for CSS attributes that contain dashes, remove each dashes and
So I want to use a method that is convenient to call and update, and the result is as expected. The technical points are summarized as follows:
Before that, I have also looked for implementation solutions for the most popular practices on the
If the background color of this paragraph is green (a darker green than this page's background) then the hack was applied.Example Code
p.test { background-color: #f66;}*:first-child+html p.test { background-color: #6f6;}List of browsers that apply
When jQuery is used to obtain the value of background-color in the style, the obtained color value is displayed in HEX format in IE10 or earlier versions [# ffff00], while IE10, chrome and Firefox display [rgb (255, 0, 0)] in GRB format. To
You can only write native JavaScript to modify CSS attributes using javascript.
1. Use JS to modify the class attribute value of a tag:
The class attribute is one of the methods for referencing a style sheet on a label. Its value is a style sheet
CSS and JS tape (.css? V = with. js? V =)
Copy codeThe Code is as follows:
There are two possibilities for using parameters,
First, the script does not exist, but is dynamically generated by the server. Therefore, a version number is provided
Document directory
Operate CSS using jQuery
JQuery size Method
Operate CSS using jQuery
AddClass ()-add one or more classes to the selected Element
RemoveClass ()-delete one or more classes from the selected Element
ToggleClass ()-
The full name of CSS is cascading style sheets. The Chinese name is Cascade style sheet, also called cascading style Sheet. The advantage is that the code can be neatly organized and some styles can be processed in batches.
Basic Syntax:
Annotator :/
JQuery's css method has two methods of writing in a unified way. You can directly use the float attribute. In the following css method, the parameter "float" can be set or the element's float can be obtained.
Copy codeThe Code is as follows: float
For example, elem. style. height or elem. style. height = '100px '. Note that you must specify the size unit (such as px) for setting any geometric attribute ), at the same time, any geometric attribute returns a string representing the style rather
Problems:
Merge and compress files:1. During each release, you need to run your own bat file or other programs to merge and compress the file according to your configuration.2. because the production environment and the development environment need
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service