Town Field Poem:The Pure Heart sentiment wisdom language, does not have the world name and the benefit. Learn water under the hundred rivers, give up arrogant slow meaning.Learn to have a small return to feed root, willing to cast a conscience blog. Sincere in this writing experience, willing to see the text to inspire.——————————————————————————————————————————EX1:CodeResultEX2:CodeResult——————————————————————————————————————————The essence of the blog, in the technical part, more in the town ya
DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">HTMLxmlns= "http://www.w3.org/1999/xhtml">Head>Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" />title>Untitled Documenttitle>styletype= "Text/css">Div{width:100px;Height:100px;Background-color:#F00;}/*This is always the case if the ID is used here, because the ID has a higher priority than
Because the project writes the document structure, writes the CSS more personnel, and works with the programmer, needs unifies the class and the ID the name, commonly used keyword:Container: Container/boxHead: HeaderMain navigation: MainnavSub-navigation: SubnavTop Navigation: TopnavWebsite Logo: LogoBig AD: BannerMiddle page: mainbodyBottom: FooterMenus: MenuMenu content: menucontentSub-menu: submenuSubmen
: First-of-typeP:first-of-type Select the first : Last-of-typeP:last-of-type Select the last : Only-of-typeP:only-of-type Select the : Only-childP:only-child Select a unique child element that belongs to its parent element: Nth-child (N)P:nth-child (2) Select each : EmptyP:empty Select each : Enabled input:enabled Select each enabled :d isabled input:disabled Select each disabled : Checked input:checked Select each selected CSS new Pseudo-
Instancea: Link {color:#FF0000;} / * non-visited links * / a:visited {color: #00FF00 Span class= "hl-reserved" >;} /* visited link */ a:hover {color: #FF00FF ;} /* mouse over link */ a:active {color: #0000FF ;} /* selected links */ Note: in CSS definitions, a:hover must be placed after A:link and a:visited to be valid.Note: in the
[Document of the fire School of website construction] Today, a friend asked CSS questions in the group. When talking about the difference between Class and ID, I suggested Baidu. Then he checked a lot of articles, I still don't quite understand it, so I had to give it a one-by-one analysis.Class is the class for setting labels.Id is the identifier of the tag.The
"alt=" Wkiol1byc6siedymaacophzrvrc869.png "/>Four, pseudo-element selectorPseudo-element: First-letter-: First-letter selector to select the first letter of the specified selector-often used for typesetting details such as initials highlighting, sinking, etc.650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7D/E2/wKiom1byC32ysFjHAACGOSu3dec073.png "title=" Web.png "alt=" Wkiom1byc32ysfjhaacgosu3dec073.png "/>Pseudo-element: First-line-: First-line selector for selecting the first row o
Source: http://www.css88.com/archives/744-------------------------------------------------------------------------------------------------IE6 under the link pseudo-class (: hover) CSS background image has a flashing bug, the main reason IE will once again request this picture, or that the picture is not cached.For example:CSS Code
a:hover{background:URL (imagepath)}
Common solutions:Add the f
Focus on the use of After and before:How to becomeThe above directory structure is generated by jstree, we know that there is no tag behind, how to generate it?Very simple, only CSS style can be done: tag element + pseudo-class aftera.task-pack:after{//My style name is this, you can write your own style nameContent: ' Packaged ';Display:inline-block;min-width:10px;PADDING:3PX 7px;margin-left:2px;font-size:1
css| Tutorial | style sheet
classIn order to define the Web page format more accurately, it is necessary to make the same selectors can be categorized, and can be different categories for different style design. The basic format is as follows:
Selector. Category name {property: value}
A category name can be referenced in an character of an HTML ID:
Instance:
ID
ID, which is to send an "id" to the style in HTML text, to ensure that it has
Dynamic dynamically change the class and dynamically_layout of the css label of the master _ Layout page body
This function is a function recently implemented by Insus. NET. It is a class that dynamically changes the style css of the master _ Layout page body tag in dynamically.Many views share a master _ Layout page,
JS is often used to dynamically set CSS classes, two methods.1, ClassNameClassName is a string that contains all classes, so adding a delete class is just as good as manipulating a string.Adding classes is simple and straightforwardObj.classname + = ' active ';Remember to add a space.To remove a class, you need to use the string replace function.Obj.className.rep
Recently saw some of the pseudo-class articles and examples, feeling not impressed, today in the project has an effect, write down toThere is a horizontal line in the text two times.1. Page Local Area layoutdiv->span-> kanji (Small type)The class is quote-right on 2.span 3 add its corresponding pseudo-class in CSS.
CSS pseudo-class: Control the state of an elementSyntax: element name: Pseudo-class Name {attribute: value}CSS pseudo-class controls link state
State
Grammar
Non-visited links
A:link{color: #ff00ff}
Links that have bee
This article mainly introduces the CSS Update class implemented by php and its usage examples, including functions such as checking template files, updating and replacing template files, which are very practical, for more information, see the examples in this article to describe the CSS Update class implemented by php
; Divclass= "Left">Left Fixed widthDiv> Divclass= "Right">Right Width adaptiveDiv>Div>The tutorial mentions the two-column adaptive layout scheme:4,the relationship between overflow and Position:absolute:4-1-1, the parent element already has the Overflow:auto attribute, and adding the Position:absolute attribute to the IMG in the diagram will invalidate the scrollbar and the picture does not move with the scroll bar.4-1-2, the parent element has the Overflow:hidden property, and then adds
;Collectiona>Li>Li>ahref="">Drafta>Li>Liclass= "Last">ahref="">Projecta>Li>ul>To achieve this, we can use a composite selector in CSS .ChooseLabelYou can use a selector to define all the elements, as follows:. Nav Li a {} Select the first elementTo increase the fillet effect in the upper-left corner of the list, you need to select the first element. This can be done with the following selector:. Nav Li.first a {} Select the last elementTo increa
left side of the gutter, only for @page rules
: Right
Defines the style used by all pages on the right side of the gutter, only for @page rules
: lang
Defines the content style of an object using a special language
Pseudo-Object
Description
: After
Used with the content property to define what is behind the object
: Before
Used with the content property to define what is in front of
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.