HTML 在缩放时保持文本与左边距间隔
有谁知道该怎么做。仅使用 HTML,我将正文左右边距设置为 300 像素。
现在我想让文本距左边距大约 300 像素,这样当我缩小时,它仍然远离左边距,但仍然浮动到左侧。
编辑:问题需要重新表述。
答:非常感谢你们的帮助,我真的很感激。在得到一些回应并重新思考之后,我研究了一些可行的方法。我要接受这个。
我现在正在使用:
<body background="image url" leftmargin="300px">
<p style="margin-left: 355px;"> My Header goes here </p>
Text for rest of page goes here.
Does anyone know how to do this. Using just HTML I have my body margins set to 300px left and right.
Now I want to keep the text about 300px out from the left margin so that when I zoom out it stays that far away from the left margin but still floats to the left.
edited: Question needed to be rephrased.
Answer: You guys thanks a lot for all your help I really appreciate it. After getting some responses and rethinking things I have researched something that will work. I am going to go with this.
I am now using:
<body background="image url" leftmargin="300px">
<p style="margin-left: 355px;"> My Header goes here </p>
Text for rest of page goes here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用这个:
** 您可以根据需要更改边距和宽度。
you can use this :
** you can change your margin and width as you like.