Home > Web Front-end > HTML Tutorial > css3 rounded corners (border-radius)_html/css_WEB-ITnose

css3 rounded corners (border-radius)_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:49:43
Original
1047 people have browsed it

prefix


-moz (e.g. -moz-border-radius) is used in Firefox.
-webkit (eg: -webkit-border-radius) for Safari and Chrome.

css3 rounded corner code

<div class="radius"></div>.radius {    padding:10px; width:300px; height:50px;    border: 5px solid #dedede;    -moz-border-radius: 15px;      /* Gecko browsers */    -webkit-border-radius: 15px;   /* Webkit browsers */    border-radius:15px;            /* W3C syntax */}
Copy after login

Effect:

Other writing:

border-radius:5px 15px 20px 25px;               上  右    下   左
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template