[英]How to make my HTML table stay at the same place while resizing the browser window?
How do I make my table stay at same position when I resize my browser window? 调整浏览器窗口大小时如何使表格保持在同一位置?
I am using css: 我正在使用CSS:
#table{
top: 78px;
right: 850px;
position: absolute;
}
there isn't enough information but there's something that you might not realized you are doing wrong. 没有足够的信息,但是有些事情您可能没有意识到自己做错了。
If you are using #<name>
in css you need to add id=<name>
to the html tag as an attribute. 如果在CSS中使用
#<name>
,则需要将id=<name>
作为属性添加到html标记中。
If you want all table to use that CSS, you need to remove the #
如果您希望所有表格都使用该CSS,则需要删除
#
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.