ie 刷新引起闪屏 求教如何解决?

6 views
Skip to first unread message

Ryan Qin

unread,
Apr 13, 2007, 4:12:21 AM4/13/07
to syde...@googlegroups.com
<!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=utf-8" />
<meta name="author" content="Wayhome Wang" />
<meta name="Copyright" content="Copyright (C) 2003-2005 www.Abloxo.com All Rights Reserved." />
<meta name="description" content="Wayhome Wang icon, ui, website, wallpaper, design" />
<title></title>
<style type="text/css">
.wrap_l{float:left;background:#FF0000;margin-right:-150px;width:150px;}/*左边栏,固定宽度*/
.wrap_m{width:auto;background:#00FF00;margin:0 140px 0 150px;}           /*中间栏,自适应宽度*/
.wrap_r{float:right;background:#0000FF;margin-left:-140px;width:140px;}/*右边栏,固定宽度*/
</style>
</head>
<body>
<div id="wrap">
    <div class="wrap_l">
        这是左边部分<br />
        这是左边部分<br />
        这是左边部分
    </div>
    <div class="wrap_r">
        这是右边部分<br />
        这是右边部分<br />
        这是右边部分
    </div>
    <div class="wrap_m">
        这是中间部分fdasfdsafdsa<br>fdsafasd<br>fdsafsdafasd<br>fdasfdsaf<br>fdsafasd<br>fdfdsafsd<br>
        fdsafdsajklfdsj;jfkl;dsjalfksda<br>fjdskalfjdasuoibvjkclhfsdakf<br><br><br>fdsafdas
        ffdsafdsafdsafdsa<br>
        dsa
        f
        dasfdsafdasfjdkl<br>sajbviocpi8opklergnbvocjkl msd
        fdsajkl;fdjs<br>akl;ubv90cio[xjk gefml;gbdf
        gdfjkl;asfjdaskl;fuiopbuvcioknekkr';ewlq
        fdsajfkl;dsjafio;dusapf
        <div class="wrap_inner_l">中间的左边</div>
        <div class="wrap_inner_m">中间的右边</div>    
        这是中间部分
    </div>
</div>
</body>
</html>
在IE中按动刷新,屏幕闪烁。影响效果,请问如何解决。

异国

unread,
Apr 15, 2007, 8:26:51 PM4/15/07
to 沈阳xhtml+美工讨论区
的确如此;好像是IE自己的问题,比如这个页面也是如此 http://www.w3cn.org/article/layout/2004/csslayout/fourbox_touch.html
;不过你的CSS中为何要用负数来指定marning的位置呢,这种用法有点奇怪。

Ryan Qin

unread,
Apr 16, 2007, 1:32:27 AM4/16/07
to syde...@googlegroups.com
这是网上的代码,我拿来研究的。它说这是"负值外补丁"(negative margins)的液态布局方法。
我在学习中,谢谢你的解答。


Reply all
Reply to author
Forward
0 new messages