本篇文章给大家带来的内容是关于CSS实现四个方向箭头的代码,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。
<!DOCTYPE html >
<html>
<head>
<meta charset="utf-8">
<title>自学教程(如约智惠.com)</title>
<style >
i {
border:solid black;
border-width:0 3px 3px 0;
display:inline-block;
padding:3px;
}
.right {
transform:rotate(-45deg);
-webkit-transform:rotate(-45deg);
}
.left {
transform:rotate(135deg);
-webkit-transform:rotate(135deg);
}
.up {
transform:rotate(-135deg);
-webkit-transform:rotate(-135deg);
}
.down {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
</style>
</head>
<body >
<h2>CSS 方向</h2>
<p>向右: <i class="right"></i></p>
<p>向左: <i class="left"></i></p>
<p>向上: <i class="up"></i></p>
<p>向下: <i class="down"></i></p>
</body>
</html>相关推荐:
以上就是CSS实现四个方向箭头的代码的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号