簡體   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]

這是代碼,我實際上只是從網站上復制並粘貼了代碼。 這是一個代碼,可以讓我在一個小 window 的網站上查看其他網站。 但我很笨,不知道如何重新定位它。

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)

在你有“頂部”的地方,用“底部”替換。 在你有“權利”的地方,用左邊代替

所以就行了:

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

left: 10px; bottom: 10px; border: 5px; ...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM