css| Design | detailed
Chunk elements (block Element)Typically a container element of another element, the block element typically starts with a new row, it can hold inline elements and other block elements, and the common block element is the paragraph label ' P. "Form" is
css| Basic Tutorials
The main role of C s in this chapter
This chapter describes the block-nature of CSS directives and their application and characteristics, you can set and control the location of blocks, size and edge width and other properties. This chapter will also be divided into two parts for you, the fir
Brief description:
Display: block inline elements define height and width (converted to block elements)
Float: The left block element is located in the same row.
The Firefox area is floating, and float: left is added to the 2nd block elements.
IE6 BUG (the left distance from the browser is not 20 pixels defined in
In daily use, often encountered click button/menu when the text is selected, in order to avoid this situation, you can use the pure CSS to solve the problem (ie10+), for the old version can only use Js:onselectstart = ' return false; ' This way. Here's a look at-prefix-user-select:Formal Syntax:none | Text | All | Element (-prefix-) User-select:none; All are not selectable (-prefix-) User-select:text; Allow text selection (-prefix-) User-select:all
Elements such as p, H1, or div are often referred to as block-level elements, which appear as a piece of content; strong. Elements such as span are called inline elements, and their contents are displayed in rows, or inline boxes. ( You can use display=block to convert inline elements into block elements,display=none means that the generated element doesn't have
Opening
Some elements, such as the float element, such as the element position is Absolute,inline-block,table-cell or table-caption, and the overflow attribute is not a visible element, They will create a new block-level formatting context.
The above definition has described in detail how block-level formatting contexts (blocks formatting context) a
ObjectiveBFC concept began in CSS2, is a pretty old CSS topic, the Internet can be searched everywhere BFC Introduction, but not concise. This article is translated from Rachel Andrew's blog post Understanding CSS Layout and the Block formatting context, the content is concise and clear enough.The purpose of this article is to introduce some concepts to help you
elements
X Most elements of HTML are non-replaceable elements, meaning that their content is displayed directly to the client (for example, a browser). For example:
Paragraph
2. Display elements
In addition to the classification of replaceable and non-replaceable elements, elements in CSS 2.1 have different classifications: block-level elements (block-leve
When you use CSS to implement performance, you will often be exposed to the attributes of Display:inline-block, whether it is the first contact with the Web standards or contact with the standard of a long time friends, most of this attribute feel very confused and blurred.
Display:inline-block
The object is presented as an inline object, but the contents of th
+padding. The block element has a separate row. Inline elements are not exclusive to a single line, and it is useless to set a wide height for him.In HTML, it is a block-level element. display:blockthe setting is to display the element as a block-level element. The code below is to convert the inline element A into a block
layout, and it is the row layouts, so after the trigger, the block element is still the row layout, but not as the block elements in opera as an inline object. How does the IE block element realize the Display:inline-block effect?There are two ways of doing this:1, first use the Display:inline-
Css uses display: inline-block for layout,
Display of css: inline-block Layout
1. Several commonly used display attribute values, inline, block, and inline-block
Inline:
Block:
Inli
ArticleDirectory
1. display: inline-block
2. inline-block in IE
3. Other browsers
4. References
1. display: inline-block
2. inline-block in IE
3. Other browsers
4. References
1. display: inline-block
Let an element have the attribute of "
Css
When you use CSS to implement performance, you will often be exposed to the attributes of Display:inline-block, whether it is the first contact with the Web standards or contact with the standard of a long time friends, most of this attribute feel very confused and blurred.
Display:inline-block
The object is presen
One, the width height of the various elements of the margin padding characteristics (specific CSS elements of the points to see two) 1. Block-level elementswidth, height, margin four directions, padding Four directions are normal display, follow the standard CSS box model. Example: div2. In-line replacement elementswidth, height, margin four directions, padding F
The display: inline-block attribute is often exposed when CSS is used for performance. Whether it's a friend who has been familiar with Web standards or standards for a long time, metropolis is confused and vague about this attribute.Display: inline-blockThe object is presented as an inline object, but the content of the object is presented as a block object.
This paper illustrates the dynamic block drift effect of jquery+css. Share to everyone for your reference, specific as follows:
The screenshot of the running effect is as follows:
The specific code is as follows:
More interested readers of jquery related content can view the site: "jquery animation and special effects usage Summary" and "jquery Common classic Effects Summary"
I hope this artic
for the layout of an example, remember! The element that triggers the BFC becomes a separate box, and the layout of the stand-alone box is unaffected by external influences and does not affect the elements outside! This is the essence of BFC!3. Used to clear floating, calculate BFC height BFC can also be used to clear floating, specific first code: Effect: Here we set a border for the parent element, we want the parent element to wrap the D1, but when D1 set the Float property (that is, tr
Although some elements can use CSS (display: block/inline) to convert intra-row elements and block-level elements, some cannot. For example, labels such as H1, H2, and H3 embedded in DT do not comply with W3C standards.
Although the problem has been solved, I am not very familiar with the line elements (also called inline elements) and
Article Introduction: inline (inline) elements, block-level element differences.
A: Within the line is within a line of elements, can only be placed in the row, block-level elements, is a square block, you can put anywhere on the page.
B: Plainly, inline elements are like a word; block-level elements are l
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.