Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望你能在这方面帮助我。我在谷歌等网站上搜索了 1 个小时,但没有任何效果。我在浏览器的顶部右侧有一个绝对 DIV。
我如何防止,当浏览器水平调整大小时,它比例如更多地位于中心。距离页面水平中心 400 像素?
不能太难,但我已经不知道了。
2个可能的解决方案:
float: right;
.rightDiv { right: 5px; } @media (min-width: 720px) { .rightDiv { right: 50px; } @media (min-width: 960px) { .rightDiv { right: 100px; } }
I am currently attempting to add a listener to my button so that when it is clicked it loads what is in the 'textId' textfield into an html text above said textfield and button. This is so th