css ¿ò¼Ü gridµÄÀ§»ó Using Nesting Grids
²»¶®ËûÍø¸ñÈçºÎÔÀí
\Using Nesting Grids
YUI Grids CSS provides a system for subdividing sections of your page with nestable grids. Use this technique to easily create complex layouts that go beyond the two column layouts offered by the template presets. The picture below shows, for example, how a two-column grid is "nested" within the main block:
The Basic Idea
The basic idea is that "grids" are holders of "units". The standard grid holder is a div with a class of "yui-g" (g is for grid). The contained units are divs with a "yui-u" class (u is for unit). Except in special cases we'll examine later, a grid holds two units and instructs each unit to take up half the available space. Here's what a basic nested two-unit grid looks like:
HTML code:
1 ...
2 <div id="yui-main">
3 <div class="yui-b">
4 <div class="yui-g">
5 <div class="yui-u first"></div>
6 <div class="yui-u"></div>
7 </div>
8 </div>
9 </div>
10 ...
view plain | print | ?
... <div id="yui-main"> <div class="yui-b"> <div class="yui
Ïà¹ØÎÊ´ð£º
Ƥ·ôºÍÑùʽ±í¶¼¿ÉÒÔÉèÖÿؼþµÄÍâ¹Û£¬¾ßÌåÓÐʲôÇø±ðÄØ£¿
skin ÊÇasp.net ÌåϵµÄ ¾ÍÏ൱ÓÚ<asp:TextBox> ¶ÔÓ¦ÓÚ<input type="text">
Äã°ÑƤ·ôµ±³ÉÒ·þ£¬°ÑÑùʽ±íµ±³É»¯×±Æ·¾ÍÈÝÒ×Àí½âÁË
......
ÎÒÓÃDIV+CSS×öÁËÒ»¸ö¿ÉÒÔÒƶ¯µÄ²ã¡£¡£¡£¡£ÔõôÑù½«Õâ¸ö²ãµÄÊý¾Ý±£´æµ½Êý¾Ý¿âÖС£¡£¡£¡£ÔÚ´ò¿ªÒ³ÃæµÄʱºòÔÚ´ÓÊý¾Ý¿âÖмÓÔسöÀ´ÏÔʾ£¡£¡£¡£¡£¡£¡£¡ÄÄλ¸çÃÇÓÐÀý×ӵĿɲ»¿ÉÒÔ·¢¸øÎÒ
div ¶ÔÓ¦µÄλÖÃÓÃfrom¸øµ½ACTION ´æ ......
ÎÒ¶Ôcss²»´óÊì Ò»Ö±¶¼ÊÇÓÃdwÌáʾ¿ª·¢µÄ ÏÖÔÚÓõÄÊÇdw4 ¸Ð¾õ²»ÔõôµÄ Æô¶¯ËٶȺÜÂý ÏëÕÒ¸öÖ»¶Ôcss¿ª·¢µÄ¹¤¾ß ²»ÒªÌ«´ó ¿ªÆôËÙ¶ÈÒ²Òª¿ìµã×îºÃ ÏÈлл
dw4 ²»´í°¡ ¿É¼û¼È¿ÉµÃ
½¨Ò黹ÊDz»ÒªÓÃÌáʾ¹¤¾ßÁË£¬Ï°¹ß ......
²»¿¼ÂÇXMLºÍ¶¯Ì¬³ÌÐò£¬Ò²²»¿¼ÂÇJS£¬²»¿¼ÂÇʹÓÃPS£¬Í¼Æ¬¶¼¸øÄãÌṩ×ÅÄØ¡£
ÈÃÄãд´¿¾²Ì¬Ò³ÃæµÄÐÂÀËÊ×Ò³£¬100%ÓÃDIV+CSSÀ´Ð´¡£
Èç¹ûÄãдµÄ»°ÐèÒª¶à³¤Ê±¼äÄØ£¿
ÊÓ¸öÈËÄÜÁ¦¶ø¶¨£¬ÎҵĻ°ÐèÒªÒ»Ìì¡£
Ò»ÕûÏÂÎç°É
......
FFºÍWEBKITµÄ½¥±äЧ¹ûÓÃCSSÈçºÎʵÏÖ
Çë½Ì¸÷λDX
Õâ¸öÎÊÌâÀ§ÈÅСµÜ¼¸ÌìÁËÍøÉÏÕÒµ½µÄ¶¼ÊÇIEµÄ·½·¨
FFºÍCHROME¶¼Ã»Óа취ʵÏÖ
±³¾°Í¼£¬cssòËƲ»ÐУ¬
³ýÁ˱³¾°Í¼ÄØ£¿ÎÒ¾õµÃÓ¦¸Ã¿ÉÒÔµÄ°É IEÄÇôÀ ......