search
HomeWeb Front-endHTML Tutorial页面CSS问题,刚进入正常,刷新出错。望指点,。_html/css_WEB-ITnose

CSS布局  刷新问题

给公司弄网站,,很久没碰代码这些了。在这个页面(http://www.dayusw.com/?list-1512.html),IE9刚刚进入布局正常,但刷新几次之后就不正常,继续刷新又不正常,继续刷新又正常, 如此循环,这是怎么回事?望各位帮忙一下。。

回复讨论(解决方案)

这是CSS

/*案例图片列表*/.art_list { padding-top:30px; padding-left:0px; }.art_list ul {list-style:none; padding:0px; margin:0; }.art_list ul li{ float:left; padding-left:20px;padding-bottom:20px; }.art_list ul li .pic2{ background:url(cp_bog.png) no-repeat; padding-top:5px; padding-left:5px; width:190px; height:132px; }.art_list ul li .pic2 img{ width:170px; height:122px;}.art_list ul li .pic2 img:hover{width:168px; height:120px; border:#DDDDDD solid 1px}.art_list ul li .title2{ width:160px; text-align:center;  padding:10px; }.art_list ul li .title2 a{ font-size:14px }.art_list ul li .title2 span.jg{ float:right; color:#FF3300}/*案例图片列表结束*/

这个是一个模板里面的代码

<!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><title>{$GetClassName}-{$GetSiteTitle}</title><meta content="text/html; charset=gb2312" http-equiv=Content-Type><meta content="{$GetClass_Meta_KeyWord}" name="keywords" /><meta content="{$GetClass_Meta_Description}" name="Description" /><link href="{$GetInstallDir}img/index.css" type=text/css rel=stylesheet><script src="{$GetInstallDir}ks_inc/common.js" type="text/javascript"></script><script type="text/javascript" src="{$GetInstallDir}img/jquery-1.4.2.min.js"></script><script type="text/javascript" src="{$GetInstallDir}img/swfobject.js"></script><SCRIPT type=text/javascript>						var params = {};			params.allowscriptaccess = "always";			params.allownetworking = "all";			params.wmode = "transparent";			var attributes = {};			attributes.id = "bar_swf";			attributes.wmode = "transparent";			swfobject.embedSWF("{$GetInstallDir}img/bar_swf.swf", "bar_swf", "1000", "200", "9", '', params,attributes);</SCRIPT></head><body>{LB_头部通用}<div class="main">    <div class="wart">    <div><div id="bar_swf"></div></div>    <table width="100%" border="0" cellspacing="0" cellpadding="0"  class="art_main">      <tr>        <td width="220" height="500" valign="top" class="left_bg"  >                <div class="dhbt2"></div>        <div class="dhbt"></div>        <div class="left_m">              {LB_栏目导航}       </div>                                </td>        <td width="20"></td>        <td valign="top">           <div class="pageurl"><span class="url">{LB_位置导航}</span></div>           <div class="art_list_title">{$GetClassName}</div>           <div class="art_list">           <div class="list_pic">{LB_穿插图片}</div>	   <br/><div class="clr"></div>{LB_终级文章列表}           </div>           <div style="height:50px;"></div>          </td>      </tr>    </table>    </div></div>{LB_底部通用}</body></html>

清一下缓存看看

清一下缓存看看 我的IE设置为关闭后自动清除。但问题依旧。难道是兼容性问题?目前使用WIN7 64位,IE9和遨游4.1

刚也用IE9测试一下你说的那个页面,没有你说的那个问题。
另外值得一提的是,IE如果连续刷新,两次刷新间隔较短的话,都会有你说的那种情况,任何一个网站都会有,你随便找个网站,不停的按F5你会发现有这个问题。

刚也用IE9测试一下你说的那个页面,没有你说的那个问题。
另外值得一提的是,IE如果连续刷新,两次刷新间隔较短的话,都会有你说的那种情况,任何一个网站都会有,你随便找个网站,不停的按F5你会发现有这个问题。 好的,,谢谢咯哦。。。

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
HTML, CSS, and JavaScript: Examples and Practical ApplicationsHTML, CSS, and JavaScript: Examples and Practical ApplicationsMay 09, 2025 am 12:01 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML is used to build web page structure; 2. CSS is used to beautify the appearance of web pages; 3. JavaScript is used to achieve dynamic interaction. Through tags, styles and scripts, these three together build the core functions of modern web pages.

How do you set the lang attribute on the  tag? Why is this important?How do you set the lang attribute on the tag? Why is this important?May 08, 2025 am 12:03 AM

Setting the lang attributes of a tag is a key step in optimizing web accessibility and SEO. 1) Set the lang attribute in the tag, such as. 2) In multilingual content, set lang attributes for different language parts, such as. 3) Use language codes that comply with ISO639-1 standards, such as "en", "fr", "zh", etc. Correctly setting the lang attribute can improve the accessibility of web pages and search engine rankings.

What is the purpose of HTML attributes?What is the purpose of HTML attributes?May 07, 2025 am 12:01 AM

HTMLattributesareessentialforenhancingwebelements'functionalityandappearance.Theyaddinformationtodefinebehavior,appearance,andinteraction,makingwebsitesinteractive,responsive,andvisuallyappealing.Attributeslikesrc,href,class,type,anddisabledtransform

How do you create a list in HTML?How do you create a list in HTML?May 06, 2025 am 12:01 AM

TocreatealistinHTML,useforunorderedlistsandfororderedlists:1)Forunorderedlists,wrapitemsinanduseforeachitem,renderingasabulletedlist.2)Fororderedlists,useandfornumberedlists,customizablewiththetypeattributefordifferentnumberingstyles.

HTML in Action: Examples of Website StructureHTML in Action: Examples of Website StructureMay 05, 2025 am 12:03 AM

HTML is used to build websites with clear structure. 1) Use tags such as, and define the website structure. 2) Examples show the structure of blogs and e-commerce websites. 3) Avoid common mistakes such as incorrect label nesting. 4) Optimize performance by reducing HTTP requests and using semantic tags.

How do you insert an image into an HTML page?How do you insert an image into an HTML page?May 04, 2025 am 12:02 AM

ToinsertanimageintoanHTMLpage,usethetagwithsrcandaltattributes.1)UsealttextforaccessibilityandSEO.2)Implementsrcsetforresponsiveimages.3)Applylazyloadingwithloading="lazy"tooptimizeperformance.4)OptimizeimagesusingtoolslikeImageOptimtoreduc

HTML's Purpose: Enabling Web Browsers to Display ContentHTML's Purpose: Enabling Web Browsers to Display ContentMay 03, 2025 am 12:03 AM

The core purpose of HTML is to enable the browser to understand and display web content. 1. HTML defines the web page structure and content through tags, such as, to, etc. 2. HTML5 enhances multimedia support and introduces and tags. 3.HTML provides form elements to support user interaction. 4. Optimizing HTML code can improve web page performance, such as reducing HTTP requests and compressing HTML.

Why are HTML tags important for web development?Why are HTML tags important for web development?May 02, 2025 am 12:03 AM

HTMLtagsareessentialforwebdevelopmentastheystructureandenhancewebpages.1)Theydefinelayout,semantics,andinteractivity.2)SemantictagsimproveaccessibilityandSEO.3)Properuseoftagscanoptimizeperformanceandensurecross-browsercompatibility.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function