css制作三角形,多种写法
2013-03-19 13:42
337 查看
<!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" />
<title>无标题文档</title>
<style type="text/css">
body{background:#999;}
em{font-style:normal;font-weight:normal;}
.triangleArr{display:inline-block;width:7px;height:4px;*height:6px;_height:5px;margin:0 0 0 5px;overflow:hidden;vertical-align:middle;font-size:12px;line-height:12px;line-height:12pxurl(0);}
.triangleArr em{display:inline-block;font-family:"SimSun";margin:-7px 0 0 -2px;_margin:-21px 0 0 -2px;cursor:pointer;}
.arrow{width:0;height:0;font-size:0;border-width:20px;border-color:#990000 transparent transparent;zoom:1;}
.down{border-style:solid dashed dashed;}
.up{border-style:dashed dashed solid;}
</style>
</head>
<body>
<span class="triangleArr"><em>◆</em></span>
<br />
<span class="arrow up"></span>
<br />
<span class="arrow down"></span>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
body{background:#999;}
em{font-style:normal;font-weight:normal;}
.triangleArr{display:inline-block;width:7px;height:4px;*height:6px;_height:5px;margin:0 0 0 5px;overflow:hidden;vertical-align:middle;font-size:12px;line-height:12px;line-height:12pxurl(0);}
.triangleArr em{display:inline-block;font-family:"SimSun";margin:-7px 0 0 -2px;_margin:-21px 0 0 -2px;cursor:pointer;}
.arrow{width:0;height:0;font-size:0;border-width:20px;border-color:#990000 transparent transparent;zoom:1;}
.down{border-style:solid dashed dashed;}
.up{border-style:dashed dashed solid;}
</style>
</head>
<body>
<span class="triangleArr"><em>◆</em></span>
<br />
<span class="arrow up"></span>
<br />
<span class="arrow down"></span>
</body>
</html>
相关文章推荐
- CSS制作各种三角形写法
- CSS制作三角形和按钮
- CSS 制作三角形
- css 巧用border属性制作各种图形(矩形,梯形,三角形)
- css制作三角形
- 纯css制作三角形+常用的对话框实例
- CSS 制作三角形原理剖析
- 用css制作一个三角形箭头
- CSS制作多种链接样式
- 用css制作三角形
- (转)css兼容多种浏览器(IE,firefox等)的通用写法:
- 用css制作三角形
- CSS 制作三角形 以及 display 、 visibblity属性含义
- css 制作三角形图标 不支持IE6
- 用html,css制作一个三角形
- css制作三角形
- css 三角形的制作
- 纯CSS制作各种各样的网页图标(三角形、暂停按钮、下载箭头、加号等)
- 用css制作三角形
- 纯css利用border制作三角形