Hyperlink pseudo-Class name (before, after click, mouse hover, when clicked).Tag name: Link visited hover activeSets the properties of the mouse shape (value: Default cursor, pointer to hyperlink, indicates that the program is busy, indicates
This article simply explains how to use CSS3 to implement a simple responsive layout:
CSS3 File:
*{margin:0px; padding:0px;}. heading,.container,.footing{margin:10px Auto;}. heading{height:100px; background-color:red;}.
What is a web-responsive website? The responsive site is the Web browsing CSS based on the screen width, automatically adjust the page p display and layout, to adapt to different size screen optimization browsing experience. First look at a
To set the font in the page, we know there are two common, px and em.
Px
In Web page production, we generally use "px" to set our text, because he is more stable and accurate. However, there is a problem with this approach, when the user in the
CSS3 How to achieve interlaced color change? Use CSS3 selector p:nth-of-type (odd) odd and p:nth-of-type (even) even numbers
Here are some examples:
this is a headingthe first paragraph.the Second paragraph.the third paragraph.
The CSS implementation in the loading animation effect is as follows:
Html
loading
Css
. ui-loading-wrap { display:-webkit-box; -webkit-box-pack:center; -webkit-box-align:center; Text-align:center; height:40px;. ui-
Code Show:
Overflow:hidden;/*text-overflow:ellipsis; Some examples need to define this property, can actually omit */display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
Overview
-webkit-line-clamp is a non-canonical attribute
Using @media screen to realize the self-adaptation of Web page layout
Pros: No plugins and phone themes, friendly to mobile devices, adaptable to various window sizes. Simply add the @media screen property to the CSS, judging by the browser width
Eight, simple introduction of CSS combined with JS application (for event action)
The use of CSS with JavaScript can do a lot of cool dynamic page effect, at the end of this tutorial to give you a brief introduction of CSS with JS application.
Pseudo-classes can be seen as a special class selector, a special selector that can be automatically recognized by browsers that support CSS. Its greatest use is the ability to define different style effects for links in different states.1.
Today, the interview encountered a choice question, the title is as follows:
At that time not sure, came back to check the information, according to the words should be selected true.
Browser support
All major browsers support the overflow
One, the transformation between the block element and the inline element
About the transformation between block-level elements and inline elements we can use CSS to solve this, the attribute difference between block elements and inline elements
Using abbreviations can help reduce the size of your CSS files and make them easier to read. The main rules for CSS abbreviations are as follows:
Color
16 binary color values, if each two bits of the same value, can be shortened by half, for
This article has compiled the common CSS file naming conventions, CSS style ID naming conventions and the common Chinese and English controls in their websites.
One, style file naming specification
The main master.cssLayout, Layout layout.cssColumn
This is a popular way to clear the float and has been fully adopted on many major projects.
This method is derived from positioniseverything and is implemented by the after pseudo-class: After and Iehack, fully compatible with the current
Now in the design of websites and apps
increasing emphasis on user experience, and good mobility can make your application more interactive, attracting more users. I usually add some to the website
Simple and consistentAnd the technology I use
As a front-end development, especially when doing mobile adaptation, REM is the unit we often use, its benefits we can search by themselves, there are many online.
But when we convert the PX on the design to REM, it's a time-consuming and laborious
When I was doing the navigation exercises, I was looking at the source code of those sites that had been successful, hoping that through these successful code I could learn the programming ideas of the front-end engineers behind the code.In the view
Today wrote a section of CSS, writing suddenly thought, write to share with you; We may have been accustomed to http://www.php.cn/wiki/948.html "target=" _blank ">padding in different browsers, but this you do not necessarily notice;
Say a scene
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