CSS做出圆角矩形
2017-05-29 10:07
369 查看
如何用CSS做出圆角矩形
<!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>
<!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>
相关文章推荐
- css做出圆角矩形边框
- 简洁型css圆角矩形
- css实现简单圆角矩形
- 纯css圆角矩形
- css让图片变成圆角矩形 border-radius: 15px;
- css做出div圆角的效果
- CSS圆角矩形生成器
- CSS高级技巧:圆角矩形
- CSS 边框实现圆角矩形
- CSS圆角矩形
- -moz-border-radius CSS属性演示源代码:FireFox下圆角矩形
- css圆角矩形属性
- 纯CSS技术实现可变高度的圆角矩形框-so easy
- 利用css画圆角矩形
- 锐拜:CSS实现圆角矩形之函数版
- 圆角矩形的html+css实现代码
- div+css用边框实现圆角矩形(多样式)
- 用div+css制作圆角矩形的原理
- CSS实现:一个矩形内容,有投影,有圆角,hover状态慢慢变透明
- Css暴力绘制圆角矩形