绝对位置与左边距硬右对齐
我无法弄清楚如何在特定点停止绝对定位的元素。
在此页面上,您将看到“让我加入您的团队”字样,这些字样和机器人绝对定位所以它们总是在屏幕上很硬。我想做的是,当屏幕大小调整为更窄时,我想阻止它与 mac 图像重叠。我尝试添加 margin-left: 900px;但当屏幕变小时,它没有效果。有谁知道如何在使浏览器更窄时在特定点停止单词和机器人?
I can't work out how to stop an absolutely positioned element at a particular point.
On this page you will see the words "Get me on your team" these words and the robot are absolutely positioned so they are always hard right on the screen. What I am trying to do is when the screen is re-sized to become more narrow I want to stop it overlapping the mac image. I have tried adding margin-left: 900px; but it has no effect when making the screen smaller. Does anybody know how to stop the words and robot at a particular point when making the browser more narrow?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您想在包含元素上设置
min-width
。还设置相对位置,以便机器人绝对定位于身体而不是窗户。
I think you want to set a
min-width
on the containing element.also set position relative so that the robot is positioned absolute to the body in stead of to the window.