热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

试图实现向上箭头-tryingtoachievearrowpointingupwards

Iamtryingtoachievethearrowpointingupwards..iamtryingtoachieveitinmycssiamnotabl

I am trying to achieve the arrow pointing upwards.. i am trying to achieve it in my css i am not able to reproduce in my fiddle... right now i see as trapezium .. providing my code below.. can you guys tell me how to fix it.. http://jsfiddle.net/311s1whu/4/

我正在努力实现向上的箭头..我正在尝试在我的css中实现它我无法在我的小提琴中重现...现在我看作是梯形...提供我的代码在下面..你们能告诉吗?我怎么解决它.. http://jsfiddle.net/311s1whu/4/

https://docs.google.com/file/d/0B3IBJKENGE7RRFR1WHZDYTF6LTQ/edit

 .icon__controls__controls {
  float: left;
  display: block;
  margin-right: 2.1276595745%;
  width: 36.170212766%;
  margin-left: 38.2978723404%;
  margin-top: 10px;
  margin-bottom: 30px;
  text-align: center; }
  .icon__controls__controls:last-child {
    margin-right: 0; }
  .icon__controls__controls [class^=icon-] {
    font-size: 20px;
    font-size: 1.25rem;
    display: inline-block;
    vertical-align: baseline;
    zoom: 1;
    *display: inline;
    *vertical-align: auto;
    color: #666;
    margin: 0 5px;
    vertical-align: top; }
  .icon__controls__controls .zoom-out {
    color: red; }
  .icon__controls__controls:after {
    display: none;
    content: '';
    z-index: 3;
    border: 50px solid transparent;
    /* border-left: 5px solid transparent;
            border-right: 5px solid transparent;

            border-bottom: 5px solid black; */ }
  .icon__controls__controls:after {
    border-top-color: #ef6f00; }
  .icon__controls__controls.active:after {
    display: block; }

1 个解决方案

#1


0  

I think what you are looking for is described here, works for me and looks much simpler than what you have going on.

我认为你在寻找的东西在这里描述,对我有用,看起来比你发生的要简单得多。

http://css-tricks.com/snippets/css/css-triangle/

.arrow-up {
width: 0; 
height: 0; 
border-left: 5px solid transparent;
border-right: 5px solid transparent;

border-bottom: 5px solid black;

}


推荐阅读
author-avatar
幸运幸福摩天轮的世界
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有