gpt4 book ai didi

javascript - Chrome 扩展程序中日历弹出窗口的问题

转载 作者:行者123 更新时间:2023-11-28 00:56:51 24 4
gpt4 key购买 nike

我正在开发一个 Chrome 扩展,需要在表单中输入日期。该表单正在弹出窗口中显示。现在,每当我单击日历时,整个弹出窗口都会关闭,而不仅仅是日历。预防它的最佳方法是什么?以下是我的文件的快照:

list .json

{
"manifest_version": 2,
"name": "Extension Example",
"version": "0.2",
"background": {
"persistent": false
},
"browser_action": {
"default_icon": "icon.png",
"default_popup": "index.html"
},
"permissions": [
"tabs",
"http://*/*",
"https://*/*"
]
}

index.html

<!doctype html>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">

<title>Extension Sample</title>

<!-- Bootstrap itself -->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">

<!-- Custom styles -->
<link rel="stylesheet" href="css/style.css">

<!-- Fonts -->
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Wire+One' rel='stylesheet' type='text/css'>


<body class="theme">

<!-- Main (Home) section -->
<div>
<div class="container">
<div class="row">
<div class="col-md-10 col-lg-10 col-md-offset-1 col-lg-offset-1 text-center">
<h3 class="tagline">Sample</h3>
<div>
<form method="POST">
<div class="row col-sm-8 col-sm-offset-2">
<input class="form-control" type="text">
<input class="form-control" type="date">
<input class="form-control" type="time">
<input class="form-control" type="email">
<br>
<input class="form-control submit" type="submit" value="Submit">
</div>
</form>
</div>
</div> <!-- /col -->
</div> <!-- /row -->
</div>

</div>
<script src="libs/jquery.1.7.0.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="popup.js"></script>


</body>

最佳答案

这已在两年前作为一个更普遍的错误提交,但仍未解决:

https://code.google.com/p/chromium/issues/detail?id=163851

请前往那里并为该问题加注星标,以便人们处理它。

关于javascript - Chrome 扩展程序中日历弹出窗口的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26126179/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com