[英]So i have this bookmarklet but i dont like the position of the window. How could i make it in the bottom left corner, rather than the top right? [on hold]
This is the code, and i literally just copied and pasted the code from a website.这是代码,我实际上只是从网站上复制并粘贴了代码。 It is a code that lets me view other websites while on a website in a little window.这是一个代码,可以让我在一个小 window 的网站上查看其他网站。 But im dumb and dont know how to reposition it.但我很笨,不知道如何重新定位它。
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)
where you have "top", replace with "bottom".在你有“顶部”的地方,用“底部”替换。 Where you have "right", replace with left在你有“权利”的地方,用左边代替
So on the line with:所以就行了:
right: 10px; top: 10px; border: 5px; ...
Do做
left: 10px; bottom: 10px; border: 5px; ...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.