纯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
<!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
相关文章推荐
- 解决css3兼容各个浏览器的前缀
- css中关于hover失效问题总结
- CSS抗锯齿 font-smoothing
- 纯CSS实现小圆点和三角形图案
- table细边框样式
- 织梦导航 currentstyle 点击li添加class类 样式
- CSS3之利用选择器和content属性在页面中插入内容
- 学习完毕-css
- JS+CSS仿安卓手机拨号界面按键特效
- css3中display和box小结
- JSP页面中JQ实现---当点击按钮的时候,改变原来样式,内容也发生改变,再次点击变成原来的样子
- CSS垂直居中实现方法大全
- css3 字体旋转
- 【html+css】fetch界面 smarty中 使用 if语句
- css的white-space属性导致了空格问题——查看十六进制发现2020变成了c2a0
- filter在CSS中的效果
- CSS十问——好奇心+刨根问底=CSSer
- 转载一篇张鑫旭大大的文章,我感觉不错!!【获取元素CSS值之getComputedStyle方法熟悉】
- css3 设置背景定位
- css3 设置背景图片大小(缩略图形式缩小)