Seven CSS units that you may not know, css units
Seven CSS units you may not know
As we all know, although we are very familiar with CSS technology, it is easy to get stuck in the Process of use, which makes it very unfavorable when new problems
Solution: document. body. scroll
There is a function that needs to determine whether the return button is displayed on the top.
The JS Code is as follows:
var sTop = document.body.scrollTop; if(sTop>100){ document.getElementById("sm_top")
/,./,.../Difference,... difference
/Represents the root directory of the current file (the root directory of the drive letter, such as drive C and drive D );
./Represents the root directory of the current file. If you want to read files in the
Question about import google file, aboutimport
1. question descibe;
Once, one css file(app.css) of my web project has sentence like this:
@ Import url (http://fonts.googleapi.com/css? Family = Source + Sans + Pro: 300,400,600,400 italic );
Then
Deep understanding of CSS float and deep understanding of css* Directory [1] define [2] features [3] To show [4] overlapping words
The earliest use of floating is from , which is used for text-surround image formatting. Today, floating is a common
Use the CSS3 telescopic box to vertically center images, while the css3 telescopic vertical center
There are many ways to use CSS to vertically center images. for mobile devices, you can use CSS3 expansion boxes to vertically center images.
The
Share 20 latest free UI design materials to designers and uidesign Materials
User Interface Design involves a lot of creativity, inspiration, and skills to communicate effectively with customers. Good user interfaces are consistent, making websites
HTML series (6): Document structure division,
The common structure layout of web pages is soy sauce, which is really beautiful ^ O ^:
1. Add the basic title h1 ~ H6 (nothing to say );
Ii. Title grouping hgroup
groups titles and subtitles. If an
CSS3 detailed description of align-items and align-self vertical axis row alignment attributes and Examples
The elastic project can be aligned according to the cross axis of the current row of the elastic container, similar to justify-content, but
CSS3 detailed description of how to use the justify-content attribute
The content alignment (justify-content) attribute is applied to the elastic container, and the elastic items are aligned along the main axis of the elastic container.
This
CSS3: Selector
The CSS selector is used to find a certain type of elements so that we can set styles for these elements using style elements or external style sheets.Basic Selector
Selector
Description
Example
Description
Determine the browser version by using conditional comments, and determine the browser version by commenting
All except IE can be recognized all IE identifiable only IE6 can recognize versions earlier than IE6 and IE6 are recognizable IE6 and
Use CSS3 to implement image switching Effects
Use the label and: checked, and use the transform and transition attributes. The implementation is simple. Compared with JS, It is very convenient and has better results. If you are interested, you can
Add color attribute in CSS3CSS color attribute Review
Color name: English names of colors (such as red, blue, pink, and white)HEX hexadecimal mode (# FF0000, # B9B9B9, etc)Rgb color scheme (rgb (, 0, 00 ))
These methods are commonly used color
Adaptive Layout of the width and widthWidth Adaptive Layout
What is adaptive width layout?
That is, when the browser window size changes, the width of the elements in the browser also changes, so as to achieve adaptive layout.
Common adaptive width
EasyUI series (6)-Tooltip (prompt box) and easyui-tooltip
I. Create Components
0. Tooltip does not depend on other components
1. Use class to load
Hover me
2. Load with js
Hover me
Ii. Attributes
1. position: the position of the message
How to display a box in the middle of the browser, the box shows the browser
1. Implemented through CSS
1)
Position: absolute; top: 50%; left: 50%; margin-left:-101px; margin-top:-101px;
2)
position:absolute; left:0; top:0; right:0;
CSS attribute selector and css Selector
P [name] {background: red;} only use the attribute nameP [name = ghr] {background: red;} specifies the attribute name and the attribute value.P [name ~ = Old] {background: red;} This attribute value is a
What is the css prefix for each browser?
What is the prefix of css for each browser:When writing css3 code, you must add a prefix to ensure compatibility with the corresponding browser.The prefix syntax is as follows:
-Webkit // Webkit kernel,
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