Copy codeThe Code is as follows: Rem article title: css buttons using the vbs class
Rem Author: yanek
Rem contact: aspboy@263.net
Class CssButton
Public NamePublic BackColorPublic BorderColorPublic FontPublic FontColorPublic WidthPublic TextPublic Url
Public MouseOverColor
Public Function GenerateStyleTag ()'Create the STYLE tagDim strStyleStrStyle = ""
Generate
This article focuses on using data binding to add a specific class name to an element to apply a specific styleFrom one of the most basic examples:DOCTYPE HTML>HTMLNg-app>Head> title>6.1CSS Classes and Stylestitle> MetaCharSet= "Utf-8"> Scriptsrc=".. /angular.js ">Script> Scriptsrc= "Script.js">Script> styletype= "Text/css">. Submit-false{background:#efefef;Color:#ccc}Button{Border:1px solid #ccc;Outli
The main difference between a pseudo-class and a pseudo-element in CSS is that
The effect of pseudo-class can be achieved by adding an actual class, and
The effects of pseudo-elements need to be achieved by adding an actual element, which is why they are called pseudo-classes, a pseudo-element.
Pseudo-elements a
defined: Before and: After pseudo-elements interact with replaceable elements, such as IMG in HTML. This is defined in detail in future specifications. (The specification here refers to CSS2.1).D. The code below, using pseudo-elements to clear the float. (Here's a question about why you should set visibility, font-size, height, zoom, and so on.) I still cleared the float after I removed these properties under Chrome browser). clearfix:after {visibility:hidden;display:block;font-size:0;content:
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.——————————————————————————————————————————CodeResult——————————————————————————————————————————The essence of the blog, in the technical part, more in the town yard a poem. Editor
animation of a frame of content, as for the second frame to the end of the content is given to v-enter-ative and v-leave-active. v-enter-active: Defines the final state (last frame) of the target element that appears in the document; v-leave-active: Defines the final state of the target element when it leaves the document (the last frame), and disappears when the state is finished.In addition, the transition effect transition is defined in the above two styles, it is no wonder that in the off
Moon Light,The stomach was hungry. Jutou Bacon,Look down and smell the sausage.Moon Light,The stomach was hungry. Jutou Bacon,Look down and smell the sausage.Moon Light,The stomach was hungry. Jutou Bacon,Look down and smell the sausage.Moon Light,The stomach was hungry. Jutou Bacon,Look down and smell the sausage.HTML Learning Note CSS block element plus pseudo class Selector section III (original)
Text justified on both sides:
Copy Code code as follows:
text-align:justify;
Text-justify:inter-ideograph;
Clear float:
Copy Code code as follows:
. clear{clear:both;line-height:0;height:0;font-size:0;}
To clear a floating pseudo class:
Copy Code code as follows:
. Clearfix:after{content: "."; Display:block;height:0;clear:both;visibility:hidden;}
Set no words to break
Cop
This article mainly introduces the pure JS implementation according to the CSS class selection dom, the need for friends can refer to theOn-line reference, I modified part//code as follows, pure JS, request browser support Getelementsbyclassname method code as follows:
CSS-pseudo-element and pseudo-class-tolerance pseudo-class and pseudo-element pseudo-class: occupies,: link in special characteristics
Add a special style to an unaccessed link. That is to say, the URI referred to by the link does not appear in the history of the user agent. This status is mutually exclusive with the v
On the phone when writing a triangle, I generally use pseudo-class, just the beginning of the use of the picture, but in the current cell phone HD screen, the picture is easy to distort, or use pseudo-class bar!The first kind: a 90-degree ">" with only lines. (You can do the arrow of a drop-down box, etc.) for example:. next:after{Content: "";width:6px;height:6px;border-left:1px solid #666;border-bottom:1px
In CSS, the class selector is displayed with a dot number:
. Center {Text-align:center}In the example above, all HTML elements that have the center class are centered.
In the following HTML code, both the H1 and P elements have the center class. This means that both will adhere to the rules in the. Center selector.
Classification and function of Pseudo-class:Note: This table is quoted from the W3school tutorialThe classification and function of pseudo-elements:Next, let the blogger use some vivid examples (previous assignments or small works) to illustrate the use and effects of several commonly used pseudo-classes, other readers can try themselves:: ActiveThe general effect for the mouse click, the element added special effects, when the mouse release, the effect disappears. Use it on the click of the but
the visited style.
The style of the browser or default link. But we usually overwrite it. As follows:
a{color:gray}a:link{color:blue}a:visited{color:red}
As you can see, a {color: gray} is no longer in use and is covered by a: link {color: blue}. Therefore, the text color of the tag is blue.
Three dynamic pseudo classes
CSS2.1 adds three dynamic pseudo classes. It is often used to set the link style. In fact, these three pseudo classes can be applied to many elements. As follows:
1.: focus indi
element*/abbr,acronym{Border:None;font-variant:Normal;}/*consistent del style*/del{text-decoration:Line-through;}Address,caption,cite,code,dfn,em,th,var{Font-style:Normal;Font-weight: -;}/*Remove the identification before the list, and Li will inherit*/Ol,ul{List-style:None;}/*alignment is the most important factor in typography, so don't let anything get centered.*/caption,th{text-align: Left;}/*from Yahoo, let the title be customized, adapt to multiple system applications*/H1,h2,h3,h4,h5,h6{f
This article illustrates the CSS update class and its usage in PHP, which is very practical. Share to everyone for your reference. Specifically as follows:
The CSSUpdate.class.php class files are as follows:
The Demo sample program is as follows:
Full source Click here to download the site.
I hope this article will help you with the learn
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.