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;}
VHowever, 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.