css css编写三角形和半圆
2017-08-16 11:38
387 查看
三角的四个方向可修改,根据:border-top-color:; border-bottom-color:; border-left-color:; border-right-color:;
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>三角形</title>
<style>
.icon-b {
display: inline-block;
width: 0px;
height: 0px;
border: 10px solid transparent;
border-top-color: #2fa0ec;
position: relative;
left: 3px;
top: 2px;
}
</style>
</head>
<body>
<b class="icon-b"></b>
</body>
</html>
<style> .semicircle { display: inline-block; width:18px; height:29px; border-radius:18px 0 0 18px;/* 左上、右上、右下、左下 */ border:1px solid #feb34a; border-right: #fff; position: relative; top: 10px; right: -7px; }</style><span class="semicircle"></span>border-right设置右边线为白色;可改变为右图。
相关文章推荐
- css编写三角形汇总
- CSS绘制三角形、爱心、对话框、钻石等方法
- 编写手机端自适应页面案例,springMVC代码,SpringMVC上传代码,去掉input框中原有的样式,使ios按钮没有圆角,css中的border-radius类似
- CSS编写指导规范和建议
- 用纯CSS实现三角形
- css 制作三角形/平行四边形
- CSS实例篇--CSS3实现模拟select以及其中的三角形
- CSS实现三角形图标的原理
- 编写高效的 CSS 选择器
- Less 编写css,速度快多了!!!
- 用CSS将div变成三角形
- 自从用了Less 编写css,你比以前更快了~
- css三角形实现写法全攻略收集
- 快速编写HTML、CSS代码利器--Zen Coding
- css画三角形
- 一款运用纯CSS编写的android图标
- css实现三角形
- 使用纯CSS完成一个三角形的绘制
- 用css制作三角形
- CSS绘制三角形的原理剖析