css上下左右箭头

男娘i 2021-11-23 14:54 503阅读 0赞

代码:

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>Document</title>
  8. <style>
  9. #app {
  10. width: 260px;
  11. height: 200px;
  12. border: 1px solid #999;
  13. padding: 20px;
  14. box-sizing: border-box;
  15. display: flex;
  16. }
  17. .top_arrows {
  18. width: 20px;
  19. height: 20px;
  20. border-top: 1px solid #c3c8d6;
  21. border-right: 1px solid #c3c8d6;
  22. transform: rotate(-45deg);
  23. margin-right:30px;
  24. margin-top: 6px;
  25. }
  26. .bottom_arrows {
  27. width: 20px;
  28. height: 20px;
  29. border-top: 1px solid #c3c8d6;
  30. border-right: 1px solid #c3c8d6;
  31. transform: rotate(135deg);
  32. margin-right:30px;
  33. margin-top: -6px;
  34. }
  35. .left_arrows {
  36. width: 20px;
  37. height: 20px;
  38. border-top: 1px solid #c3c8d6;
  39. border-right: 1px solid #c3c8d6;
  40. transform: rotate(-135deg);
  41. margin-right:10px;
  42. }
  43. .right_arrows {
  44. width: 20px;
  45. height: 20px;
  46. border-top: 1px solid #c3c8d6;
  47. border-right: 1px solid #c3c8d6;
  48. transform: rotate(45deg);
  49. }
  50. </style>
  51. </head>
  52. <body>
  53. <div id="app">
  54. <div class="top_arrows"></div>
  55. <div class="bottom_arrows"></div>
  56. <div class="left_arrows"></div>
  57. <div class="right_arrows"></div>
  58. </div>
  59. <script>
  60. </script>
  61. </body>
  62. </html>

效果图

1695370-20190614144155436-7795458.jpg

结束

转载于:https://www.cnblogs.com/Hajar/p/11023172.html

发表评论

表情:
评论列表 (有 0 条评论,503人围观)

还没有评论,来说两句吧...

相关阅读