I tried to use layer to load an external file.
I would like the position of the layer be relative rather than absolute.
So, I used javascript to create the layer and put the javascript in a cell of a table.
I hope the layer can be shown in the right way and it can load the external file.
However, the content of the external file only could be shown partly.
the difinition about the layer is the below:
document.write('<div id="Discription" style="position:relative;width:390; height:340;z-index:100; background-image: url(Src/layerbg.jpg);layer-background-image: url(Src/layerbg.jpg); border:0px " ></div>');
I tried to change relative to absolute, and added top and left attribution. The external file could be shown correctly. But why it didn't work with position:relative ?
The example you can find is and
please help, please give me an idea to fix the relative position bug.
Thank you very much.
I would like the position of the layer be relative rather than absolute.
So, I used javascript to create the layer and put the javascript in a cell of a table.
I hope the layer can be shown in the right way and it can load the external file.
However, the content of the external file only could be shown partly.
the difinition about the layer is the below:
document.write('<div id="Discription" style="position:relative;width:390; height:340;z-index:100; background-image: url(Src/layerbg.jpg);layer-background-image: url(Src/layerbg.jpg); border:0px " ></div>');
I tried to change relative to absolute, and added top and left attribution. The external file could be shown correctly. But why it didn't work with position:relative ?
The example you can find is and
please help, please give me an idea to fix the relative position bug.
Thank you very much.