Flexify
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/Flexify
软件介绍
Flexify is a jQuery plugin which allows web authors to create fluid, full-page, flexible layouts for their web applications. Overlaying the CSS box model, Flexify lets you specify flexible dimensions for content, margin, padding, borders, or position, by taking up all available space on a page. Additionally, Flexify can define whether an elements displays its children vertically (the default) or horizontally, creating rows or columns of elements.
Introduction
Flexify adds the flow and flex functions to jQuery. The former allows you to specify whether an element has vertical or horizontal 'flow', changing the orientation of how its children are displayed. The latter lets you specify which CSS properties should 'flex' and take up all available space.
Example
Using the following page:
<body>
<div style="background: red">This is some content.</div>
<div style="background: blue">This is some content.</div>
<div style="background: green">This is some content.</div>
</body>The following script would create three full-page rows:
$(function () {
/* make the page full-height, and divide the height of each row evenly */
$('html, body, div').flex('height', 1);
/* flexify the document */
$(document).flexify();
});Similarly, we could create three full-page columns with the following script:
$(function () {
/* make the page and columns full-height */
$('html, body, div').flex('height', 1);
/* split the widths of the three columns evenly */
$('div').flex('width', 1);
/* three columns in a row */
$('body').flow('horizontal');
/* flexify the document */
$(document).flexify();
});Usage
To use Flexify, include flexify.js in your page. In your document.ready script, you can then add calls to the flow and flex methods of any element. Finally, after specifying all flexible properties, add a call to $(document).flexify().
The flow function takes one argument, either the string "vertical" or "horizontal". This determines the 'flow' or orientation of its children. Additionally, you can retrieve the flow of any object (if any) by calling this function without arguments.
The flex function takes two arguments: the property to flexify, and the flex ratio. The property can be a string of any of the margin-*, padding-*, border-*, width, or height properties, as well as top, right, bottom, or left for positioned elements. The flex ratio is any integer greater than 0 (usually 1), which is calculated as a ratio with other properties on the same axis to determine how free space is divided.
Browser Support
Flexify is currently supported for Firefox 2.0+, IE 6+, and Opera 9.0+, and Safari 3.
Demos
- Three full-page rows
- Three full-page columns
- A 3x3 grid (3 columns of 3 cells)
- A 3x3 grid (3 rows of 3 cells)
- A centered element, using flexible margins and borders
- A centered element using absolute positioning
- Two fixed-size columns, and one fluid, scollable column
- A complex application with form elements
- A resizable pane using flexible dimensions
- Use with other plugins (jWYSIWYG)
Linux内核设计的艺术
新设计团队 / 机械工业出版社华章公司 / 2011-6-20 / 79.00元
关于Linux内核的书已经不计其数,但这本书却是独树一帜的,它的内容代表着Linux内核研究成果的世界顶尖级水平,它在世界范围内首次提出并阐述了操作系统设计的核心指导思想——主奴机制,这是所有操作系统研究者的一笔宝贵财富。本书可能也代表着同类图书的顶尖水平,是一本真正能引导我们较为容易地、极为透彻地理解Linux内核的经典之作,也可能是当前唯一能从本质上指引我们去设计和开发拥有自主知识产权的操作系......一起来看看 《Linux内核设计的艺术》 这本书的介绍吧!
