Home > Web Front-end > JS Tutorial > body text

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
Release: 2016-05-16 18:09:47
Original
895 people have browsed it
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;">



Related labels:
div
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!