您的位置:首页 > Web前端 > CSS

纯CSS实现箭头

2015-06-12 16:00 483 查看
效果:



<!DOCTYPE html>
<html lang="en" class="muui-theme-webapp-main">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport"
content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,initial-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<meta name="apple-mobile-web-app-capable" content="no">
<title>Css arrow</title>
</head>
<style type="text/css">
#triangle-facing-right {
display: inline-block;
margin: 72px;
border-right: 24px solid; border-bottom: 24px solid;
width: 120px; height: 120px;
transform: rotate(-45deg);
}
#triangle-facing-left {
display: inline-block;
margin: 72px;
border-left: 24px solid; border-bottom: 24px solid;
width: 120px; height: 120px;
transform: rotate(45deg);
}
</style>
<body>
<div id="triangle-facing-right"></div>
<div id="triangle-facing-left"></div>
</body>
</html>

http://codepen.io/anon/pen/EaKJgz http://stackoverflow.com/questions/18456331/how-can-i-create-an-arrow-using-only-css
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: