【问题标题】:How can I create a white arrow with a grey border? [duplicate]如何创建带有灰色边框的白色箭头? [复制]
【发布时间】:2015-10-30 03:38:58
【问题描述】:

我正在尝试创建一个指向左侧但带有灰色边框的箭头。

到目前为止,我只有一个灰色箭头。

有人知道我该怎么做吗?

我附上了我的意思的图片。

提前谢谢你!

.tri {

    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px;

}

.tri{
    border-color: transparent #ccc transparent  transparent;

}


<div class="tri"></div>

【问题讨论】:

标签: html css


【解决方案1】:

试试下面的方法:

.box {  
  width: 50px;
  height: 150px;
  border: solid 1px gray;
  border-radius: 5px;
  margin: 20px 0 0 100px;
  position: realtive;
  
  }

.box:after, .box:before {
  content: "\f0d9";
  font-family: fontAwesome;;
  top: 40%;
  left: -12px;
  height: 50px;
  width: 50px;
  font-size: 36px;
  color: gray;
  position: relative;
  
  
  }

 .box:after {
   left: -23px;
   color: white;
   
   }
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet"/>



<div class="box"></div>

【讨论】:

    猜你喜欢
    • 2014-05-05
    • 1970-01-01
    • 2011-02-08
    • 2018-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-04
    • 1970-01-01
    相关资源
    最近更新 更多