Home>Article>Web Front-end> What does circle mean in html?

What does circle mean in html?

醉折花枝作酒筹
醉折花枝作酒筹 Original
2021-06-07 15:39:29 7234browse

In HTML, circle means circle, which is used to specify a certain basic graphic type. You only need to set "circle (value)" to the element. This function creates a circular area that masks the element it is applied to, its radius and position can be specified, and is often used with images to create rounded shapes.

What does circle mean in html?

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

CSS circle() function is a graphics function used to specify a certain basic shape type.

CSS represents a basic shape, which defines a shape through graphics functions. A basic shape can be used as a parameter of the shape-outside attribute or the clip-path attribute. When these attributes are applied to an element, the content around the element can be wrapped around it, or the content can be clipped using the specified shape. The syntax of

circle() function is as follows:

circle() = circle( []? [at ]? ) /* where.. */  =  |  | closest-side | farthest-side

circle() function is used to define a circle. Its parameters are all optional parameters. If the first parameter is defaulted, the browser determines its default value.

If the second parameter position is default, then the center of the circle is located at the center of the element using this function. The syntax for setting the position parameter is the same as background-position. When using position, you must use the at keyword.

The parameter is used to specify the radius of the circle. If the value is a percentage, it is calculated using the width and height of the reference box model. Negative numbers are not allowed.

In addition to using length values and percentage values to specify the radius of a circle, you can also use two keywords to specify: closest-side and furthest-side. The closest-side keyword means that if you do not specify the radius of the circle, the browser will use the distance from the element's closest side to the center of the circle as the radius. As shown below. furthest-side is just the opposite of closest-side. It uses the distance from the farthest side to the center of the circle as the radius.

What does circle mean in html?

The following are valid circle() function declarations.

circle(); /* 使用默认值:圆形使用closest-side作为半径,圆形位于元素的中心 */ circle(100px at 30% 50%); /* 圆形的半径为100像素,位于元素的水平30%,垂直50%的位置 */ circle(farthest-side at 25% 25%); /* 圆形的半径为最远边的一半,位于元素的水平25%,垂直25%的地方 */ circle(10em at 500px 300px);

Recommended learning:html video tutorial

The above is the detailed content of What does circle mean in html?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn