frames
  • rhomobile
  • 2012-03-11 112 views 0 likes 
    0

    試圖實現框架,其中點擊左框架中的鏈接應在右框架中打開。 這裏是我嘗試代碼:框架/框架在Rhomobile中不起作用

    應用程序/測試/ main.erb

    <div data-role="page"> 
    <div data-role="content"> 
    <frameset rows="26%,74%"> 
        <frame src="/public/images/header.png" name="topy" scrolling='no'> 
    <frameset cols="30%,70%"> 
        <frame src="left" scrolling='no'> 
        <frame name="right" src="right" scrolling='no'> 
    </frameset> 
    </frameset> 
    

    應用程序/測試/ left.erb

    <div data-role="page"> 
    <div data-role="content"> 
        <A href="http://google.co.in" target="right" >Search Engine</A> 
        <A href="slide3.html">Member Directory</A> 
    </div> 
    </div> 
    

    應用程序/測試/ right.erb

    <div data-role="page"> 
    <div data-role="content"> 
    </div> 
    </div> 
    

    當我嘗試打開谷歌它打開它在完整的窗口空間。 我該如何解決這個問題?

    回答

    0

    首先,您的框架應該具備的cols 26%,22.2%,51.8%,從而簡化了您的HTML:

    <div data-role="page"> 
    <div data-role="content"> 
    <frameset rows="26%,22.2%,51.8%"> 
        <frame src="left" scrolling='no'> 
        <frame src="/public/images/header.png" name="topy" scrolling='no'> 
        <frame name="right" src="right" scrolling='no'> 
    </frameset> 
    

    現在,如果它不能正常工作,請嘗試使用目標=「_父。右邊「.erb

    +0

    沒有這樣工作 – 2012-03-11 13:35:22

    相關問題