CSS制作斜角上有背景图片的Div层

来源:互联网 发布:小猪cms是干什么的 编辑:程序博客网 时间:2024/04/30 18:19
<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>
0 0
原创粉丝点击