| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2416 人关注过本帖
标题:求助:.NET网页无法再IE6中正常显示
只看楼主 加入收藏
xueshuai
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2008-9-8
收藏
 问题点数:0 回复次数:9 
求助:.NET网页无法再IE6中正常显示
用.NET做的一个网站,在IE7中显示正常,但是用IE6浏览就不行了,只有aspx格式的网页不能正常显示,html可以正常显示,请教高手!网址:http://www.
搜索更多相关主题的帖子: 网页 NET 
2008-09-09 10:33
hebingbing
Rank: 6Rank: 6
来 自:黄土高坡
等 级:贵宾
威 望:27
帖 子:3417
专家分:371
注 册:2007-10-22
收藏
得分:0 
那你看到底是什么标签失效啊……
2008-09-09 12:00
xueshuai
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2008-9-8
收藏
得分:0 
div ul li 都失效,就是头部和TAB显示不正常,然后用ASPX做的导航也不管用了
2008-09-09 12:10
雨夜·路人
Rank: 1
等 级:新手上路
威 望:1
帖 子:79
专家分:0
注 册:2008-8-27
收藏
得分:0 
感觉你的css什么的东东像是基于ie7写的
2008-09-09 14:01
freexiaoyu
Rank: 1
等 级:新手上路
帖 子:118
专家分:0
注 册:2007-3-31
收藏
得分:0 
看看自己写的CSS

2008-09-09 14:35
hebingbing
Rank: 6Rank: 6
来 自:黄土高坡
等 级:贵宾
威 望:27
帖 子:3417
专家分:371
注 册:2007-10-22
收藏
得分:0 
是有点奇怪啊,我的机子是ie7.0的,在我的电脑 上一切正常,现在在学校6.0的机子看是变化很大……
2008-09-09 14:43
xueshuai
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2008-9-8
收藏
得分:0 
现在头部声明换了一下,换成了<!DOCTYPE   html   PUBLIC   "-//W3C//DTD XHTML   1.0 Transitional//EN"   "http://www.  在IE6中选择编码为“简体中文,会好一点,但是动态网页的文字就成乱码了!跟这个网站用的同样的CSS文件的静态网站http://www. 在IE6和IE7里边完全正常,我真无语了!高手来指点下,该向哪方面努力才行啊!
2008-09-09 15:42
xueshuai
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2008-9-8
收藏
得分:0 
网站用的CSS代码
/* CSS Document */
body {    padding: 0;
    margin: 0;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    background:url(../Images/headerbg.jpg) repeat-x #fff;}
h1{ font-size:26px; color:#000; font: "黑体";}
h2{ font-size:12px; font-weight:normal;}
h3{font-size:18px; color:#000; margin:0; padding:0;}
h4{font-size:14px; font-weight:bold; border-bottom:1px solid #a4c8e0; background:url(ico_06.gif) no-repeat 0.1em 0.1em; padding-left:20px; margin:10px auto;}
h5{font-size:18px; color:#000; margin:0; padding:0; text-align:center;}
.ico_08{background:url(ico_08.gif) no-repeat 0.1em 0.2em;}
.time{
text-align:right;
font-size:12px;
color:#666;
height:16px;
border-top:1px solid #a4c8e0;
height:25px;
padding-top:4px;
}
.red{
color:#FF0000;
}
.green{
color: #009900;
}
.textcenter{ text-align:center;}
/* table */
td
{
    font-size:9pt;
}
/* links */
a {
color: #175d9f;text-decoration: none;
}
a:hover {
color: #078635;text-decoration: none;
}
*{
margin:0;
padding:0;
}
.blank1{background: none repeat scroll 0%;clear:both;font-size:1px;height:100px;margin:0pt auto;width:100%;}
.blank2{background: none repeat scroll 0%;clear:both;font-size:1px;height:10px;margin:0pt auto;width:100%;}
.left{
float:left;
}
.right{
float:left;
}
#wrap{
    width: 780px;
    margin: 0 auto;
    overflow: hidden;
}
/* easy clearing */
#wrap:after
    {
    content: '[DO NOT LEAVE IT IS NOT REAL]';
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    }
#wrap
    {
    display: inline-block;
    }
/*\*/
#wrap
    {
    display: block;
    }

background:url(../Images/headerbg.jpg) no-repeat #fff; height:75px;
}
#header .nav{
width:780px; float:right; display:block;
}
#header .nav li{
list-style:none; display:inline; float:right; padding:2px; width:62px;
}
#header .nav01 li{
list-style:none; display:inline; float:right; padding:2px; width:80px;
}
#header .logo{
width:163px; height:44px; margin:0 10px 0 15px; float:left; display:inline; background:url(../Images/logo.jpg) no-repeat;
}
.logotitle{
float:left; display:inline;
}
.login ul{
float:left; width:30px; margin-top:15px; margin-left:25px;
}
.login li{
list-style:none; display:inline; float:left; padding:2px; width:40px; margin-top:15px;
}
.loginnav{
float:left; display:inline; width:80%; margin-left:20px;
}

