css3-圆角矩形的效果
2015-12-24 09:59
567 查看
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>css圆角特效</title>
<style>
div{
text-align: center;
font-size: 32px;
width: 100px;
color: white;
padding: 10px;
margin: 10px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
}
.box1{
background-color: black;
}
.box2{
background: -webkit-gradient(linear,left top,left bottom,from(#000),to(#999));
background: -moz-linear-gradient(top,red,blue);
}
.box3{
background-color: blue;
-webkit-box-shadow:3px 3px 5px #000;
-moz-box-shadow: 3px 3px 5px #000;
}
</style>
</head>
<body>
<div class="box1">圆角1</div>
<div class="box2">圆角2</div>
<div class="box3">圆角3</div>
</body>
</html>
相关文章推荐
- File input 的样式和文字的更改方法__适用于Firefox、IE等浏览器
- css实现子层在父层中水平垂直居中
- CSS图片在DIV中水平垂直居中
- CSS样式表 超链接编辑
- CSS样式表 超链接编辑
- CSS 关键的基础知识
- /normalize.css 比cssreset更实用
- CSS样式表
- 解决浏览器兼容性问题CSS(一)
- 用CSS box-shadow画画
- CSS之照片翻转
- CSS样式表——超链接样式
- CSS3秘笈:第十三章
- HTML--CSS样式表的基本概念
- 作品第一课----鼠标移入/移除改变样式
- 作品第一课----改变DIV样式属性
- CSS浏览器兼容性----Hack
- 网页滚动条样式知识
- CSS浏览器兼容性----Hack
- 【CSS+DIV】(1)——滤镜的应用