CSS怎么箭头符号
更新:HHH   时间:2023-1-7


这篇文章给大家分享的是有关CSS怎么箭头符号的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

  代码如下

  HTML代码

  <!DOCTYPEhtml>

  <html>

  <head>

  <metacharset="utf-8">

  <title>CSSarrow</title>

  <linkrel="stylesheet"type="text/css"href="sample.css">

  <metahttp-equiv="Content-Type"content="text/html"charset="UTF-8">

  </head>

  <body>

  <divclass="arrow"></div>

  </body>

  </html>

  CSS代码

  sample.css

  .arrow{

  position:relative;

  width:200px;

  height:50px;

  border-top:8pxsolid#5bc0de;

  border-right:8pxsolid#5bc0de;

  box-sizing:border-box;

  }

  .arrow::after{

  content:"";

  position:absolute;

  bottom:-14px;

  right:-17px;

  border-top:14pxsolid#5bc0de;

  border-left:14pxsolidtransparent;

  border-right:14pxsolidtransparent;

  }






感谢各位的阅读!关于“CSS怎么箭头符号”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

返回web开发教程...