所以我有这个书签,但是我不喜欢窗口的位置。我如何在左下角而不是右上角制作它? [关闭]

问题描述 投票:0回答:1

这是代码,我从字面上只是从网站复制并粘贴代码。它是使我可以在一个小窗口中的网站上查看其他网站的代码。但是我很笨,不知道如何重新定位。

javascript:((function()%7Bvar a,b,c;c="https://www.bing.com/?safe=active&ssui=on",b=document.createElement("iframe"),b.setAttribute("src",c),b.setAttribute("id","rusic-modal"),b.setAttribute("style","position: fixed; z-index: 999999; width: 600px; height: 400px; right: 10px; top: 10px; border: 5px solid #8834af; overflow: hidden; background-color: #fff;"),a=document.getElementsByTagName("body")%5B0%5D,a.appendChild(b)%7D)).call(this)

javascript html bookmarklet
1个回答
0
投票

如果您有“顶部”,请替换为“底部”。如果您有“正确”的地方,请替换为左侧

因此与:

right: 10px; top: 10px; border: 5px; ...

执行

left: 10px; bottom: 10px; border: 5px; ...
© www.soinside.com 2019 - 2024. All rights reserved.