您的位置:首页 > Web前端 > CSS

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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: