Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 向html添加静态内容表_Javascript_Html_Tags - Fatal编程技术网

Javascript 向html添加静态内容表

Javascript 向html添加静态内容表,javascript,html,tags,Javascript,Html,Tags,现在我想将“目录”添加到help.html的右侧,以便用户可以轻松访问help.html中的适当位置 ===== ==== tag1 tag2 ===== ==== -------------------- help.html Intro some intro. basics some basic info. and more contents -------------------- ======

现在我想将“目录”添加到help.html的右侧,以便用户可以轻松访问help.html中的适当位置

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

  Intro
    some intro.
  basics 
    some basic info.
   and more contents
--------------------
========
tag1 tag2
=====          ====
--------------------

help.html Intro可以通过CSS使用
位置:fixed
属性轻松完成:

=====          ====
tag1           tag2
=====          ====
--------------------
help.html      Intro <----|
               basics <---| new thing I would like to add
               topic3 <---|
  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
--------------------
div.table-of-contents {
    position: fixed;

    right: 30px;
    top: 30px;
}