<!DOCTYPE HTML>
<html>
<head>
<title>纯CSS3缎带效果</title>
<style type="text/css">
.ribbon-content{border: 1px solid #DDD;font-weight: bold;margin: 0 -10px;min-height: 30px;padding: 7px 31px;text-align: center;line-height: 30px;}
.ribbon-left{display: block;border-left: 10px solid white;border-top: 8px solid #EEE;float: left;height: 0;margin-left: -10px;width: 0;}
.ribbon-right{display: block;border-right: 10px solid white;border-top: 8px solid #EEE;float: right;height: 0;margin-right: -10px;width: 0;}
</style>
</head>
<body>
<div>http://www.999jiujiu.com/</div>
<div >
<div >
<div >标题</div>
<div ></div>
<div ></div>
</div>
<div >内容显示区:这像不像一个彩缎的头部?<br>内容显示区内容显示区内容显示区内容显示区内容显示区内容显示区内容显示区</div>
</div>
</body>
</html>
原标题:纯CSS3实现彩色缎带效果
关键词:CSS