<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jQuery+CSS让两栏或多栏布局高度自动一致</title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"></script> <script type="text/javascript"> $(function(){ var m = Math.max( $('.main').height(), $('.sidebar').height(), $('.sidebar2').height() ); alert(m); $('.content').height(m); }); </script> <style type="text/css"> div { background-color: #eee; display: block; float: left; margin-right: 10px; padding: 10px; width: 150px; } </style> </head> <body> <div class="content main"> box01 box01 box01 box01 box01 box01 box01 box01 box01 box01 box01 box01 box01 box01 box01 box01 box01 </div> <div class="content sidebar">box02 box02 box02 box02 </div> <div class="content sidebar2">box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03 box03</div> </body> </html>
相关推荐
html+jquery+CSS实现最简单的右侧导航栏效果
jquery+css3 导航栏
HTML+CSS+JavaScript+jQuery+Bootstrap等前端框架实现的前端案例.zip
这是一款基于jQuery+CSS3实现的鼠标悬停事件3D立体图片排列布局代码,jQuery图片3D特效下载。
10个漂亮登录页面,jquery+css310个漂亮登录页面,jquery+css310个漂亮登录页面,jquery+css310个漂亮登录页面,jquery+css310个漂亮登录页面,jquery+css310个漂亮登录页面,jquery+css3
jQuery+CSS3网页表单元素美化代码是一款在原生HTML表单的基础上进行美化,并使用jQuery来制作label动画效果,通常用于美化联系方式表单。
jquery+css 各种不同样式的登录页面
jquery+css3滑动头像 jquery+css3滑动头像代码下载.zip
HTML+CSS+JavaScript+JQuery+JSP学习笔记为本人看各种教程视频记录下来的,希望对大家有帮助。
很实用的jQuery+CSS实用图片收缩与放大效果插件
jQuery+CSS实现淡入效果的超链接样式,代码简单,容易使用!
jQuery+css3数字时钟效果 jQuery+css3数字时钟网页特效.zip
jQuery+css3实现信封效果 jQuery+css3实现信封网页特效.zip
jQuery+css实现tab切换效果 jQuery+css实现tab切换效果源代码
Jquery+css3实现弹出层注册特效,供大家一起共同分享学习。
一款jquery+css3实现图片提示效果的例子。
jQuery+css3渐变焦点图 jQuery+css3渐变焦点图网页特效.zip
jQuery+css3水平悬停动画 jQuery+css3水平悬停动画网页特效.zip
jquery+css Tab切换效果,可自定义切换效果
js+jquery+CSS教学演示视频 js+jquery+CSS教学演示视频 js+jquery+CSS教学演示视频 js+jquery+CSS教学演示视频 js+jquery+CSS教学演示视频