【发布时间】:2017-12-13 05:29:11
【问题描述】:
您好,我想知道这个问题。我在 index.html 上的 css 中创建了选中的按钮。当我签入 index.html 时,我想在 other.html 中创建图像。 (other.html 在你按下之前是空的) 如果你在 index.html 中检查了“检查按钮”,如何在 other.html 中创建新图像?
简单代码示例
<html>
<head>
<style>
input[type="checkbox"] {}
</style>
</head>
<body>
<input type="checkbox" >
</body>
</html>
【问题讨论】:
-
请上传您的代码
-
我添加示例简单代码。
-
一种方法是将选中状态存储在
LocalStorage中,当在other.html中时,在确定是否应显示图像之前从LocalStorage检索复选框状态。
标签: javascript jquery html css