-webkit-border-top-left-radius: horizontal_radius vertical_radius;
-webkit-border-radius: radius; //Container rounded corners
-webkit-box-sizing: sizing_model; border constant value: border-box/content-box
-webkit-box-shadow: hoff voff blur color; //Container shadow (the parameters are: horizontal X-direction offset; vertical Y-direction offset; Gaussian blur radius value; shadow color value)
-webkit-margin-bottom-collapse: collapse_behavior; Constant value: collapse/discard/separate
-webkit-margin-start: width;
-webkit-padding-start: width;
-webkit-border-image: url(borderimg.gif) 25 25 25 25 round/stretch round/stretch;
-webkit-appearance: push-button; //Built-in CSS performance, currently only supports push-button
②The "visual formatting model" describes the properties and determines the position and size of block elements.
direction: rtl
unicode-bidi: bidi-override; constant: bidi-override/embed/normal
③ "Visual Effects" describes attributes and adjusts the contents of the visual effects block, including overflow behavior, adjustment behavior, visibility, animation, transformation, and transition.
clip: rect(10px, 5px, 10px, 5px)
resize: auto; constant: auto/both/horizontal/none/vertical
visibility: visible; constant: collapse/hidden/visible
-webkit-transition: opacity 1s linear; animation effect ease/linear/ease-in/ease-out/ease-in-out
-webkit-backface-visibility: visibler; Constant: visible (default value)/hidden
-webkit-box-reflect: right 1px; Mirror reverse
-webkit-box-reflect: below 4px -webkit-gradient(linear, left top, left bottom,
from(transparent), color-stop(0.5, transparent), to(white));
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));; //CSS mask/mask effect
-webkit-mask-attachment: fixed; Constant: fixed/scroll
-webkit-perspective: value; Constant: none (default)
-webkit-perspective-origin: left top;
-webkit-transform: rotate(5deg);
-webkit-transform-style: preserve-3d; constant: flat/preserve-3d; (2D and 3D)
④The "Generate content, auto-number, and list" description attribute allows you to change a component of content, create auto-numbered chapters and titles, and manipulate the style of listing content.
content: “Item” counter(section) ” “;
This resets the counter.
First section
>two section
three sections
counter-increment: section 1;
counter-reset: section;
⑤ "Paging media" describes the properties of performance and appearance, controlling the behavior of printed versions of web pages, such as page breaks.
page-break-after: auto; Constant: always/auto/avoid/left/right
page-break-before: auto; Constant: always/auto/avoid/left/right
page-break-inside: auto; Constant: auto/avoid
⑥The "Color and Background" description attribute controls the background of block-level elements and the color of text content components.
-webkit-background-clip: content; Constant: border/content/padding/text
-webkit-background-origin: padding; Constant: border/content/padding/text
-webkit-background-size: 55px; Constant: length/length_x/length_y
⑦ "Font" is a factor that specifically describes the nature of text font selection. The report also describes the properties used to download font definitions.
unicode-range: U 00-FF, U 980-9FF;
⑧ "Text" describes the specific text style, spacing and automatic scrolling of the attributes.
text-shadow: #00FFFC 10px 10px 5px;
text-transform: capitalize; constant: capitalize/lowercase/none/uppercase
word-wrap: break-word; constant: break-word/normal
-webkit-marquee: right large infinite normal 10s; Constants: direction (direction) increment (number of iterations) repetition (repetition) style (style) speed (speed);
-webkit-marquee-direction: ahead/auto/backwards/down/forwards/left/reverse/right/up
-webkit-marquee-incrementt: 1-n/infinite(infinite times)
-webkit-marquee-speed: fast/normal/slow
-webkit-marquee-style: alternate/none/scroll/slide
-webkit-text-fill-color: #ff6600; Constants: capitalize, lowercase, none, uppercase
-webkit-text-security: circle; Constant: circle/disc/none/square
-webkit-text-size-adjust: none; constant: auto/none;
-webkit-text-stroke: 15px #fff;
-webkit-line-break: after-white-space; Constant: normal/after-white-space
-webkit-appearance: caps-lock-indicator;
-webkit-nbsp-mode: space; Constant: normal/space
-webkit-rtl-ordering: logical; Constant: visual/logical
-webkit-user-drag: element; constant: element/auto/none
-webkit-user-modify: read-only; Constant: read-write-plaintext-only/read-write/read-only
-webkit-user-select: text; Constant: text/auto/none
⑨ "Table" describes the layout and specific contents of the design performance table.
-webkit-border-horizontal-spacing: 2px;
-webkit-border-vertical-spacing: 2px;
-webkit-column-break-after: right; Constant: always/auto/avoid/left/right
-webkit-column-break-before: right; Constant: always/auto/avoid/left/right
–webkit-column-break-inside: logical; Constant: avoid/auto
-webkit-column-count: 3; //Column
-webkit-column-rule: 1px solid #fff;
style: dashed,dotted,double,groove,hidden,inset,none,outset,ridge,solid
⑩The "user interface" description attribute involves user interface elements in the browser, such as scrolling text areas, scroll bars, etc. The report also describes properties outside the scope of the page content, such as the cursor's callout style and display when you hold down touch
Target, like a link on an iPhone.
-webkit-box-align: baseline,center,end,start,stretch constant: baseline/center/end/start/stretch
-webkit-box-direction: normal; constant: normal/reverse
-webkit-box-flex: flex_valuet
-webkit-box-flex-group: group_number
-webkit-box-lines: multiple; Constant: multiple/single
-webkit-box-ordinal-group: group_number
-webkit-box-orient: block-axis; Constant: block-axis/horizontal/inline-axis/vertical/orientation
–webkit-box-pack: alignment; constant: center/end/justify/start
12. Animation transition
This is the most innovative feature in Webkit: defining animations using transition functions.
-webkit-animation: title infinite ease-in-out 3s;
animation has these attributes:
-webkit-animation-name: //Attribute name is the keyframes we defined
-webkit-animation-duration: 3s //Duration
-webkit-animation-timing-function: //Transition type: ease/ linear (linear) /ease-in (slow to fast) /ease-out (fast to slow) /ease-in-out (slow to fast and then again slow) /cubic-bezier
-webkit-animation-delay: 10ms //Animation delay (default 0)
-webkit-animation-iteration-count: //Number of loops (default 1), infinite is infinite
-webkit-animation-direction: //Animation mode: normal (default forward playback); alternate (alternating direction, even-numbered forward playback, odd-numbered reverse playback)
These can also be abbreviated. But what really makes me feel great is keyframes, which can define an animation transformation process for calling, the process is 0% to 100% or from (0%) to to (100%). To put it simply, as long as you have an idea, it is very simple how you want the elements to change during the process.
-webkit-transform: type (scale/rotate/skew/displacement translate)
scale(num,num) magnification. scaleX and scaleY(3), can be abbreviated as: scale(*, *)
rotate(*deg) rotation angle. rotateX and rotateY can be abbreviated as: rotate(*, *)
Skew(*deg) Skew angle. skewX and skewY can be abbreviated as: skew(*, *)
translate(*,*) coordinate movement. translateX and translateY can be abbreviated as: translate(*, *).
Example of implementing a simulated pop-up message box (Alert):
① Define transition (describe keyframes in the