简体   繁体   English

调整浏览器窗口大小时,如何使我的HTML表位于同一位置?

[英]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.

相关问题 HTML / CSS:在调整浏览器窗口大小时如何使网页保持不变? - HTML/CSS: How to make web page stay put when resizing browser window? 在Bootstrap 3中使用Navbar-Brand调整浏览器大小时,如何使徽标保持在左侧? - How Do I Make My Logo Stay Left While Resizing Browser Using Navbar-Brand In Bootstrap 3? 如何在调整文字大小时确保项目保持相同高度? - How to make sure items stay at the same height while resizing text? 如何在调整文本大小时确保按钮保持在同一高度? - How to make sure buttons stay at the same height while resizing text? 在调整窗口大小时使div保持不变 - Making divs stay the same place when resizing window 如何让我的桌子居中在 HTML - How to make my table stay centered in HTML 在调整浏览器窗口大小时,使浏览器窗口与元素的大小相同。 或至少保持与元素相同的浏览器纵横比 - make the browser window as same as the element's size while resizing browser window. or atleast maintain same aspect ratio of browser as element have 如何在 window 调整大小时使表格响应? - How can I make table responsive while window resizing? CSS / HTML使文本相对于图像大小调整保持相同的位置? - CSS/HTML make text stay the same position relative to an image resizing? 调整表格或窗口的大小? HTML5 - Resizing my Table or Window? HTML5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM