Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize the change of css frame into fillet frame

Shulou Source: shulou.com Published: 2022-06-02 15:47:22 10月04日 Update

This article mainly introduces how to realize the rounded frame of css. What is introduced in this article is very detailed and has certain reference value. Interested friends must read it!

Writing method: 1, add "border-radius: fillet value;" style set fillet size uniformly; 2, add "border-top-left-radius: fillet value;", "border-top-right-radius: fillet value;" and other styles set four corners fillet size respectively.

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

The basic use of the fillet border (border-radius): the border-radius property is an abbreviated property that sets the properties of the four fillets.

The most basic use of fillet borders is to set four fillets of the same Radian.

Border-top-left-radius:30px; / / upper left corner border-top-right-radius:30px; / / upper right corner border-bottom-left-radius:30px; / / lower right corner border-bottom-right-radius:30px; / / lower left corner

If the fillets of the four radians are the same, they can be written as:

Border-radius:30px

Example:

.div1 {margin:0 auto;background: darkcyan;width:200px;height:200px;border:2px solid darkslategray;border-radius:30px;text-align: center;line-height: 200px;} fillet border

Output result:

The above is all the contents of the article "how to change the css frame into a rounded frame". Thank you for your reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Rounded corners borders attributes same content size radians styles articles values examples interests writing guys buddies that is upper left corner tutorials more environment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MariaDB Shulou Tech Info Apple NVidia