Home > Web Front-end > HTML Tutorial > css3实现的圆角效果代码实例_html/css_WEB-ITnose

css3实现的圆角效果代码实例_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:27:00
Original
1016 people have browsed it

css3实现的圆角效果代码实例:
本章节分享一段代码实例,它使用css3实现了圆角效果。
代码实例如下:

<!DOCTYPE html><html> <head> <meta charset=" utf-8"> <meta name="author" content="http://www.softwhy.com/" /> <title>蚂蚁部落</title> <style>p.speech{     width:200px;     height:100px;     text-align:center;     line-height:100px;     background-color:#fff;     border:8px solid #666;     -webkit-border-radius:30px;     -moz-border-radius:30px;     border-radius:30px;     -webkit-box-shadow:2px 2px 4px #888;     -moz-box-shadow:2px 2px 4px #888;     box-shadow:2px 2px 4px #888;   }  </style></head><body><p class="speech"></p>  </body></html>
Copy after login

上面的代码实现了我们的要求,代码比较简单,更多内容可以参阅相关阅读。
相关阅读:
(1).radius可以参阅CSS3实现圆角效果一章节。
(2).box-shadow可以参阅CSS3的box-shadow属性用法详解一章节。

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=18335

更多内容可以参阅:http://www.softwhy.com/divcss/

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