Home  >  Article  >  Web Front-end  >  js css code collection to keep DIV always in the middle of the screen, lower left, upper left, upper right, lower right_javascript skills

js css code collection to keep DIV always in the middle of the screen, lower left, upper left, upper right, lower right_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:09:47890browse
Copy code The code is as follows:


< ;html xmlns=" http://www.w3.org/1999/xhtml">

Layer that moves with scroll bar
< ;META HTTP-EQUIV="Content-Type" CONTENT="text/html" charset="gb2312">



Center...


Top left ...



Bottom left...



Top right...< ;/div>


Lower right...




< SCRIPT LANGUAGE="JavaScript">


< div style="position: absolute; top: 0px; left: 0px; width: 10000px; height: 4000px;">



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn