jquerymobile知識點三:彈出層popup

    彈出層popup很簡單,主要就是彈出驗證,登陸註冊,提交信息之類的,下面是我寫好的一個demo。。。

    

   

   下面請看代碼  。。。。

  

 <div data-role="popup" id="popupDialog" data-overlay-theme="a" data-theme="c" data-dismissible="false"
        style="max-width: 460px;" class="ui-corner-all">
        <a href="#" data-rel="back" data-role="button" data-theme="e" data-icon="delete"
            data-iconpos="notext" class="ui-btn-right">Close</a>
        <div data-role="header" data-theme="e" class="ui-corner-top">
            <h1>
                發帖</h1>
        </div>
        <div data-role="content" data-theme="d" class="ui-corner-bottom ui-content">
            <p>
                <textarea style="width: 100%; height: 100px;" id="textval"></textarea></p>
            <p style="text-align: center;">
                <a href="#" data-role="button" data-ajax="false" data-transition="flow" οnclick="PublishComment();"
                    data-theme="c">發佈</a></p>
        </div>
    </div>

   很好,很簡單。。。。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章