Document directory
- 1. css3 simplest border rounded corner
- 3. Use the image's CSS3 border effect
CSS3 is the latest version of the style sheet language. It supports rounded corners. Previously, the rounded corners were spliced with images. If you are still at that stage, I can only say that you are too backward. Currently, the rounded corners created with CSS3 have the following features: improve web page performance ., The loading speed of web pages will become faster, because you don't need to load unnecessary images, and it will naturally be faster, increasing visual reliability. In some cases (network congestion, server errors, slow network speeds, etc.), background images may fail to be downloaded, resulting in poor visual effects. CSS3 will not do this;
The following are several CSS 3 rounded corner technologies I have summarized during development. These are the most basic code. You can use them to implement them in the future if you encounter similar problems.
1. css3 simplest border rounded corner
The simplest method is to achieve the basic CSS3 rounded corner. We hope this CSS3 technology will be more helpful to you at any time in front-end development.
The css code is as follows:
1 2. Shadow of CSS3 in a rectangle
During development, we often use a rectangle with a shadow effect. It is better to say that a rectangle with a shadow effect is difficult to achieve. In fact, the implementation is simple. The following is the specific code.
<Html xmlns = "http://www.w3.org/1999/xhtml"> 3. Use the image's CSS3 border effect
Here we use css3 to create border image attributes and add image effects to the border.
<Html xmlns = "http://www.w3.org/1999/xhtml">