css三角箭頭

來源:互聯網
上載者:User

標籤:style   http   ar   color   os   sp   bs   ad   as   

 

效果:

css:

.jt {
        display:inline-block;    /*和後面的文字在同一行*/
        *display: inline;    /*ie6 7區塊層級元素inline-block相容*/
        *zoom:1;    /*同上*/
        height:0px;  
        width:0px; 
        line-height:0px;   /*行高設0,不然ie6會撐開*/
        vertical-align: middle;   /*與文字垂直置中對齊,如果依然相差一兩個像素,可以設定相對定位,更改top值微調*/
        border:3px solid #000; 
        border-color: transparent #f00 transparent transparent;    /*設定一邊為紅色,其它透明*/
        border-style: dashed solid dashed dashed;    /*ie6不支援transparent屬性,可以將透明邊設定成dashed來相容,不設的話,Firefox會有灰邊*/
        margin-right: 5px;
    }

 

css三角箭頭

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.