/* navigation */
.nav A {
    font: 12px serif;
    text-decoration: none;
    color: #fff;
}
.nav A:link {
    color: #175d9f;
}
.nav A:visited {
    color: #175d9f;
}
.nav A:hover {
    color: #078635;
}
.nav A:active {
    color: #175d9f;
}
.nav1 {
    font: 12px serif;
    text-decoration: none;
    color: #fff;
}
.xmenu {
    font: 13px serif;
    text-decoration: none;
}
.xmenu a {
    color: #FFF;
    font:13px serif;
    text-align: center;
    text-decoration: none;
}
.xmenu a:hover {
    color: #FFF;
}
.text1 {
    font: 12px serif;
    color: #fff;
    text-decoration: none;
}
.text1 a {
    color: #FFF;
    font:12px serif;
    text-align: center;
    text-decoration: underline;
}
.text1 a:hover {
    color: #FFF;
    text-decoration:underline;
}
.list {
    font: 12px serif;
    color: #000;
    text-decoration: none;
}
.list a {
    color: #FFF;
    font:12px serif;
    text-align: center;
    text-decoration: underline;
}
.list a:hover {
    color: #FFF;
    text-decoration:underline;
}
#banner0, #banner1, #banner2, #banner3, #banner4, #banner5, #banner6, #banner7, #banner8, #banner9, #banner10, #banner11,#banner20{width:567px; float:right; border:1px solid #cbddeb;height:80px;margin-top:3px;}
#banner0{background:url(../Images/banner0.jpg)  no-repeat ;}
#banner1{background:url(../Images/banner1.jpg)  no-repeat ;}
#banner2{background:url(../Images/banner2.jpg)  no-repeat ;}
#banner3{background:url(../Images/banner3.jpg)  no-repeat ;}
#banner4{background:url(../Images/banner4.jpg)  no-repeat ;}
#banner5{background:url(../Images/banner5.jpg)  no-repeat ;}
#banner6{background:url(../Images/banner6.jpg)  no-repeat ;}
#banner7{background:url(../Images/banner7.jpg)  no-repeat ;}
#banner8{background:url(../Images/banner8.jpg)  no-repeat ;}
#banner9{background:url(../Images/banner9.jpg)  no-repeat ;}
#banner10{background:url(../Images/banner10.jpg)  no-repeat ;}
#banner11{background:url(../Images/banner11.jpg)  no-repeat ;}
#banner20{background:url(../Images/banner20.jpg)  no-repeat ;}
#left{ float:left;width:203px;text-align: left; background:url(../Images/contentbg.jpg) repeat-x #f3f8fb; background-repeat:repeat-x;
    border:1px solid #cbddeb; padding-bottom:5px; margin-top:3px; margin-right:3px;}
#menu{
    width:190px; margin-top:10px; margin-left:10px;
}
#menu .bgt{
    width:188px; height:13px; background-image:url(leftmenubg1.gif); overflow:hidden; font-size:1px;
}
#menu .bgc{
    width:186px;border-left: 1px solid  #9ad1f6; border-right:1px solid #9ad1f6;background-color:#fff;
}
#menu .bgb{
    width:188px; height:13px; background-image:url(leftmenubg2.gif); overflow:hidden;font-size:1px;
}
#menu ul {        
        width: 138px;
        height: auto;
}
#menu li {
         list-style-type:none;border:1px solid #9ad1f6;background: url(buttonbg.gif) repeat-x; height:18px;display: block;
        margin:3px 8px; padding-top:5px; padding-left:10px;color: #175d9f;
}

