CSS 轮廓简写

CSS Outline - maikling pangalan ng propyetaryo

outline Ang propyetaryo ay isang maikling pangalan ng propyetaryo na ginagamit upang itakda ang mga sumusunod na propyetaryo ng linya:

  • outline-width
  • outline-style(Required)
  • outline-color

From the above list:outline Property can specify one, two, or three values. The order of the values is not important.

The following example shows the use of the abbreviated outline Outlines specified by properties:

Dashed outline.

Red dashed outline.

5 pixel solid yellow outline.

Thick pink ridged outline.

Example

p.ex1 {outline: dashed;}
p.ex2 {outline: dotted red;}
p.ex3 {outline: 5px solid yellow;}
p.ex4 {outline: thick ridge pink;}

Try It Yourself