后台-插件-广告管理-内容页广告位一(手机)

您现在的位置是:首页 > 开发类 > 问答问答

ie6样式的问题

2021-07-06 20:11:44问答人已围观

简介 以下这段代码ie7和ff都能覆盖都全屏 <BR>但ie6就不行 <BR>请教怎么解决 <BR><BR><SPAN style="COLOR: #0000ff"><!</SPAN><SPAN style="COLOR: #ff00ff">DOCTY

以下这段代码ie7和ff都能覆盖都全屏 <BR>但ie6就不行 <BR>请教怎么解决 <BR><BR><SPAN style="COLOR: #0000ff">&lt;!</SPAN><SPAN style="COLOR: #ff00ff">DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">html </SPAN><SPAN style="COLOR: #ff0000">xmlns</SPAN><SPAN style="COLOR: #0000ff">="http://www.w3.org/1999/xhtml"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">head</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">meta </SPAN><SPAN style="COLOR: #ff0000">http-equiv</SPAN><SPAN style="COLOR: #0000ff">="Content-Type"</SPAN><SPAN style="COLOR: #ff0000"> content</SPAN><SPAN style="COLOR: #0000ff">="text/html; charset=gb2312"</SPAN><SPAN style="COLOR: #ff0000"> </SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">title</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">无标题文档</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">title</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">style </SPAN><SPAN style="COLOR: #ff0000">type</SPAN><SPAN style="COLOR: #0000ff">="text/css"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #800000; BACKGROUND-COLOR: #f5f5f5"><BR>body</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{</SPAN><SPAN style="COLOR: #ff0000; BACKGROUND-COLOR: #f5f5f5">background-color</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">:</SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">#CCCCCC</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">}</SPAN><SPAN style="COLOR: #800000; BACKGROUND-COLOR: #f5f5f5"><BR>.over</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{</SPAN><SPAN style="COLOR: #ff0000; BACKGROUND-COLOR: #f5f5f5"><BR>position</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">:</SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">absolute</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;</SPAN><SPAN style="COLOR: #ff0000; BACKGROUND-COLOR: #f5f5f5"><BR>height</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">:</SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">100%</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;</SPAN><SPAN style="COLOR: #ff0000; BACKGROUND-COLOR: #f5f5f5"><BR>width</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">:</SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">100%</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;</SPAN><SPAN style="COLOR: #ff0000; BACKGROUND-COLOR: #f5f5f5"><BR>background-color</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">:</SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">#99CCFF</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;</SPAN><SPAN style="COLOR: #ff0000; BACKGROUND-COLOR: #f5f5f5"><BR>top</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">:</SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">0</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;</SPAN><SPAN style="COLOR: #ff0000; BACKGROUND-COLOR: #f5f5f5"><BR>left</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">:</SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">0</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;</SPAN><SPAN style="COLOR: #ff0000; BACKGROUND-COLOR: #f5f5f5"><BR></SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">}</SPAN><SPAN style="COLOR: #800000; BACKGROUND-COLOR: #f5f5f5"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">style</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">head</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">body</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">div </SPAN><SPAN style="COLOR: #ff0000">class</SPAN><SPAN style="COLOR: #0000ff">="over"</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">div</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">body</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">html</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN>

最佳答案:body 限制的大小 body好像就那么大 把body也设置成100% 100%就可以了

文章来源:https://q.cnblogs.com/q/2531/

Tags:网站开发 HTMLCSS基础 

很赞哦! ()

后台-插件-广告管理-内容页广告位二(手机)

相关文章

后台-插件-广告管理-内容页广告位三(手机)
后台-插件-广告管理-内容页广告位四(手机)

文章评论

留言与评论(共有 0 条评论)
   
验证码:

本栏推荐

站点信息

  • 文章统计90095篇文章
  • 浏览统计10083次浏览
  • 评论统计1个评论
  • 标签管理标签云
  • 统计数据:统计代码
  • 微信公众号:扫描二维码,关注我们