#menu li a {
        color: #175d9f;
        display: block;
        text-decoration: none;
        height:16px;
        padding:3px 0 0 3px;
}
 * html #menu li a {  /* make hover effect work in IE */
  width: 155px;padding:3px 0 0 3px;
}
#menu li a:hover {
        background:#3d75d2;color:#fff; height:16px;    display: block;padding:3px 0 0 3px;
}
.list1{
      width: 185px;border:1px solid #cde0ee; background-image:url(../Images/menubg2.jpg); background-repeat:repeat-x;margin:5px 0 0 10px; padding-bottom:5px;}
.list1 ul{
    padding-left: 25px; background: url(../Images/ico_04.gif) no-repeat 0.5em 0.8em;padding-top:10px; height:30px;
}
.list1 li{ width: 150px;
     list-style:none;padding-left:20px!important;padding-left:15px; padding-top:5px;background: url(ico_05.gif) no-repeat 0.5em 0.6em!important; background: url(ico_05.gif) no-repeat 0em 0.6em; height:22px; border-bottom:1px  dashed #ccc;
}

#right{ width:523px; float:right;background:url(../Images/contentbg.jpg) repeat-x  #fff; border:1px solid #cbddeb;margin-top:3px;text-align: left;}
#right .login{width:517px; height:460px; background-image:url(../Images/loginbg.jpg); background-repeat:no-repeat; margin-left:20px;}
#right .login ul{ float:left;width:517px;}
#right .content1{ width:520px; float:left; margin:5px 10px 10px 30px!important;margin:5px 10px 10px 10px; padding-top:5px;}
.newslist ul{ border-bottom:1px dotted #3372a2; margin:5px; padding-left:15px; padding-top:20px;}
.newslist li{ list-style: inside;font:12px serif;color: #3372a2; line-height:20px; padding-top:10px; border-bottom:1px dotted #ccc;}
.henglist ul{ width:550px;margin:5px; padding-left:15px; padding-top:20px;}
.henglist li{width:100px; list-style: inside;font:12px serif;color: #3372a2; line-height:40px; padding:5px 5px 0 5px; display:inline;}
.newscontent ul{ list-style: none;font:10px serif;}
.newscontent li{ list-style: none;font:12px serif; color: #333;line-height:23px;}

#footer{
    background:url(bg_footer_content.gif) #E8E8E8;
    width: 100%;
    padding-top:10px;
    padding-bottom:10px;
    float: left;
    margin-top:10px;
}
.mar{
margin-top:9px;
}
.mar1{
margin:120px 0 100px 160px;
}
.pad1{
padding-top:5px;
font-size:9pt;
}
.pad2{
padding-top:3px;
}
.pad3{
padding:5px 0;
}
.pad4{
padding:0 5px;
}
.logintitle{
font: 14px serif;color: #13599f; font-weight:bold;
}
.inputbox{
border:1px solid #d4e5f6; font:12px serif;color: #0066a7; width:100%;
}
.inputbox1{
border:1px solid #d4e5f6; font:12px serif;color: #0066a7;}
.submit{ font-size:12px;
background-color:#53a60f; width:60px; height:18px; color:#FFF;border-left:1px solid #79bd40; border-right:1px solid #3a770f; border-top:1px solid #79bd40; border-bottom:1px solid #3a770f;
}
#current{ width:520px; float:left; margin:0px 10px 0 30px!important;margin:0px 10px 0 10px; padding-top:3px;
border-bottom:1px solid #ccc;}
.border{ border:1px dashed #f8d2a5; padding:10px; background:#fffff7;}
.boder1{ border-top:1px  solid #cbddeb; border-right:1px  solid #a4c8e0; border-left:1px  solid #cbddeb; border-bottom:1px  solid #a4c8e0; padding:2px 10px; background:#f3f8fc;}
2008-09-09 15:44
kevintang
Rank: 4
等 级:业余侠客
威 望:9
帖 子:799
专家分:236
注 册:2008-2-14
收藏
得分:0 
2008-09-09 15:59
andyhuang66cn
Rank: 1
等 级:新手上路
帖 子:35
专家分:0
注 册:2008-9-6
收藏
得分:0 
IE6很怪的.代码有点错都会出错的..我也遇到过这中情况,仔细复查代码,HTML里面的代码.还有,你的CSS样式表应该是放/App_Themes/里面..然后在WENCONFIG加上这句<pages theme="Default"></pages>,希望能帮到你!

机会是创造出来的
2008-09-09 17:59
快速回复:求助:.NET网页无法再IE6中正常显示
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018335 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved