Home > Article > Web Front-end > CSS code to implement four direction arrows
The content of this article is about the code for implementing four-directional arrows in CSS. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
<!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>
Related recommendations:
How to make arrows with css? (Code examples for arrows in different directions)
css to implement arrow codes of any size, direction and angle
The above is the detailed content of CSS code to implement four direction arrows. For more information, please follow other related articles on the PHP Chinese website!