我创建了一个简单的移动网页,我没有为什么,但是我创建的按钮没有像此link那样风格化。这是代码:
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content = "width=device-width , user-scalable=no">
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<link type="text/css" href="jquery.mobile/jquery.mobile-1.1.0.css"/>
<link type="text/css" href="themes/theme.min.css"/>
<link type="text/css" href="CSS/main.css"/>
<script type="text/javascript" src="cordova/cordova-2.2.0.js"></script>
<script type="text/javascript" src="jquery/jquery-1.8.3.js"></script>
<script type="text/javascript" src="jquery.mobile/jquery.mobile-1.1.0.js"></script>
<title>page</title>
</head>
<body>
<div data-role="page">
<div data-role="content">
<a href="index.html" data-role="button" data-icon="delete">Delete</a>
</div>
</div>
</body>
</html>
我哪里错了?
提前致谢!
最佳答案
确保您的本地库可用并且路径正确...
see working example具有最新的库
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Test</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="content">
<a href="index.html" data-role="button" data-icon="delete">Delete</a>
</div>
</div>
</body>
</html>
关于javascript - jQuery Mobile不实现样式,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13435214/