HTML elements are defined as block-level elements or Inline elements. So What Are block-level elements, inline elements, and inline elements?
Block-level element (block) features:When a block-level element is displayed in a brows
Many CSS beginners in the CSS inline elements and CSS block-level elements, it may be easy to confuse, then, this article will explain to you CSS inline elements and block-level elements of what? and the difference between CSS block-level elements and CSS inline
One or three large instruction elements: 1. Page directive 2. Include directive 3. Taglib instruction two or seven Big Bang element: 1. Forward Action 2. Include Action 3. Param Action 4. Plugin action 5. Usebean Action 6. SetProperty Action 7. GetProperty action three or three large script element: 1. Statement 2. Script 3. An expressionAbove to write about, specifically to be continued ...JSP three major instruction
CSS, jquery selector syntax are similar, because of the use of a few, some selectors are often confused or forgotten, so here to understand the record under:1. Descendant element Selector ( ancestor descendant ), child element selector ( parent > Children)The same HTML code: form > name= "Son"> fieldset> name= "grandson"> fieldset >form>Descendant selector: . UL Li , can be selected to get descendants of descendant elements: [ inp
Block-level elementsH1-h6>>1-6 level headingsp>> ParagraphDiv>> defining sections in a documentUl>> Defining unordered ListsOl>> defining an ordered listLi>> defining an unordered list and an item in an ordered tableHr>> Horizontal LineAddress>> Define contact information for the author or owner of a documentBlockquote>> Defining Long referencesPre>> defining pre-formatted textForm>> Defining the formFieldset>> defines the border around elements in a
Block element is generally a container element of other elementsBlock 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 bloc
Block element)It is generally a container element of other elements. Block elements generally start from a new line and can accommodate inline elements and other block elements. Common block elements are section tags 'P. The "form" block element is special. It can only accom
Summary of line elements and block-level elements in html, and summary of html elements
I. First, let's summarize the following elements and block-level elements:
Line element:
embed an image into the webpage
Block-level elements
Summary of line elements and block-level elements in html, and summary of html elements
I. First, let's summarize the following elements and block-level elements:
Line element:
embed an image into the webpage
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 conv
First, select elements through HTMLSelecting Elements by ID-document.getElementById (' id ') can be used to select a child element based on the ID in the current DOM tree650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7E/5C/wKiom1b8_g_wmda3AAF6fOGaY80526.png "title=" Web.png "alt=" Wkiom1b8_g_wmda3aaf6fogay80526.png "/>Select elements by Tag name-Node.
We mainly summarize in jquery the sibling elements of an element, child elements and parent elements of the acquisition, the original JavaScript code for these elements of the acquisition is more cumbersome, and jquery just to encapsulate these methods, let us more convenient to get and manipulate these elements.Method
First of all talk about the acquisition of JS, which is much more cumbersome than the jquery method, followed by the jquery method for comparison
JS method is much more troublesome than jquery, mainly because the FF browser, FF browser will be your line of exchange as the most DOM element
Native JS Gets the child element under the element with the ID test. Can be used:
Like what:
var a = Docuemnt.getelementbyid ("Dom"). Getelementsbytagname_r ("div"); This is no problem.At this time a.leng
1. Some special font styles:Indent 2 characters in first line: {text-indent:2em;}Center horizontally: {text-align:center;}Justify: {text-align:justify;}Center vertically: {vertical-align:middle;}Word spacing 2 characters: {letter-spacing:2em;}Line spacing twice times: {line-height:2;}2. The navigation bar is fixed somewhere on the page (relative to {position:fixed;left:px;top:px;}3. Block-level elements and inline
inline and block-level elements
inline elements are generally containers of content, while block-level elements are generally containers for other containers . In general, inline elements can only contain content or other inline elements. Width and length are based on conte
Block elements:It is generally the container element of other elements, can accommodate block elements and inline elements, which by default will not be the same line with other elements, that is, the equivalent of two blocks are written together vertically layout. The most common is div and PInline elements:Inline ele
It's not easy to use CSS to center an element in a display. The same CSS centering settings in different browsers also have their own performance. This article introduces several common methods for displaying elements horizontally in CSS. 1. Centering with automatic marginThe preferred way to center elements horizontally in CSS is to use the margin property-set the Margin-left and Margin-right properties o
example, the code running effect 2.1.6.3 is shown. to better illustrate the problem, a black solid-line border with 1 pixel width is added to both block elements and embedded elements. You can see that DIV is a block element by default, when the value of the display attribute is defined as inline, embedded elements are displayed, while SPAN
Blocks (block) elementDisplayed as a piece, with a newline before and after. Block elements are commonly used in the main building blocks of Web pages. such as:inline (inline) element (inline Element)Displays the contents of the parent element in a row within the row. Inline elements are often used to mark small pieces of content. such as:Empty (void) elementNo content, with a start tag. such as:Entity char
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.