日期:2014-05-18  浏览次数:20400 次

求救iframe问题
我在一个网页里面嵌入了一个iframe但是为什么没有滚动条啊,我想让两个滚动条都出现,是这样写的
  <table   cellpadding= "0 "   cellspacing= "0 "   style= "height:   450px;width:1024px ">
                <tr   height= "470px ">
                            <td     rowspan= "3 "   style= "vertical-align:   top;   text-align:   center;   height:   470px;width:900px;   left:   160px;   position:   absolute;   top:20px; "     >
                                <iframe   src= "Point.aspx "   name= "Main1 "   frameborder= "0 "     style= "width:500px;   height:   200px "     scrolling= "yes "   id= "iframe1 "> </iframe>
                                </td>
                        </tr>
                </table>
Point.aspx
    <table   cellpadding= "0 "   cellspacing= "0 "   width= "1024px ">
            <tr>
              <td   align= "left "   style= "height:   24px "   width= "1024px ">
<asp:textbox   width= "1024px "/>
                </td>
              </tr>
              </table>

------解决方案--------------------
scrolling= "auto ",内容多时自动会出滚动条的。
------解决方案--------------------
应该没有问题啊。
------解决方案--------------------
你在 <iframe scrolling= "yes "> 多放点东西把它挤满了就会出现滚动条了
------解决方案--------------------
这段代码一点问题也没有。。如果可用话。。最好把你整个源代码发上来看看。
------解决方案--------------------
去掉顶部的文档类型声明,类似

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">