分辨率一变,这里的固定层怎么都弄都变形_html/css_WEB-ITnose
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;charset=GBK" /><meta http-equiv="Content-Language" content="zh-CN" /><meta http-equiv="Author" content="自然" /><meta http-equiv="Index" content="http://blog.csdn.net/xxd851116" /><title>资料</title><style type="text/css"> /*<![CDATA[*/ body {margin:0; padding:0; height:100%; overflow:auto;}/* 全局浮动层固定默认样式设置,支持FF和IE */.fixed {position:fixed;}* html div.fixed {position:absolute; right:16px;} /* [only for ie] "right=16px"是为了显示滚动条,即right最小值为16px */html {overflow:auto !important; overflow:hidden;}#menu1 {width:100%; padding:10px; text-align:center; font-weight:bold; background:#000; color:#FFF; top:0;}#menu2 {width:1180px; padding:10px; text-align:center; font-weight:bold; top:30px; left:41px}/* 修改左边距离left***px */#menu1 a {color:#FFF;}.STYLE1 {color: #000000; font-size: 9pt; width: 80px;overflow:hidden;text-overflow:ellipsis;/*文字溢出的部分隐藏并用省略号代替*/white-space:nowrap;/*文本不自动换行*/}.STYLE4 {font-size: 12px; color: #000000; width: 80px;}.STYLE8 {font-size: 12px; color: #000000; }.STYLE6 {font-size: 12px; color: #CCFF66; width: 80px; }</style></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><div id="menu1" class="fixed"> <table width="665" align="center" cellpadding="1" cellspacing="1"> <tr> <td width="66" height="19"><center class="STYLE8"> <a href="#" target="_parent">FFS</a> </center> </td> <td width="138" height="19"> <center class="STYLE8"> <a href="#" target="_parent">SSS</a> </center> </td> <td width="147" height="19"><center class="STYLE8"> <a href="#" target="_parent">GGG</a> </center> </td> <td width="163"><div align="center" class="STYLE8"><a href="#" target="_parent">CCC</a> </div> <center class="STYLE8"> </center> </td> <td width="133"> <div align="center" class="STYLE8"><a href="#" target="_parent">NNN</a></div></td> </tr> </table></div><center> <p> </p> <p> </p> <div id="menu2" class="fixed"> <table width="1115" align="center" cellpadding="1" cellspacing="1"> <tr> <td height="19" colspan="8"><center> <table align="center" cellpadding="1" cellspacing="1" bordercolor="#000000" bgcolor="#FFFFFF" width="918" > <tr height="23"> <td width="80" height="66" bgcolor="#333333"><div align="center" class="STYLE6">AAA</div></td> <td width="80" height="66" bgcolor="#333333"><div align="center" class="STYLE6"> BBB </div></td> <td width="80" bgcolor="#333333"><div align="center" class="STYLE6"> CCC </div></td> <td width="80" bgcolor="#333333"><div align="center" class="STYLE6"> DDD </div></td> <td width="80" bgcolor="#333333"><div align="center" class="STYLE6"> EEE </div></td> <td width="80" bgcolor="#333333"><div align="center" class="STYLE6"> FFF </div></td> <td width="80" bgcolor="#333333"><div align="center" class="STYLE6"> GGG </div></td> <td width="80" bgcolor="#333333"><div align="center" class="STYLE6"> SSS </div></td> <td width="80" bgcolor="#333333"><div align="center" class="STYLE6"> VVV </div></td> <td width="80" bgcolor="#333333"><div align="center" class="STYLE6"> XXX </div></td> <td width="82" bgcolor="#333333"><div align="center" class="STYLE6"> BBB </div></td> </tr> </table> </center></td> </tr> </table> </div> <p> </p> <p> </p><body bgcolor="#C1DAD7"> <table width="918" align="center" cellpadding="1" cellspacing="1" bordercolor="#000000" bgcolor="#FFFFFF" > <tr height="23" width="1334"><td width="80" height="34" bgcolor="#CCCCCC"><div align="center" class="STYLE4"><a href="#"><font color="##FF0000">修改</font></a> </div></td> <td width="80" height="34" bgcolor="#CCCCCC"><div align="center" class="STYLE1"> a </div></td> <td width="80" bgcolor="#CCCCCC"><div align="center" class="STYLE1"> b </div></td> <td width="80" bgcolor="#CCCCCC"><div align="center" class="STYLE1"> c </div></td> <td width="80" bgcolor="#CCCCCC"><div align="center" class="STYLE1"> d </div></td> <td width="80" bgcolor="#CCCCCC"><div align="center" class="STYLE1"> e</div></td> <td width="80" bgcolor="#CCCCCC"><div align="center" class="STYLE1"> f </div></td> <td width="80" bgcolor="#CCCCCC"><div align="center" class="STYLE1"> g </div></td> <td width="80" bgcolor="#CCCCCC"><div align="center" class="STYLE1"> h </div></td> <td width="80" bgcolor="#CCCCCC"><div align="center" class="STYLE1"> i </div></td> <td width="82" bgcolor="#CCCCCC"><div align="center" class="STYLE1"> j </div></td> </tr> <%rs.movenextloop%></table></center> </p> </p> </p> </p> </p> </p> </p> </p> </p> </p></body></html>
回复讨论(解决方案)
这个很正常啊,如果超出了你设定的page的宽度,超出内容会下移,所以有两种方式设定宽度,要么用百分比,要么给值,两个一起用很容易出错的。。
没事,兼容性问题,学到后边是可以解决的

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The official account web page update cache, this thing is simple and simple, and it is complicated enough to drink a pot of it. You worked hard to update the official account article, but the user still opened the old version. Who can bear the taste? In this article, let’s take a look at the twists and turns behind this and how to solve this problem gracefully. After reading it, you can easily deal with various caching problems, allowing your users to always experience the freshest content. Let’s talk about the basics first. To put it bluntly, in order to improve access speed, the browser or server stores some static resources (such as pictures, CSS, JS) or page content. Next time you access it, you can directly retrieve it from the cache without having to download it again, and it is naturally fast. But this thing is also a double-edged sword. The new version is online,

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

This article demonstrates efficient PNG border addition to webpages using CSS. It argues that CSS offers superior performance compared to JavaScript or libraries, detailing how to adjust border width, style, and color for subtle or prominent effect

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex
