简体   繁体   English

如何移动CSS生成的箭头?

[英]How can I move the arrows that CSS generated?

http://cssarrowplease.com/ http://cssarrowplease.com/

If I go there, you'll see arrows at the top middle of the box. 如果我去那里,你会看到盒子顶部中间的箭头。

How can I make the arrow be the top, but 25% (from the left) instead of middle? 如何使箭头成为顶部,但是25%(从左侧)而不是中间?

.arrow_box::before {
border-bottom-color: #C2E1F5;
border-width: 36px;
left: 25%;
margin-left: -36px;
}

.arrow_box::after {
border-bottom-color: #88B7D5;
border-width: 30px;
left: 25%;
margin-left: -30px;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM