Let's look at a simple method first.Define two styles in CSS. odd{...} and. even{...} for different background colors for odd-numbered rows and even rows. After the page is loaded, get a list of labels to be discolored through JavaScript, and
Requirements:
(1) The default style is black, 24px, no underline;
(2) When the mouse moved to the hyperlink, automatically underlined, the font size into 40px, color into green;
(3) After clicking, the hyperlink turns red
HTML page content:
Introduction (Introduction)
Our current HTML tour is very smooth and has learned:
1. How to create the basic structure of HTML files
2. Title, paragraph, pictures and links
3. Font color, size and type
4. Background color, text alignment, bold
Straight to the point, now there is a table:
Implement the effect of highlighting the current row background when moving to a transactional content area.
1, the establishment of a standard HTML document structure
When it comes to standard HTML
The Chrome console allows you to format messages using CSS properties. This lesson walks your through the syntax of formatting your logs with CSS then refactoring into a template tag function to Make formatting more reusable.const DEBUG = (label,
Go directly to the theme!
First, from the center of the document flow element
Method One: Margin:auto method
CSS code:
p{ width:400px; height:400px; position:relative; border:1px solid #465468; } img{ Position:absolute;
The transparency attributes of CSS3 opacity presumably everyone has been used everywhere. And for the browser does not support CSS3 how to transparent processing, to maintain the consistent browser effect, this article mainly introduces the detailed
Share a 3D button that is implemented with pure CSS today.
CSS cleverly utilizes the Box-shadow to achieve the stereoscopic 3D object, when the button is pressed to modify the Box-shadow and top values.
It feels like a button is pressed. The CSS
As follows:
The instance code is as follows:
css3 Add a background gradient animation to the button Buttons
Summary Above is the use of CSS3 click the button, the effect of the background gradient animation, interested friends can run their
UNIT02:CSS Overview, CSS syntax, CSS selectors, CSS declarations
My.css
p { Color:yellow;}
Demo1.html
insert title here CSS is cascading style sheets css There are 3 ways to use 1. Inline style 2. Internal Styles 3.
Fan-making principle, the bottom of a solid color prototype, inside 2 of the same color of the semi-circle, can be white, the internal semicircle at a certain angle, you can produce a fan effect
sector drawing fan production principle, the
JS implementation
Recent projects need to implement a character-by-word typing effect, on-line search has a good jquery plugin typed.js, the effect is great
Specific usage can look at the project address, annotated source code more than 200 lines,
Some of the classic CSS techniques, we still need to remember, this can save us a lot of time, below the zero for everyone to recommend a few better CSS skills:
1. Use the same navigation code on different pages
Many pages have navigation menus,
The 1.box-shadow property adds one or more shadows to the box.
Syntax: Box-shadow:h-shadow v-shadow blur spread color inset
H-shadow must, horizontal shadow position, allow negative values.
V-shadow must, vertical shadow position, allow negative
I. Adaptive ellipse
Border-radius Features:
You can specify the horizontal and vertical radii individually, and the values can be percentages, separated by A/(slash) (you can implement an adaptive width ellipse).
You can also specify a
First, picture border border
In the section "CSS border border" We explained in detail the border border property. In CSS, we also use the Border property to define the border of a picture.
Grammar:
Border-width: Pixel value;
Border-style:
One, margin can be negative
In the box model, the Width/height, padding, and border of the content area cannot be negative, but the margin exception, which can be negative.
With regard to the use of negative margin, not much to understand, there
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service