Style : Gets the inline style;currentstyle: Gets the calculated style, also called the current style, the final style. Pros: You can get the final style of an element, including the default value of the browser, rather than just the inline style, as a style, so it's more common.Note: You cannot get composite styles such as background property values, only a single style such as Background-color, and so on.a
Page layout is a key application of CSS.ImgThe traditional solution for layout, based on the box model, depends on the Display property + Position property + Float property. It is very inconvenient for those special layouts, for example, vertical centering is not easy to achieve.ImgIn 2009, a new scheme--flex layout was proposed, which could implement various page layouts in a simple, complete and responsive way. Currently, it has been supported by al
Block elements generally start from the new line, which can accommodate inline elements and other block elements, and the common block element is the paragraph label ' P '. The block element of "form" is special, and it can only be used to accommodate other block elements.
If there is no CSS, the block elements are ordered to go down in a row each time. With CSS, we can change the default layout of this HTML and put the block elements where you w
IE6 is compatible with the inline-block method, and ie6 is compatible with the inline-block method.
Some may say that IE does not support the display: inline-block attribute, indicating that it has doubts or objections. "I always use display: inline-block for inline elements
The two concepts of 1.block and inline are abbreviated, complete and exact, block-level elements (block-level elements) and inline elements (inline elements).Block elements are usually separated by a separate line, and the inline element does not produce a newline, and a series of
Understanding the most common CSS display types of block, Inline-block, and inline would allow you to get the most out of Y Our HTML and use CSS frameworks like Bootstrap to their fullest.Takeway:
Inline:can not add height and width. But can add margin and padding
Inline-block:can add height, width, margin and padding. Not take the whole row.
Bl
block: English translation is a " block " meaning, as a child played the same block blocks, a piece to the top.inline: English translation comes to the meaning of "inline", the inline is not good understanding, my understanding is the element within the line; block and inline are relatively popular, block should be "block-level elments" (Block-level elements),
1. What is the difference between block-level elements and inline elements?Block-level element exclusive rowInline elements can be displayed on a single line, but cannot set the upper and lower padding and margin values.2, block-level elements and inline elements of the conversion of each other?Block-level elements in the change-in element: Display:inline;Inline
Advantages of inline functions:One: the inline function of the class defined by inline, the code of the function is put into the symbol table and replaced directly (as the macro definition expands), without the overhead of the call, the efficiency is high.Second: The introverted function of a class is a real function.Three: Use
CSS block-level tags, inline tags, inline block label conversions
In basic 1, I have detailed the common properties of CSS, several different selectors, on the basis of which we can further understand their characteristics so as to better learn and master the relevant development skills.
Classification of HTML tags
When talking about label classification, we as beginners in the first use of the label will
ConceptBlock-level: blockInline: InlineInline block level: Inline-blockIn an HTML element, the element will have the display propertyThe default value of the Display property is block, then the element is a blocks-level element.The default value of the Display property is inline, and the element is an inline element.The display default value without elements is
1. Get in-line (inline) style:obj.style.attr; Gets a non-inline style.2. Set the inline style:Obj.style.attr = value;3. Get non-inline styles:function GetStyle (obj,attr) { //get non-inline style, obj is an object, attr is the value if (obj.currentstyle) {/ /get non-
Display:block
The block element will have a single row, and multiple block elements will have their own new row. By default, the block element width automatically fills the width of its parent element.
The block element can set the Width,height property. Block-level elements, even if they are set to a width, are still exclusive rows.
The block element can set the margin and padding properties.
Display:inline
The Inline keyword is used to define an inline function of a class. The main reason for introducing it is to use it to replace the macro definition in expression form in C.
An example of macro definition in expression form:
# Define expressionname (var1, var2) (var1) + (var2) * (var1)-(var2 ))
1. Why macro in expression format?
1). High macro execution efficiency. Because it is directly replaced by text at
{conected}}| > | s| -\epsilon) \}
\end{split}
\end{equation}
where \ \ represents the aligned position of the newline,.
four, inline plus symbolIf written as $\sum_{k=0}^{n-1}$, the hyphen in the line will be written in the above and the following parameters as a corner label, should be written as $\sum\limits_{k=0}^{n-1}$, when the inline symbol does not change.
Formula number advanced:
If y
Page layout is a key application of CSS.The traditional solution for layout, based on the box model, depends on the Display property + Position property + Float property. It is very inconvenient for those special layouts, for example, vertical centering is not easy to achieve.In 2009, a new scheme--flex layout was proposed, which could implement various page layouts in a simple, complete and responsive way. Currently, it has been supported by all brow
First, what is the flex layout?Flex is the abbreviation for flexible box, meaning "resilient layout", which provides maximum flexibility for box-shaped models.Any container can be specified as a flex layout.
. box{ Display:flex;}
Inline elements can also use the flex
Flex basic syntax (1): flex basic syntax
Any container can be specified as a Flex layout.
. Box {display: flex ;}
You can also use the Flex layout for In-row elements.
. Box {display: inline-
C ++ inline functions and inline functions
1. Inline Function Definition
Inline functions are basically the same as normal functions when being defined. They just add the "inline" keyword before the function value type. The definition method is as follows:
Name of the ty
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.