jQueryMobile的按鈕樣式


好吧,已經學了jQueryMobile一年了,今天心血來潮,想要寫一篇關於jQueryMobile的博客文章,記得去年暑假在公司實習jQueryMobile,想一想真是懷念當時還是菜鳥的自己,年輕就是任性呀(笑~),好了,關於jQueryMobile方面的概念知識,大家可以去網上查閱相關資料,今天我寫了一些jQueryMobile的按鈕樣式,還是比較漂亮的,代碼如下:

<!DOCTYPE html>
<html>
<head lang="en">
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <link rel="stylesheet" type="text/css" href="css/jquery.mobile.flatui.css" />
    <script src="js/jquery.js"></script>
    <script src="js/jquery.mobile-1.4.0-rc.1.js"></script>
    <title>Flat</title>
</head>
<body>
    <div data-role="page">
        <div data-role="header" data-theme="f">
            <h1>DOTA資料大全</h1>
        </div>
        <div data-role="content">
            <a href="#" data-theme="a" data-icon="flat-settings" data-role="button">英雄簡介</a>
            <a href="#" data-theme="b" data-icon="flat-new" data-role="button">物品資料</a>
            <a href="#" data-theme="c" data-icon="flat-man" data-role="button">經典出裝</a>
            <a href="#" data-theme="d" data-icon="flat-mail" data-role="button">野怪資料</a>
            <a href="#" data-theme="e" data-icon="flat-bubble" data-role="button">教學視頻</a>
            <a href="#" data-theme="f" data-icon="flat-menu" data-role="button">經典解說</a>
            <a href="#" data-theme="g" data-icon="flat-heart" data-role="button">明星專訪</a>
            <a href="#" data-theme="g" data-icon="flat-time" data-role="button">關於作者</a>
        </div>

    </div>

</body>
</html>

網頁效果如下圖:


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM