CMS项目
最后发布时间:2023-02-14 22:58:37
浏览量:
*::-webkit-scrollbar {
width: 12px;
height: 12px;
}
*::-webkit-scrollbar-button {
width: 0px;
height: 0px;
display: none;
}
*::-webkit-scrollbar-corner {
background-color: transparent;
}
*::-webkit-scrollbar-thumb {
border: 4px solid rgba(0, 0, 0, 0);
height: 6px;
border-radius: 25px;
background-clip: padding-box;
background-color: rgba(0, 0, 0, 0.30);
}
<div class="message" id="message"></div>
.message {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
-webkit-font-feature-settings: 'tnum';
font-feature-settings: 'tnum';
position: fixed;
top: 8px;
left: 0;
z-index: 9999999999;
width: 100%;
pointer-events: none;
}
.message-notice {
padding: 8px;
text-align: center;
-webkit-animation-name: MessageMoveOut;
animation-name: MessageMoveOut;
-webkit-animation-duration: 0.3s;
animation-duration: 0.3s;
}
.message-content {
color: #52c41a;
display: inline-block;
padding: 10px 16px;
background: #fff;
border-radius: 2px;
-webkit-box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
pointer-events: all;
}
const msg = "我是弹框消息";
// 弹窗消息
function handleMessage(message = msg) {
// console.log(message)
const parentDiv = document.createElement("div");
const div = document.createElement("div");
div.className = "message-content";
div.innerHTML = message;
parentDiv.appendChild(div);
parentDiv.className = "message-notice";
document.getElementById("message").appendChild(parentDiv);
setTimeout(() => {
parentDiv.remove();
}, 2000);
}
th:replace="templates/enterprise/fragment/header :: common_header(~{::title},~{},~{::meta})"
<head th:fragment="common_header(title,links,meta)">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<th:block th:replace="${meta}" />
<title th:replace="${title}"></title>
<!-- CSS
============================================ -->
<!-- google fonts -->
<link href="/enterprise/static/css/css.css" rel="stylesheet">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="/enterprise/static/css/bootstrap.min.css">
<!-- Font-awesome CSS -->
<link rel="stylesheet" href="/enterprise/static/css/font-awesome.min.css">
<!-- Slick slider css -->
<link rel="stylesheet" href="/enterprise/static/css/slick.min.css">
<!-- Odometer css -->
<link rel="stylesheet" href="/enterprise/static/css/odometer.min.css">
<!-- animate css -->
<link rel="stylesheet" href="/enterprise/static/css/animate.css">
<!-- main style css -->
<link rel="stylesheet" href="/enterprise/static/css/style.css?v=2.2">
<!--/* Per-page placeholder for additional links */-->
<th:block th:replace="${links}" />
</head>