feat: 固定定位

This commit is contained in:
shaohuzhang1 2023-12-12 10:10:25 +08:00
parent 94689fd730
commit 0ed31af61b

View File

@ -27,7 +27,7 @@
</svg>`; </svg>`;
chat_button = document.createElement("div"); chat_button = document.createElement("div");
chat_button.style = chat_button.style =
"position: absolute;bottom: 40px;right: 20px;cursor: pointer;"; "position: fixed;bottom: 40px;right: 20px;cursor: pointer;";
chat_button.innerHTML = icon; chat_button.innerHTML = icon;
chat_container = document.createElement("div"); chat_container = document.createElement("div");
@ -37,7 +37,7 @@
height: 600px; height: 600px;
border: none; border: none;
border-radius: 7px 7px 7px 7px; border-radius: 7px 7px 7px 7px;
position: absolute;bottom: 40px;right: 20px`; position: fixed;bottom: 40px;right: 20px`;
chat_container.style["display"] = "none"; chat_container.style["display"] = "none";
chat = document.createElement("iframe"); chat = document.createElement("iframe");