小三角的css画法(两种)
2016-09-08 17:48
344 查看
第一种:
<!doctype html> <html> <head> <style> div{ width:0; height:0; border-left:5px solid transparent; border-right:5px solid transparent; border-bottom:10px solid #10456b; dispaly:inline-block; } </style> </head> <body> <div></div> <div></div> <div></div> </body> </html>效果图:
另外一种:
<!doctype html> <html> <head> <style> div{ background:#000000; border-style:solid; border-color:transparent #fff transparent transparent; border-width:20px; } </style> </head> <body> <div></div> </body> </html>
效果图:
相关文章推荐
- css实现tooltips框的三角角标 两种方法:伪类和C3旋转
- 纯CSS实现的小三角
- css固定头部的两种方式
- div+css做出带三角的弹出框
- 在ASP.Net中两种利用CSS实现多界面的方法
- link和@import两种导入css文件的区别。
- 利用CSS让元素垂直居中的两种实现方法
- Echarts tooltip 自定义 css 样式 带小三角的背景样式
- 使用css制作三角,兼容IE6,用到的标签<div><s><span>
- 纯CSS小三角制作
- 纯css制作带三角(兼容所有浏览器)
- 在ASP.Net中两种利用CSS实现多界面的方法
- 纯CSS实现页面的尖角、小三角、不同方向尖角
- 在ASP.Net中两种利用CSS实现多界面的方法.
- 用纯css模拟小气泡三角
- rem适配的两种方式(css媒体查询和js控制)
- css实现倒三角包含文字标签
- jquery修改css的两种方法
- HTML+js+css实现点击图片弹出上传文件窗口的两种思路