Home  >  Article  >  Web Front-end  >  Use JQUERY to control the background page layout of DIV to achieve left and right style_jquery

Use JQUERY to control the background page layout of DIV to achieve left and right style_jquery

WBOY
WBOYOriginal
2016-05-16 17:04:541006browse

A part of the background management of a website remains in a fixed position, and the editable part changes with the browser. Therefore, sometimes a frame is used to achieve this form. The author here does not use a frame but a pure div layout, what needs to be done to implement this method? The following is the JQUERY implementation code that controls the DIV to achieve left-right style, the left side is fixed, and the right side changes with the change of the browser.

Copy code The code is as follows:



Here the author fixed the left side and the right side changes with the browser. At the same time It also implements code that increases in size as the browser becomes larger, and shrinks in proportion accordingly, for reference only.
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