图片圆角的做法
2016-08-18 09:41
148 查看
<html>
<head>
<title>图片圆角</title>
<style type= "text/css">
.xygsimg{
position:relative;
width:134px;
margin:0px auto;
}
.xygsnav{
text-align:center;
}
.xygsleftTop{
background:url(images/1_30.png) no-repeat left top;
margin-left: 0px;
width:10px;
height:31px;
position:absolute;
left:0;
top:0;
}
/*css圆角右上角*/
.xygsrightTop{
background:url(images/1_34.png) no-repeat right top;
margin-right: 2px;
width:10px;
height:31px;
position:absolute;
right:0;
top:0;
}
.xygssu{
background:url(images/1_32.png) repeat-x top;
height:31px;
text-align:center;
color:#fff;
line-height:30px;
width:130px;
font-weight:bold;
position:relative;}
</style>
</head>
<body >
<div class="xygsimg">
<div class="xygssu">
主体内容
</div>
<div class="xygsnav">
</div>
</div
</body>
</html>
<head>
<title>图片圆角</title>
<style type= "text/css">
.xygsimg{
position:relative;
width:134px;
margin:0px auto;
}
.xygsnav{
text-align:center;
}
.xygsleftTop{
background:url(images/1_30.png) no-repeat left top;
margin-left: 0px;
width:10px;
height:31px;
position:absolute;
left:0;
top:0;
}
/*css圆角右上角*/
.xygsrightTop{
background:url(images/1_34.png) no-repeat right top;
margin-right: 2px;
width:10px;
height:31px;
position:absolute;
right:0;
top:0;
}
.xygssu{
background:url(images/1_32.png) repeat-x top;
height:31px;
text-align:center;
color:#fff;
line-height:30px;
width:130px;
font-weight:bold;
position:relative;}
</style>
</head>
<body >
<div class="xygsimg">
<div class="xygssu">
主体内容
</div>
<div class="xygsnav">
</div>
</div
</body>
</html>
相关文章推荐
- 图片圆角的一种做法
- 【Android】绘制圆角图片
- Picasso实现下载圆形头像以及圆角图片
- Glide实现圆角图片加载
- css无图片实现圆角原理剖析
- android 圆角图片实现(三)
- UIImageView圆角,自适应图片宽高比例,图片拉伸,缩放比例
- 【前端积累】圆角水平菜单,一张背景图片,选中或鼠标悬停背景的下一部分上移改变背景色
- 【Android】 图片编辑:创建圆角图片
- iphone 开发图片显示圆角效果
- 不使用cornerRadius设置图片圆角
- 图片二次采样以及自定义圆角图片
- 纯CSS圆角框3-圆角化图片
- Android生成带圆角的Bitmap图片
- android中图片倒影、圆角效果重绘
- PS圆角图片并保留透明背景
- 元素带圆角背景图片自适应
- Android ImageView实现圆角,圆形图片
- IOS用CGContextRef画各种图形(文字、圆、直线、弧线、矩形、扇形、椭圆、三角形、圆角矩形、贝塞尔曲线、图片)
- Android 完美实现图片圆角和圆形(对实现进行分析)