W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="//code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"> <script src="//code.jquery.com/jquery-1.8.3.min.js"></script> <script src="//code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script> </head> <body> <div data-role="page" id="pageone"> <div data-role="content"> <h2>带有图标的列表:</h2> <ul data-role="listview" data-inset="true"> <li><a href="#"><img src="/i/us.png" alt="USA" class="ui-li-icon">USA</a></li> <li><a href="#"><img src="/i/gb.png" alt="Great Britain" class="ui-li-icon">Great Britain</a></li> <li><a href="#"><img src="/i/finland.png" alt="Finland" class="ui-li-icon">Finland</a></li> <li><a href="#"><img src="/i/germany.png" alt="Germany" class="ui-li-icon">Germany</a></li> <li><a href="#"><img src="/i/france.png" alt="France" class="ui-li-icon">France</a></li> </ul> </div> </div> </body> </html>