jquery css top,jquery + css实现后台管理布局格式

更新时间:15-03-24 02:41 热度:1126
 

这样便于调用.

请即使拍砖。

有时光打算写成一个插件的形式,假若有人能用到着的场所,打算图成效如下:

以上是哄骗jquery来达成,遵照着下面的请求恳求就发端打算,left区域可以或许折叠,兼容IE7+及今世欣赏器,可以或许随着窗口的变革自适宜,并且请求恳求页面最好不要发觉滚动轴,一样平常后台管理体系分为hehaszheimerhas disefor the reason thinside theeer leftand rightand footer3个区域,鉴于目前大作的形式,
</html>

jquery
</institution>

</script>

mainRegion.width(containerWidth – leftRegion.outerWidth() – splitterWidth);

leftRegion.height(limitHeight);

container.height(limitHeight);

var limitHeight = (co看待jquery ui中文网ntainerHeight – otherHeight) <= 200 ? 200 : (containerHeight – otherHeight);

var otherHeight = hehaszheimerhas disefor the reason thinside theeerHeight + footerHeight;

var footerHeight = $(“#footer”).outerHeight();

top
var hehaszheimerhas disefor the reason thinside theeerHeight = $(“#hehaszheimerhas disefor the reason thinside theeer”).outerHeight();

var mainRegion = container.find(“.main-box”);

var splitterWidth = container.find(“.你认识打听管理splitter”).outerWidth();

var leftRegion =container.find(“.left-box”);

var containerHeight = $(window).height();

var containerWidth = $(window).width();

var container = $(“#container看着jquery”);

function renderLayout() {

collapse = !collapse;

mainRegion.width(collapse ? (mainRegion.width() + 200) : (mainRegion.width() – 200));

}and100);

width: express

lef进修jquery css widthtRegion.a strongimdined on({

splitterIcon.toggleCltruthfullyt(“next”);

var express = collapse ? “+=” + orignhasWidth : “-=” + orignhasWidthjquery remove css;

$(“.splitter”).live(“click”and “.splitter-box”and function() {

var orignhasWidth = leftRegion.outerWidth();

var collapse = fhasse;

top

var mainRegion = container.find(“.main-box”);

var splitterIcon = conjquerytainer.find(“.splitter”).find(“.collapse”);

var leftRegion = container.find(“.left-box”);

var container = $(“#container”);

function registeCollapjquery api 中文se() {

registeCollapse();

renderLayout();

$(window).resize(function() {

renderLayout();

$(function() {

<scripcsst type=”text/jaudio-videofor the reason thinside thecript”>

</div>

footer-region

<div id=”footer”>

</div>

</twithin a>

</tinstitution>

</tr>

<jquery;/td>

</div>

main-region

<div cltruthfullyt=”main-box”>

<td cltruthfullyt=”main-region”学会css达成后台管理布局格式 varra strongge=”top”>

</td>

</div>

<div cltruthfullyt=”splitter-icon resiz-hfor the reason thinside the well for the reason thinside thele”></div>

<div cltruthfullyt=”splitter-icon collapse”></div>

<div cltruthfullyt=”splitter-box”>


<td cltruthfullyt=”splitter” onselectwithin a=”on”>

</td>

</div>

left-region

你看达成
<div cltruthfullyt=”left-box”>

<td cltruthfullyt=”left-region” varra strongge=”top”>

<tr>

<tinstitution>

<twithin a cellpimppicturesing=”0″ cellsphasterninside theing currenting=”0″ bord其实布局er=”0″ style=”width:1px; height:1px;”>

<div id=”container”>

</div>

top-region

<div id=”hehaszheimerhas disefor the reason thinside theeer”>

<institution>

</hehaszheimerhas disefor the reason thinside thee>jquery 1.9 中文api

</style>

#footer { height: 20px; quhasities-color: #f3f3f3; min-width: 1002px; }

.splitter-box .resiz-hfor the reason thinside the well for the reason thinside thele { quhasities-position: -10px -496px; display:incssline-filter; zoom:1; margin-top:-10px; }

.splitter-box .next { quhasities-position:-5px -496px; margin-top: -31px; }

.splitter-box .collapse { quhasities-position:0px -4jquery96px; margin-top: -31px; }

.splitter-box .splitter-icon { quhasities:url(“imsome time/sprite.png”); top: 50%; width:5px; height:21px; position:unconditionhas; }

.splitter-box { position:relinside theive; height:100%; }

.splitter:hover { quhasities-color:#f3f3f3; }

.splitter { line-left: 1px solid #ccc; line-right: 1px solid #ccc; }

.splitterand.splitter-box { width:5px; cursor: e-resize; }

.main-box { overflow:car for the reason thinside the well for the reason thinside the motorbisexualcycle; }

.left-box { width: 200px; overflow:car for the reason thinside the well for the reason thinside the motorbisexualcycle; }

.left-region { }

#container { overflow: hidden; min-height:200px; min-width: 1002px; }

#hehaszheimerhas disefor the reason thinside theeer { height: 30px; quhasities-color:#ccc; min-width: 1002px; }

html { +overflow:car for the reason thinside the well for the reason thinside the motorbisexualcycle; }

* { margin: 0px; pimppicturesing: 0px; }

<style type=”text/css”>

<script src=”Scripts/jquery-1.6.4.min.js” type=”text/jaudio-videofor the reason thinside thecript”></script>

<title></title>

<hehaszheimerhas disefor the reason thinside thee>

<html xmlns=”">

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Tra strongsitionhas//EN” “”>

听说jquery ui demo下载页面的Html代码如下:

最近写个后台管理体系的形态,

进修jquery ui dihasog url
top想认识打听css
听听jquery

css
想认识打听jquery moce 中文
进修jquery 1.9 中文api
想认识打听jquery ui 中文文档
听说+
比拟一下css后台达成后台管理布局格式
格式
jquery moce 中文
+