| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 557 人关注过本帖
标题:图片显示问题
取消只看楼主 加入收藏
dutingting
Rank: 1
来 自:苏州
等 级:新手上路
帖 子:28
专家分:2
注 册:2010-5-20
结帖率:50%
收藏
已结贴  问题点数:5 回复次数:1 
图片显示问题
我写的代码是动态显示图片的,可是效果用不同的浏览器打开都不同,有的是一行3张,有的是2张,我想要的效果是3张的,请问怎么解决,(我对asp也是初学者,所以请各位棒棒忙,)代码如下:  <div style="width:131px; height:133px; margin-top:8px; margin-right:3px;"><a href="product_view.asp?id=<%=rs("Articleid")%>" target="_blank"><img src="<%=rs("photo")%>" alt="<%=rs("xiaolei")%>" width="131" height="133" border="0" /></a></div>
        </div>
        <div style="width:151px; height:27px; line-height:25px; text-align:center;"><strong><a href="product_view.asp?id=<%=rs("Articleid")%>" target="_blank" title="<%=rs("xiaolei")%>"><%=mid(rs("xiaolei"),1,9)%></a></strong></div>
搜索更多相关主题的帖子: div blank border target 
2010-05-25 13:12
dutingting
Rank: 1
来 自:苏州
等 级:新手上路
帖 子:28
专家分:2
注 册:2010-5-20
收藏
得分:0 
回复 2楼 gupiao175
这样啊!那麻烦你了啊!
这些是所有的样式


body {
    font-family: "宋体";
    font-size: 12px;
    color: #0664B0;
    text-align:center;
    word-wrap: break-word;    /* IE */
}
BODY {
SCROLLBAR-FACE-COLOR: #015C90;
SCROLLBAR-SHADOW-COLOR: #FFFFFF;
SCROLLBAR-3DLIGHT-COLOR: #FFFFFF;
SCROLLBAR-ARROW-COLOR: #FFFFFF;
SCROLLBAR-TRACK-COLOR: #FFFFFF;
SCROLLBAR-DARKSHADOW-COLOR: #FFFFFF;
SCROLLBAR-BASE-COLOR: #FFFFFF;
}
* {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
a:link {
    color: #0664B0;
    text-decoration: none;
}
a:visited {
    text-decoration: none;
    color: #0664B0;
}
a:hover {
    text-decoration: none;
    color: #FF6600;
}
a:active {
    text-decoration: none;
    color: #0664B0;
}
#box {width:989px; background-image:url(../img/bg.jpg); background-repeat:repeat-x; background-position:top;}
#top {width:989px; height:302px;}
#top-top {width:989px; height:84px;}
#top-down {width:989px; height:218px; background-image:url(../img/banner.jpg); background-repeat:no-repeat; background-position:center;}
#top-top-left {width:283px; height:84px; float:left;}
#top-top-right {width:706px; height:84px; float:right; background-image:url(../img/bg_img.jpg); background-repeat:no-repeat; background-position:right;}
#top-top-right-left {width:547px; height:45px; float:left; margin-left:9px; margin-top:29px;}
#top-top-right-right {width:135px; height:45px; float:right; margin-top:29px; background-image:url(../img/shoucang.jpg); background-repeat:no-repeat; background-position:center; line-height:45px; margin-right:3px;}
#menu {width:989px; margin-top:30px;}
#left {width:245px; float:left; margin-left:5px; text-align:left; background-image:url(../img/menu.jpg); background-repeat:repeat-y; background-position:right;}
#left1 {width:210px; float:right; margin-right:10px; text-align:right; }
#right {width:699px; float:right; margin-right:10px;}
#right1 {width:730px; float:left; margin-right:15px;background-image:url(../img/menu.jpg); background-repeat:repeat-y; background-position:right;}
#left-top {width:220px;}
#left-top-top {width:220px; height:30px;}
#newclass1 {width:220px; margin-top:5px; text-align:left; line-height:20px;}
#left-menu {width:220px; margin-top:5px;}
#left-menu-top {width:220px; height:30px;}
#left-menu-down {width:220px; margin-top:5px; margin-left:-18px; text-align:left; line-height:20px;}
#left-down {width:220px; height:400px; margin-top:5px;}
#left-down-top {width:220px; height:30px;}
#left-down-down {width:200px; height:364px; margin-top:5px; text-align:left; line-height:20px; background-image:url(../img/QQ.jpg); background-repeat:no-repeat; background-position:left;}
#right-top {width:682px; height:270px;}
#right-top-top {width:679px; height:48px; background-image:url(../img/bg1.jpg); background-repeat:no-repeat; background-position:bottom; text-align:left; padding-left:3px;}
#right-top-down {width:682px;}
#Topgo {width:12px; float:right;}
#right-menu {width:682px; height:157px; margin-top:5px;}
.c101 {background-image:url(../img/down_img.jpg); background-repeat:no-repeat; background-position:top;}
.c102 {}
#right-menu1 {width:682px; height:163px; margin-top:5px;}
#right-down {width:682px; height:170px; margin-top:5px;}
#down {width:989px; height:119px; margin-top:50px;}
img {border:0px}

O(∩_∩)O哈哈~
2010-05-26 08:45
快速回复:图片显示问题
数据加载中...
 
   



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

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