Javascript Bootstraptour页面正在破坏移动设备中的UI?
我有一个使用bootstraptour(产品巡更页面)实现的页面。它可以在大屏幕上正常工作,比如台式机和笔记本电脑 但当我在移动设备中打开该页面时,整个UI都崩溃了,所以我发现标题中没有视口 因此,我在标题中添加了以下标记:Javascript Bootstraptour页面正在破坏移动设备中的UI?,javascript,html,css,twitter-bootstrap,user-interface,Javascript,Html,Css,Twitter Bootstrap,User Interface,我有一个使用bootstraptour(产品巡更页面)实现的页面。它可以在大屏幕上正常工作,比如台式机和笔记本电脑 但当我在移动设备中打开该页面时,整个UI都崩溃了,所以我发现标题中没有视口 因此,我在标题中添加了以下标记: <meta name="viewport" content="width=device-width, initial-scale=1.0"> 在那之后,用户界面更好了,但仍然有很多问题。那么我还有什么需要补充的吗 这是我的页面标题链接: <html
<meta name="viewport" content="width=device-width, initial-scale=1.0">
在那之后,用户界面更好了,但仍然有很多问题。那么我还有什么需要补充的吗
这是我的页面标题链接:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<script src="//dujl9qf395ztu.cloudfront.net/js_new/jquery-1.9.1.js"></script>
<script src="//dujl9qf395ztu.cloudfront.net/js_new/Chart.js"></script>
<!-- JavaScript -->
<script src="//dujl9qf395ztu.cloudfront.net/js_new/bootstrap.js"></script>
<script src="//dujl9qf395ztu.cloudfront.net/js_new/bootstrap-tour.js"></script>
<script src="//dujl9qf395ztu.cloudfront.net/js_new/demo.js"></script>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<title>Hachi| Product Tour</title>
<!-- Bootstrap core CSS -->
<link href="//dujl9qf395ztu.cloudfront.net/css_new/bootstrap.css" rel="stylesheet">
<link href="//dujl9qf395ztu.cloudfront.net/css_new/tour_app.css" rel="stylesheet">
<!-- Custom Google Web Font -->
<link href="//dujl9qf395ztu.cloudfront.net/css_new/font-awesome.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css'>
<!-- Add custom CSS here -->
<link href="//dujl9qf395ztu.cloudfront.net/css_new/bootstrap-tour.min.css" rel="stylesheet">
<script src="//dujl9qf395ztu.cloudfront.net/js_new/jquery-1.9.1.js"></script>
</head>
Hachi |产品之旅
您的jquery包含两次…为什么在
之前包含JS?这是错误的一步吗?不确定这是否会解决您的问题,但您肯定应该在
中或在关闭
标记之前包含JS,并且只包含一次jquery,在任何其他可能需要它的JS文件之前。我做了你提到的更改并尝试现在运行它仍然显示ui中断…有任何元标记我需要添加吗?