標籤:jquery mobile listview 帶圖
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE html><html><head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> <link rel="stylesheet" href="./css/jquery.mobile-1.3.0.css"/> <script type="text/javascript" src="./js/jquery-1.8.3.js"></script> <script type="text/javascript" src="./js/jquery.mobile-1.3.0.js"></script></head><body> <div data-role="page" id="a"> <div data-role="header" data-position="fixed" data-theme="b"> <h2> a頁面的標題 </h2> </div> <div data-role="content"> <h3>listview帶圖顯示</h3> <br><ul data-role="listview" data-inset="true"><li><a><img style="top:10px;left:10px;" alt="法拉利跑車" src="images/car.jpg"><h4>法拉利跑車跑得很快... </h4><p>售價:RMB 200 W</p><b>可以點擊</b></a></li><li><a><img style="top:10px;left:10px;" alt="法拉利跑車" src="images/car.jpg"><h4>法拉利跑車跑得很快... </h4><p>售價:RMB 200 W</p><b>可以點擊</b></a></li><li><img style="top:10px;left:10px;" alt="法拉利跑車" src="images/car.jpg"><h4>法拉利跑車跑得很快... </h4><p>售價:RMB 200 W</p><b>不能點擊</b></li><li><img style="top:10px;left:10px;" alt="法拉利跑車" src="images/car.jpg"><h4>法拉利跑車跑得很快... </h4><p>售價:RMB 200 W</p><b>不能點擊</b></li></ul> </div> <div data-role="footer" data-theme="a" data-position="fixed"> <h2>a頁面的底部</h2> </div> </div></body></html>
jQuery mobile 學習11 listview 列表顯示 帶圖