fix: 修改央视
This commit is contained in:
parent
d074365d4f
commit
4d9236b46f
2
libs.js
2
libs.js
|
@ -46,7 +46,7 @@ const getQueryString = (name) => {
|
|||
* @returns
|
||||
*/
|
||||
const pageOutTime = (timestamp) => {
|
||||
if (timestamp) {
|
||||
if (timestamp || timestamp === "0") {
|
||||
const now = new Date().getTime(); // 获取当前时间的时间戳
|
||||
let diff = Number(timestamp) - now; // 计算差异(以毫秒为单位)
|
||||
|
||||
|
|
|
@ -129,11 +129,14 @@ a {
|
|||
|
||||
.countdown {
|
||||
position: absolute;
|
||||
top: 2.4%;
|
||||
left: 7%;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
z-index: 999;
|
||||
/* 使用transform属性进行微调,确保完全居中 */
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.countdown p {
|
||||
|
|
Loading…
Reference in New Issue