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
WBOYOriginal
2016-06-24 11:49:431048browse

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 */}

Effect:

Other writing:

border-radius:5px 15px 20px 25px;               上  右    下   左
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