Yes, there are always a class of attributes to help you easily find shortcuts, but also for you to add trouble, such as the mastermind of this article Display:inline-block. The role of the front end is to present the object as an inline object, but
Two new properties are added to the processing of the text word-wrap and word-break to solve the problem:
{Word-break:break-all;} : The text rules for Asian and non-Asian languages allow line breaks within words and allow any word in non-Asian text
First look at the ie7+, Firefox, Opera code:
The code is as follows
Copy Code
In IE6, you need some CSS hack to address it, and you need to add:
The code is as follows
Copy Code
One day Harry Roberts had a piece of code on his web site that was being consulted on Twitter and, if possible, improved in some ways. Harry Roberts did the carousel animation using keyframes, so using some mathematical calculations is likely to
The Web page uses the UTF-8 encoding format, which is no problem, the problem is that the external CSS file is ANSI encoded by default and is not saved as a UTF-8 format. You may find that in general this is no problem, however, when the CSS file
Filter properties and sentence Encyclopedia of the filter used in CSS
Grammar: style= "Filter:filtername (Fparameter1, fparameter2 ...)"
(FilterName is the name of the filter, Fparameter1, Fparameter2, etc. are parameters of the filter)
Filter
Most people can easily confuse CSS attribute display with visibility, they seem to be no different, in fact, their differences are very large.
The visibility property is used to determine whether the element is displayed or hidden, represented by
Traditional JavaScript is very cumbersome to manipulate CSS, such as css take its background syntax is document.getElementById ("a"). Style.background, while jquery is more convenient for CSS operations, $ ("#a"). Background (), $ ("#a"). Background
In practical applications, the left column is sometimes required to be fixed width, the right column according to the browser window size automatically adapt, in the CSS to achieve such a layout is simple and feasible, just set the width of the left
This example for you to share the bootstrap CSS layout in the list layout for your reference, the specific content as follows
ListGeneral List ul LiHave sequence table ol LiGo to the point list. list-unstyledInline list. list-inlineDefinition list
Font size using px
Declare CSS within a single line
Compare the following two:
H2 {font-size:18px border:1px solid blue; color: #000; Background-color: #FFF;}
H2 {
font-size:18px;
BORDER:1PX solid blue;
Color: #000;
Background-color: #FFF;
}
The
This translation is not authorized by the author or the website. All rights are vested in the original author and the original website.
If you are authorized by the original author or the original published website, you are free to use this
Application Tip one: Offset and ligatures
We can use the Box-shadow offset effect to write the moving End navigation button "Three staves", the following figure:
We are using the Box-shadow and ligatures! What is ligatures? Is that we can write
CSS text overflow ellipsis
Text-overflow:ellipsis
Ext-overflow is a special attribute, which is defined by the previous document in the current document (which does not contain the Text-overflow attribute, fml!):
Name:text-overflow-modeValue:clip
First look at IE, Firefox, Google Browser under the various font display
IE below:
Under Firefox:
Google under:
From the above figure can be clearly seen under Google CSS settings font size of 12px and below, the display is the same size,
The parent element box contains a child element box that gives the child element box a vertical outer margin margin-top, and the parent element box goes down the margin-top value, while the child element and the parent element's margins do not
CSS Cascading Style Sheets
CSS (cascading style sheets) is the cascading style sheet. It is a computer language used to represent file styles such as HTML (an application of the standard Universal Markup Language) or XML (a subset of the standard
SolutionThe third method is to set the font of the parent element to "0", and then reset the font size on the "inline-block" element. The code is as follows:Copy code Ul {List-style: none outside none;Padding: 10px;Background: green;Text-align:
Because style table items are composed of attributes and their values, it is necessary to understand the various units of the attribute values. In CSS, different units are different from those in HTML.1. Length unitUnit Type descriptionCmWidth of m
JavaScript and CSSIn Part 1 and Part 2, we have introduced several code for improving the page content and server in the website performance. In addition, JavaScript and CSS are also common content on our pages, they are also optimized to improve
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