html弹窗后 自动关闭页面,网页一键复制弹出提示窗口后几秒后自动关闭提示js代码...
L 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
網(wǎng)頁(yè)一鍵復(fù)制彈出提示窗口后幾秒后自動(dòng)關(guān)閉提示js代碼.demo{width:300px; margin:60px auto 10px auto}
@media only screen and (min-width: 420px) {
.demo{width:500px; margin:60px auto 10px auto}
}
button, .button {
background-color: #AEDEF4;color: white;border: none;box-shadow: none;
font-size: 17px;font-weight: 500;font-weight: 600;
border-radius: 3px;padding: 15px 35px;margin: 26px 5px 0 5px;cursor: pointer; }
button:hover, .button:hover {background-color: #a1d9f2; }
Hello World點(diǎn)此復(fù)制
function copyText() {
var Url2 = document.getElementById("keydiv").innerText;
var oInput = document.createElement('input');
oInput.value = Url2;
document.body.appendChild(oInput);
oInput.select();
document.execCommand("Copy");
oInput.className = 'oInput';
oInput.style.display = 'none';
}
$(function() {
$(".demo1 a").click(function() {
swal({
title: "復(fù)制好啦!",
text: '自定義圖片、HTML內(nèi)容。
5秒后自動(dòng)關(guān)閉。',
imageUrl: "thumbs-up.jpg",
html: true,
timer: 5000,
showConfirmButton: false
});
});
});
總結(jié)
以上是生活随笔為你收集整理的html弹窗后 自动关闭页面,网页一键复制弹出提示窗口后几秒后自动关闭提示js代码...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: enable 华为交换机ntdp_华为交
- 下一篇: 单片机上电后没有运转,需要从这些方面考虑