CSS abbreviationMultiple rows of CSS attributes are declared as one row, also knownCSSCode optimization. The biggest benefit of CSS shorthand is that it can significantly reduce the size of CSS files. In fact, there are many other benefits. A bloated and messy CSS style shee
code? Oocss's founder, Nicole Sllivan, raised two main principles:
Structure and style separation: you should define the structure and location in the object, and the style attribute should be separated from the class name, such as background or border. So you don't have to cover some of the characteristic styles.
Separation of containers from content: Do not insert styles into your HTML structure. In other words, try not to use an HTML tag or ID i
First, why use lessMost of the time we think that CSS is just framed, the front-end play is JavaScript, in fact, a lot of HTML + CSS to achieve the effectiveness of more than the cost of using JS. What's less? Why should we use less? Less is a CSS pre-compiler, meaning that
What is CSS expression?
Ie5 and later versions support the use of expression in CSS to associate CSS attributes with JavaScript scripts. the CSS attributes here can be inherent attributes of elements or custom attributes. That is to say, the
Use Js or Css filters to implement the IE6PNG image translucent effect in IE6. ie6ie6png
Next we will introduce severalSolution to Opacity of PNG images in IE61. Use your own PNG to let IE6 go
When creating a PNG Image, save it as a GIF image, because IE6 supports gifimage transparency, and then defines
.pngtest{ background:url(mark.png); _background:url(mark.gif
execute the Apply command (Figure 2).
Unified Control Super Link
Hyperlinks are often used in Web pages, and the link color of the page by default are blue, although you can change, but the single color in different background colors on the page is not so effective, we look at how to use the CSS control page to achieve different personality link color. In the New Style dialog box, select the type of
First: What's the browser compatibilityBrowser compatibility issues are also referred to as Web compatibility or web compatibility issues, meaning that Web pages may appear inconsistent across browsers, resulting in compatibility issues between browsers and Web pages. In the design and production of the website, do a good job of browser compatibility, to allow the site under different browsers are normal display. For the development and design of the browser software, the better compatibility of
Statement: The following content collected in the network, after the talent understanding, to organize editing, reprint please keep the Wit station link, thank you!!!
Notes of wit: http://blog.54caizi.com
Friends who play Web refactoring believe that there is a similar distress, that is because the browser version of the different, some elements in the CSS interpretation is not the same, the wit of course also encountered the same problem, but also c
css| Page | style sheet
first, use the style attribute: Add the style attribute directly to the individual component labels.
The advantage of this usage is that it can be used neatly in each label, but the disadvantage is that there is no "uniformity" of the whole document.second, use style tags: write style rules in tags.
For example:
Usually the entire str
[Question and Answer question] Topic description Please use CSS to achieve the following figure style, related dimensions such as illustration, where the DOM structure is:
realize the idea
1, first think about a problem: When the border-width is relatively large, its four borders is how to divide. The answer is " equal area Division ", as follows:
(Four congruent trapezoid)
2, further consider, the div
panel, and then execute the Apply command (Figure 2).
Figure 2
Unified Control Super Link
Hyperlinks are often used in Web pages, and the link color of the page by default are blue, although you can change, but the single color in different background colors on the page is not so effective, we look at how to use the CSS control page to achieve different personality link color. In the New Style dialog box,
Author: Ma Jian
Email: stronghorse@tom.com
Home: http://stronghorse.yeah.net
Version: 1.01
Initial Release Date: 2005.08.29
Last Updated: 2005.09.28
DirectoryI. Preface2. General steps for getting files from an ebook or webpage3. Obtain the linked css file from an ebook or webpage4. Obtain the linked js file from an ebook or webpage5. Obtain Flash files from an ebook or webpage6. obtain background music files from an ebook or webpage7. obtain image f
In the W3CN of Atzie, he said:
Reference contentIn the past, we usually used style sheets in 2 ways:Page inline: Just write the style sheet directly in the head area of the page code. Something like this:External invocation Method: Write the stylesheet in a separate. css file, and then invoke it in the page head, similar to the following code.In the design that conforms to the Web standard, we use the ext
CSS truncation is a disgusting problem. In order to take care of performance needs, it is often necessary to cut short sentences that are too long, such as a headline in a list.
This is usually handled by programmers using background technology (a variety of popular languages, PHP, JSP, etc.) or foreground technology (JAVASCRIPT). I am personally inclined to use the foreground technology, because it is goo
The appropriate use of CSS and javascriptxhtml™1.0 the extensible Hypertext Markup Language (Second Edition) in XHTML documents is to define XHTML in order to put HTML 4 Expands Imaging XML 1.0 applications.
XHTML is rapidly replacing HTML 4 in many sites, however, mainstream browsers are not doing enough to fully support XHTML, and web designers lack understanding of the fundamental differences between HT
In our daily Web page development, each page has a lot of div layout, then we know in the development of CSS float will produce CSS float, that after each float, we have to do is to clear the float, this use we will be using the clear style properties to achieve, Today, we will introduce the clear both clean floating use
When talking about how to use it. Let's take a look at the relevant definition of CSS for the position property:Static: No special positioning, objects follow normal document flow. Attributes such as top,right,bottom,left are not applied.Relative: Objects follow normal document flow, but will be offset in normal document flow based on attributes such as Top,right,bottom,left. And its cascade is defined by t
css| Web page
CSS can handle 16,777,216 colors, using first name, RGB value, or hexadecimal code.
Red colorEqual toRGB (255,0,0)Equal toRGB (100%,0%,0%)Equal to#ff0000Equal to#f00
There are 17 predefined colors, which are:
Aqua, black, blue, fuchsia, gray, green, lime, maroon, navy,
Olive, orange, purple, red, silver, teal, white, and yellow.
Transparent is also a correct value.
RGB three values are from 0
Padding is a more commonly used CSS style, we can use the padding style to set the padding, the following we from the basic syntax to the application of the demonstration of a small example to tell you how to use the padding style,
padding syntax structure and description
padding: + value + unit or Percentage value
DIV{PADDING:5PX} set object distance from four-
Basic use of CSS We recommend a front-end Learning Website: http://www.w3school.com.cn/index.html. As a back-end developer, it is enough to understand the basic front-end knowledge, and the rest will be learned again.CSS IntroductionThe full name of CSS is Cascading Style Sheet (stacked Style sheet). CSS is used to sep
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.