我有一个打开对话框的代码:
<p><a href="ShopItems/Rotax125MicroMax.html" data-rel="dialog" data-role="button">Rotax 125 Micro Max</a></p>
还有一个页面,即对话框:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<title>Paraugs Karting.lv</title>
<script src="../../js/jquery-1.10.0.min.js" type="text/javascript"></script>
<script src="../../js/jquery.mobile-1.3.1.js" type="text/javascript"></script>
<link rel="stylesheet" href="../../css/jquery.mobile-1.3.1.css" type="text/css" media="all" />
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="all" />
</head>
<body>
<div data-role="page" data-url="Rotax125MicroMax.html">
<div data-role="header">
<h1>Rotax 125 Micro Max</h1>
</div>
<div data-role="content">
<img id="motor" alt="motor" src="125MicroMaxMY11.jpeg" />
</div>
</div>
</body>
</html>
有没有办法让对话框根据内容重新调整大小?
例子:
我希望我的对话以编程方式在红线上结束