New players play some black technologies in CSS and new css Technologies

Source: Internet
Author: User

New players play some black technologies in CSS and new css Technologies

Alas

1. Move the mouse into the webpage and disappear =

*{    cursor: none!important;}

2. Simple text blur effect

*{     color: transparent;    text-shadow: #111 0 0 5px;}

3. Multiple Borders

.div {    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.2), 0 0 0 12px rgba(0, 0, 0, 0.2), 0 0 0 18px rgba(0, 0, 0, 0.2), 0 0 0 24px rgba(0, 0, 0, 0.2);    height: 200px;    margin: 50px auto;    width: 400px}

4. Edit CSS in real time

<! DOCTYPE html> <body> <style>

5. Simple operations in CSS

.div{    width: calc(100% - 500px);}

6. border-radius

This is basically the case for many people:

.div {     border-radius: 4px;}

A little more advanced:

.div {    border-radius: 4px 6px 6px 4px;}

V

However, the ultimate Black technology is used as follows:

.div {     border-radius: 5px 5px 3px 2px / 5px 5px 1px 3px;}

Border-radius: It can be assigned eight values:
The vertical direction is the vertical direction,
Each number represents four different directions.

7. outline-offset

When writing CSS in input, you will be familiar with the following statements:

input {    outline : none;}input:focus {    outline : none;}

This is how to remove the default blue box from the input box.

CSS also has an outline-offset attribute. In this attribute, you can set the distance of the default line frame:

input {    outline-offset: 4px ;} 

Adjust the value of this attribute so that you can see that the outline distance has changed.

Finally, I presented my colleague's demo before the internship.

<! Doctype html> 
I have a front-end learning exchange QQ group: 328058344 if you encounter any problems during the process of learning the front-end, please come to my QQ Group to ask questions. The group will update some learning resources every day. Chat is prohibited.

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.