简体   繁体   English

所以我有这个书签,但我不喜欢 window 的 position。 我怎么能把它放在左下角,而不是右上角? [等候接听]

[英]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.

相关问题 我想以简单的html显示图像从右上角移动到左下角 - I want to show a image moving from right top corner to left bottom corner in simple html 如何更改数字时钟的位置,使其位于网站的右上角? - How can I change the digital clock position so it will be at the top right corner of my website? 如何将背景图像定位到html元素的左上角和右下角? - How can i position a background image to the top left and bottom right of a html element? 如何移动“退出”按钮,使其位于模式框的右上角? - How do I move the “exit” button so that it's in the top right corner of my modal box? 如何使模态背景转到页面底部而不是视口底部? - How can I make my modal background go to the bottom of the page rather than the bottom of the viewport? 我如何动画一只鸟移动到汗的右下角 - How do I animate a bird to move to the bottom right corner in Khan 右上角和左下角的半边框与CSS - half borders at top right corner and bottom left corner with css 如何在图像的右上角叠加一个图标? - How can I overlay an icon on the top right corner of image? Fabric Js:如何仅以2个点(即左上角和右下角)以编程方式创建矩形? - Fabric Js: How to Create Rectangle programatically with only 2 points that is Top Left Corner and Bottom Right Corner? 我想检测用户是否单击了图像的左上方,右上方,左下方或右下方。 - I want to detect if the user clicks over the top left, the top right, the bottom left, or the bottom right part of the image.
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM