This article is mainly about how the HTML span tag can be wrapped, introducing the use and introduction of the seven attributes of span. Let's take a look at this article together.
The first thing we're going to introduce is how to make the span
Does text, images, and other things in span conform to the standard? Does text, images, and other things in span conform to the standard? Reply content: the element in the silent line.
Define the style of the content that is different from the style
Div and Span differencesRelative to other XHTML tags, div and span are meaningless for the elements they contain. For example when you see the tag, you know that the inside is the title, and when you see the tag you know that the inside is a new
css| Web page
Use Div to layout, the proposed div should be used to organize the code structure, now we go a little deeper, Div has semantics?
The question was hotly debated in the study group some time ago, when Rice was asked: "What is semantic
Css
One months, I'm back, okay, let's keep talking.
In the previous article, the main negation of the use of Div layout this argument, the proposed div should be used to organize the code structure, now we go a little deeper, Div has semantics? The
One, the shape such as ABC independent line set span to fixed width method as follows:span {width:60px; text-align:center; display:block;}Actual verification results: IE6 OK, FIREFOX 3 OK.One, such as ABCDEF format line set span to fixed width
Css
Use Div to layout, the proposed div should be used to organize the code structure, now we go a little deeper, Div has semantics?
Division (split), right, a while ago browsing w3schools, see it is so defined div: the div tag defines a
One, the shape such as ABC independent line set span to fixed width method as follows:span {width:60px; text-align:center; display:block;}Actual verification results: IE6 OK, FIREFOX 3 OK.One, such as ABCDEF format line set span to fixed width
one, the shape such as ABC independent line set span to fixed width method as follows:
span {width:60px; text-align:center; display:block;}
Actual verification results: IE6 OK, FIREFOX 3 OK.
one, such as ABCDEF format line set span to fixed width
Span set CSS style does not work, there should be a lot of friends have seen it, small series have met today, after the search to sort out the experience is to let span into block-level elements to show that the CSS style will work
Copy Code code
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.