詳解Bootstrap的純CSS3箭頭按鈕樣式

來源:互聯網
上載者:User
簡要教程

這是一款基於Bootstrap的純CSS3箭頭按鈕樣式。該按鈕通過修改原生Bootstrap的按鈕樣式,來產生指向左側或右側的箭頭按鈕。

安裝

可以通過npm或bower來安裝該Bootstrap箭頭按鈕檔案。

npm install bootstrap-directional-buttons bower install bootstrap-directional-buttons

使用方法

在頁面中引入bootstrap樣式檔案和bootstrap-directional-buttons.css檔案

<link rel="stylesheet" type="text/css" href="path/to/css/bootstrap.min.css"><link rel="stylesheet" type="text/css" href="path/to/css/bootstrap-directional-buttons.css">
HTML結構

使用是只需要為按鈕添加btn-arrow-left或btn-arrow-rightclass類即可。如果希望一組箭頭按鈕之間沒有空隙,可以將它們放置在一個帶btn-group的class類的容器中。

<button type="button" class="btn btn-primary btn-arrow-left">箭頭向左的按鈕</button><button type="button" class="btn btn-success btn-arrow-right">箭頭向右的按鈕</button>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.