2011-11-18 5 views
0
<body> 
    <div id="tag1"></div> 
    <div id="tag2" class="tag2"></div> 
    <div style="clear: both;"> 
    <iframe src="help.html" width="100%" height="300"> 
     <p>Your browser does not support iframes.</p> 
    </iframe> 
</body> 

위와 같은 코드가 html 파일에 있습니다. 이 같은 내용이 표시됩니다 - 지금은 그 사용자가 쉽게 예를 .FOR help.html 내에서 적절한 위치에 액세스 할 수 help.html.so의 오른쪽에 "내용의 테이블"을 추가하고 싶은정적 인 목차를 html로 추가

=====   ==== 
tag1   tag2 
=====   ==== 
-------------------- 
    help.html 

    Intro 
    some intro. 
    basics 
    some basic info. 
    and more contents 
-------------------- 

=====   ==== 
tag1   tag2 
=====   ==== 
-------------------- 
help.html  Intro <----| 
       basics <---| new thing I would like to add 
       topic3 <---| 
    Intro 
    some intro 
    basics 
    some basic info. 
    and more contents 
-------------------- 

Google에서 도움이 필요한 iframe 및 몇 가지를 추가하려했지만 올바른 방법을 모르겠습니다. . 어떤 도움을 주셔서 감사합니다. CSS는 position: fixed 속성을 사용하여 쉽게 수행 할 수 있습니다

답변

1

: 도움, 블렌더 http://jsfiddle.net/yDBPZ/3/

+0

감사 :

div.table-of-contents { position: fixed; right: 30px; top: 30px; } 

여기 내 데모를 참조하십시오. –

관련 문제