利用CSS3實現Material Design效果

來源:互聯網
上載者:User
本篇文章主要介紹了純CSS3實現Material Design效果。是對原生組件基於標籤屬性做了美化,具有一定的參考價值,有興趣的可以瞭解一下。

預覽

這是一個正在完善的css檔案,是對原生組件基於標籤屬性做了美化,對datepicker,select等無法用css實現的暫不考慮在本文內。

按鈕 Button

初始按鈕

    <button>button</button>    <button class="red">red</button>    <button class="orange">orange</button>    <button class="blue">blue</button>    <button class="green">green</button>    <button class="link">link</button>

描邊按鈕

    <button class="b-red bk-n">button</button>    <button class="b-red">red</button>    <button class="b-orange">orange</button>    <button class="b-blue">blue</button>    <button class="b-green">green</button>

禁用按鈕

<button disabled>disabled</button>

上浮按鈕

    <button class="circle">+</button>    <button class="circle teal">+</button>

按鈕組

    <nav class="btn-group">        <button>button</button>        <button>button</button>        <button>button</button>    </nav>

表單Form

文本輸入

<input type="text"><input type="password" >

開關

<input type="checkbox" id="switch1" class="switch"><label for="switch1"></label>

單選

<input type="radio" id="test_radio1" name="ra"><label for="test_radio1">radio1</label><input type="radio" disabled id="test_radio3" name="ra"><label for="test_radio3">radio3</label><input type="radio" checked disabled id="test_radio4" name="ras"><label for="test_radio4">radio4</label>

多選

<input id="test_checkbox1" type="checkbox"><label for="test_checkbox1">check1</label><input id="test_checkbox3" disabled type="checkbox"><label for="test_checkbox3">check3</label><input id="test_checkbox4" checked disabled type="checkbox"><label for="test_checkbox4">check4</label>

以上就是本文的全部內容,希望對大家的學習有所協助,更多相關內容請關注topic.alibabacloud.com!

相關文章

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.