CSS制作斜角上有背景图片的Div层
2015-04-19 20:44
633 查看
<html>
<head>
<title>CSS制作斜角上有背景图片的Div层</title>
<style>
.window{
width:400px;
border:1px solid #B6B6C0;
position:relative;
}
.title{
background:#F0F0F2;
height:30px;
border-bottom:1px solid #CBCFD2;
font-size:14px;
line-height:30px;
text-indent:1em;
}
.body{
height:100px;
font-size:12px;
padding:8px;
}
.flag{
background:url(x.jpg) no-repeat 100% 0;
height:55px;
width:55px;
position:absolute;
right:0;
top:0;
}
</style>
</head>
<body>
<div class="window">
<div class="flag"></div>
<div class="title">欢迎光临!</div>
<div class="body">显示内容显示内容显示内容显示内容显示内容显示内容。</div>
</div>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
</body>
<script>
</script>
</html>
<head>
<title>CSS制作斜角上有背景图片的Div层</title>
<style>
.window{
width:400px;
border:1px solid #B6B6C0;
position:relative;
}
.title{
background:#F0F0F2;
height:30px;
border-bottom:1px solid #CBCFD2;
font-size:14px;
line-height:30px;
text-indent:1em;
}
.body{
height:100px;
font-size:12px;
padding:8px;
}
.flag{
background:url(x.jpg) no-repeat 100% 0;
height:55px;
width:55px;
position:absolute;
right:0;
top:0;
}
</style>
</head>
<body>
<div class="window">
<div class="flag"></div>
<div class="title">欢迎光临!</div>
<div class="body">显示内容显示内容显示内容显示内容显示内容显示内容。</div>
</div>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
</body>
<script>
</script>
</html>
相关文章推荐
- CSS制作斜角上有背景图片的Div层
- div+css无图片实现带背景圆角框
- CSS让DIV按照背景图片的比例缩放,并让背景图片填充整个DIV
- 【CSS】CSS控制DIV背景图片显示位…
- 用CSS制作大背景网站,以及80个大背景图片网站。
- div+css 背景图片的定位取图方法
- 制作html网页时如何使用CSS使背景图片拉伸(填充)
- div+css 背景图片的定位取图问题详解
- 图片垂直居中,小图铺满div,css3点击变红叉,css背景图拉伸铺满
- div css sprites精灵-CSS图像拼合 CSS贴图定位网页背景素材图片拼合定位布局技术教程
- div+css无图片实现不带背景圆角框
- 005_HTML制作炫酷登录界面(CSS精灵图、背景图片局部显示)
- css background-size与背景图片填满div
- DIV+CSS中让布局居中_背景图片居中_文字内容居中
- DIV+CSS中让布局居中_背景图片居中_文字内容居中
- div+css 背景图片的定位取图问题详解
- 转 div+css 背景图片的定位取图问题详解
- CSS网页制作技巧:背景图片定位 显示切图的一部分作为背景显示
- div+css 背景图片的定位取图问题详解
- DIV+CSS中让布局居中_背景图片居中_文字内容居中