为什么DIV效果在IE能够正常显示,而在360浏览器显示不正常!
<divid="demo3"style="OVERFLOW:hidden;WIDTH:100%;HEIGHT:160px"><tablecellpadding="0"al...
<div id="demo3" style="OVERFLOW:hidden; WIDTH: 100%; HEIGHT: 160px">
<table cellpadding="0" align="left" border="0" cellspace="0" bgcolor="#EAF7FF" >
<tr>
<td id="demo4" valign="top" ><%call index_pic2(100)%></td>
<td id="demo5" valign="top"></td>
</tr>
</table>
</div>
<script>
var speed=30
demo5.innerHTML=demo4.innerHTML
demo3.scrollLeft=demo3.scrollWidth
function Marquee1(){
if(demo3.scrollLeft<=0)
demo3.scrollLeft+=demo5.offsetWidth
else{
demo3.scrollLeft--
}
}
var MyMar=setInterval(Marquee1,speed)
demo3.onmouseover=function() {clearInterval(MyMar)}
demo3.onmouseout=function() {MyMar=setInterval(Marquee1,speed)}
</script>
sub index_pic2(num)
Response.Write "<TABLE width='98%' cellSpacing='5' cellPadding='0' border='0' align='center'> " & vbCrLf
Response.Write "<TR>" & vbCrLf
set rs=conn.execute("select top "&num&" * from pic where passed=0 and piccat_id=6 or piccat_id=20 or piccat_id=22 or piccat_id=23 ORDER by pic_date DESC,pic_id desc")
if rs.EOF then
Response.Write ("<TD align=center>暂无图片文章</TD>")
else
do while not rs.eof
Response.Write "<TD align=center>" & vbCrLf
Response.Write "<table width='50' border='0' cellpadding='0' cellspacing='1' bgcolor=#d7d7d7><tr><td bgcolor=#ffffff><a href='showpic.asp?pic_id="&rs("pic_id")&"' title='最新图片文章:"&rs("pic_name")&"' ><img src='"&rs("pic_spic")&"' width='180' height='120' border=0 alt='最新图片文章:"&rs("pic_name")&"'></a></td></tr>"
Response.Write "<tr><td bgcolor=#d7d7d7 align=center><a href='showpic.asp?pic_id="&rs("pic_id")&"' title='最新图片文章:"&rs("pic_name")&"' >"&rs("pic_name")&"</a></td></tr></table>"
Response.Write "</TD>"
rs.movenext
loop
end if
rs.close
set rs=nothing
Response.Write "</TR></TABLE>" & vbCrLf
end sub 展开
<table cellpadding="0" align="left" border="0" cellspace="0" bgcolor="#EAF7FF" >
<tr>
<td id="demo4" valign="top" ><%call index_pic2(100)%></td>
<td id="demo5" valign="top"></td>
</tr>
</table>
</div>
<script>
var speed=30
demo5.innerHTML=demo4.innerHTML
demo3.scrollLeft=demo3.scrollWidth
function Marquee1(){
if(demo3.scrollLeft<=0)
demo3.scrollLeft+=demo5.offsetWidth
else{
demo3.scrollLeft--
}
}
var MyMar=setInterval(Marquee1,speed)
demo3.onmouseover=function() {clearInterval(MyMar)}
demo3.onmouseout=function() {MyMar=setInterval(Marquee1,speed)}
</script>
sub index_pic2(num)
Response.Write "<TABLE width='98%' cellSpacing='5' cellPadding='0' border='0' align='center'> " & vbCrLf
Response.Write "<TR>" & vbCrLf
set rs=conn.execute("select top "&num&" * from pic where passed=0 and piccat_id=6 or piccat_id=20 or piccat_id=22 or piccat_id=23 ORDER by pic_date DESC,pic_id desc")
if rs.EOF then
Response.Write ("<TD align=center>暂无图片文章</TD>")
else
do while not rs.eof
Response.Write "<TD align=center>" & vbCrLf
Response.Write "<table width='50' border='0' cellpadding='0' cellspacing='1' bgcolor=#d7d7d7><tr><td bgcolor=#ffffff><a href='showpic.asp?pic_id="&rs("pic_id")&"' title='最新图片文章:"&rs("pic_name")&"' ><img src='"&rs("pic_spic")&"' width='180' height='120' border=0 alt='最新图片文章:"&rs("pic_name")&"'></a></td></tr>"
Response.Write "<tr><td bgcolor=#d7d7d7 align=center><a href='showpic.asp?pic_id="&rs("pic_id")&"' title='最新图片文章:"&rs("pic_name")&"' >"&rs("pic_name")&"</a></td></tr></table>"
Response.Write "</TD>"
rs.movenext
loop
end if
rs.close
set rs=nothing
Response.Write "</TR></TABLE>" & vbCrLf
end sub 展开
4个回答
展开全部
我刚测试过没有任何问题,是不是你的CSS样式有问题。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
浏览器不兼容呀
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
360浏览器 狂妄自大,不遵循W3C 协议还是没有能力实现呢?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询