第二种方法制作三角
2016-03-02 14:46
260 查看
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> div.arrow-up { width:0px; height:0px; border-left:20px solid transparent; /* left arrow slant */ border-right:20px solid transparent; /* right arrow slant */ border-bottom:20px solid #FF9600; /* bottom, add background color here */ font-size:0px; line-height:0px; margin-bottom: 10px; } /* create an arrow that points down */ div.arrow-down { width:0px; height:0px; border-left:20px solid transparent; border-right:20px solid transparent; border-top:20px solid #FF9600; font-size:0px; line-height:0px; margin-bottom: 10px; } /* create an arrow that points left */ div.arrow-left { width:0px; height:0px; border-bottom:20px solid transparent; /* left arrow slant */ border-top:20px solid transparent; /* right arrow slant */ border-right:20px solid #FF9600; /* bottom, add background color here */ border-left: 20px solid transparent; font-size:0px; line-height:0px; } /* create an arrow that points right */ div.arrow-right { width:0px; height:0px; border-bottom:20px solid transparent; /* left arrow slant */ border-top:20px solid transparent; /* right arrow slant */ border-left:20px solid #FF9600; /* bottom, add background color here */ font-size:0px; line-height:0px; } </style> </head> <body> <div class="arrow-up"></div> <div class="arrow-down"></div> <div class="arrow-left"></div> <div class="arrow-right"></div> </body> </html>
这种方法是隐藏其他三边,显示剩下的一个border
相关文章推荐
- 简述 Struts2 的工作流程:
- HTML <button> 标签的 type 属性
- 如何分清JSON解析什么时候该用JSONObject,什么时候该用JSONArray。
- linux系统忘记了密码 怎么办?
- C++编程,判断给定序列是否为正确出栈序列
- Java使用Apache CXF开发Web Service
- 获取当前控制器
- 多线程系列 线程池ThreadPool
- Linux下查看MySQL的安装路径
- SPRING IN ACTION 第4版笔记-第二章WIRING BEANS-008-在XML配置文件中引入JAVA配置文件 <import> 、<bean>
- Hibernate容器映射技术
- Myeclipse 安装Aptana插件
- Myeclipse 安装Aptana插件
- Myeclipse 安装Aptana插件
- Myeclipse 安装Aptana插件
- Myeclipse 安装Aptana插件
- Myeclipse 安装Aptana插件
- Myeclipse 安装Aptana插件
- Myeclipse 安装Aptana插件
- Myeclipse 安装Aptana插件