【发布时间】:2017-04-04 23:28:07
【问题描述】:
我正在为 iPad 制作一个移动网络应用程序。我从谷歌网站上获得了添加 youtube 订阅按钮的代码:
<script src="https://apis.google.com/js/platform.js"></script>
<div class="g-ytsubscribe" data-channelid="UCICWAtoGya9rQRPRSseDpjw" data-layout="full" data-count="default"></div>
每当我打开网络应用程序时——甚至在应用程序加载之前且没有提示——它都会打开 YouTube 应用程序。谁能帮帮我?
我在http://mazes.ml/web-app 使用代码制作了一个新的网络应用程序:
<!DOCTYPE html>
<html>
<head>
<title>YouTube Button</title>
<script src="https://apis.google.com/js/platform.js"></script>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="YouTube Button">
</head>
<body>
<div class="g-ytsubscribe" data-channelid="UCICWAtoGya9rQRPRSseDpjw" data-layout="full" data-count="default"></div>
</body>
</html>
【问题讨论】:
标签: html ipad web-applications youtube mobile-safari