CSS实现三角形
2010-12-30 16:42
239 查看
代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="http://www.n1pay.com/templets/zhifu/style/reset.css" type="text/css" />
<title>无标题文档</title>
<style>
body{
background:url(http://bbs.blueidea.com/attachment.php?aid=157417&k=6d63e29bcfc152ef20fee8078c57a828&t=1293673644&noupdate=yes);
}
#wrap {
width:920px;
margin:0 auto;
padding:20px;
}
.box{
background:#FFFFFF;
padding-top:20px;
}
.box h2{
position:relative;
right:-16px;
height:48px;
background:#DD4C2D;
}
.sanjiao{
background:#fff;
height:16px;
position:relative;
}
.bor{
border-top:8px solid #A23919;
border-left:8px solid #A23919;
border-right:8px dashed transparent;
border-bottom:8px dashed transparent;
width:0px;
height:0px;
font-size:0px;
overflow:hidden;
position:absolute;
right:-16px;
top:-2px;
}
</style>
</head>
<body>
<div id="wrap">
<div class="box">
<h2></h2>
<div class="sanjiao"><div class="bor"></div></div>
<div style="padding:0px 20px;">其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。</div>
</div>
</div>
</body>
</html>
不用图片实现的效果
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="http://www.n1pay.com/templets/zhifu/style/reset.css" type="text/css" />
<title>无标题文档</title>
<style>
body{
background:url(http://bbs.blueidea.com/attachment.php?aid=157417&k=6d63e29bcfc152ef20fee8078c57a828&t=1293673644&noupdate=yes);
}
#wrap {
width:920px;
margin:0 auto;
padding:20px;
}
.box{
background:#FFFFFF;
padding-top:20px;
}
.box h2{
position:relative;
right:-16px;
height:48px;
background:#DD4C2D;
}
.sanjiao{
background:#fff;
height:16px;
position:relative;
}
.bor{
border-top:8px solid #A23919;
border-left:8px solid #A23919;
border-right:8px dashed transparent;
border-bottom:8px dashed transparent;
width:0px;
height:0px;
font-size:0px;
overflow:hidden;
position:absolute;
right:-16px;
top:-2px;
}
</style>
</head>
<body>
<div id="wrap">
<div class="box">
<h2></h2>
<div class="sanjiao"><div class="bor"></div></div>
<div style="padding:0px 20px;">其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。其他的文字,其他的文字。</div>
</div>
</div>
</body>
</html>
不用图片实现的效果
相关文章推荐
- 纯CSS实现箭头、气泡让提示功能具有三角形图标(简单实例)
- 用 CSS 实现三角形与平行四边形
- CSS的三角形实现
- 三种纯css方式实现三角形
- css实现三角形
- 纯 CSS 实现三角形尖角箭头的实例
- 利用CSS三角形实现的冒泡框
- css三角形的实现
- CSS实现实心三角形和空心三角形
- CSS实现DIV三角形
- css实现三角形
- css实现三角形
- css实现三角形 兼容主流浏览器
- 如何使用CSS实现小三角形效果
- CSS技巧之圆角背景与三角形实现方法
- CSS实现三角形的动画旋转
- css三角形实现
- 简单用CSS实现画三角形角标
- 常见样式问题二、CSS实现普通三角形、空心三角形
- CSS Border使用小分享--css实现小三角形等