ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: Éè¼ÆÀíÄî :: ´´½¨ÎÞ±í¸ñÍøÕ¾µÄÔ­ÒòºÍÔ­Ôò

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

Éè¼ÆÀíÄî
ÈçºÎÓÅÑ¡ÖÐСÐÍÉÌ..
¶ÔÓÚÍøÒ³Éè¼ÆÐÂÊÖ..
´´½¨ÎÞ±í¸ñÍøÕ¾µÄ..
ÍøÒ³Éè¼ÆµÄ¡°½ðÔ¿..
ÍøÕ¾±ØÐë°üÀ¨µÄ²¿..
ÌáÉýÍøÒ³Éè¼ÆÐ§¹û..
´´½¨ÈËÃDZض¨·ÃÎÊ..
ÍøÕ¾Éè¼ÆµÄÖ÷Òª·½..
ÏÖ´úÍøÒ³Éè¼ÆÖС°..
¸üÐÂÕ¾µãDIY
½øÐÐÓÅÐãÍøÕ¾Éè¼Æ..
Öð²½½ÌÄãÊéд³É¹¦..
¾Å²½´´½¨¸öÈËÍøÕ¾
ʵÏÖÍøÕ¾×Ô¶¯»¯µÄ..
RSS¼ò½é
ͨ¹ýÄãµÄÎÄÕÂÀ´½ø..
½ÌÄãÈçºÎÉè¼ÆLogo
ʲôÊÇXML Schema
ÓòÃûºÍÍøÂçÉè¼Æ
ʲôÊÇXForms

´´½¨ÎÞ±í¸ñÍøÕ¾µÄÔ­ÒòºÍÔ­Ôò


×÷Õß:×÷ÕߣºNicole Hernandez / ·­Ò룺W3POP.COM ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:4616 :: ::

In a time of web developers who just like to say that 'Tables are Evil' and can't (or won't) explain why, this article will attempt to give you some solid reasons that people create tableless designs. Included are six major benefits of creating tableless sites, and how to sell your desire to alter your website to a resistant manager.

һʱ¼ä£¬ÍøÒ³Éè¼ÆÊ¦ÃǶ¼ÔÚ˵£º±í¸ñÊÇħ¹í£¡µ«ÊÇËûÃDz¢²»Äܽ²³öÆäÖеÄÔ­Òò¡£ÄÇôÔÚÕâÀÎÒ½«¸øÄãһЩ¾ßÓÐ˵·þÁ¦µÄÀíÓÉ£¬±íÃ÷ΪʲôÈËÃDz»Ô¸ÒâʹÓñí¸ñÀ´´´½¨ÍøÒ³¡£ÆäÖаüÀ¨´´½¨ÎÞ±í¸ñÍøÕ¾µÄËĸöºÃ´¦£¬ÒÔ¼°ÈçºÎ½«ÍøÕ¾×ª±äΪ¾­¾Ã²»Ë¥µÄ“ͳÖÎÕß”£¬²¢½«ËüÍÆÏú³öÈ¥¡£

Let's begin with the benefits of a tableless layout. These are only in the order that I feel they should go in, some things are more important to other people, so rank them as you will.

ÈÃÎÒÃÇÏÈ´Ó±í¸ñ²¼¾ÖµÄºÃ´¦¿ªÊ¼½²Æð¡£Ö®ËùÒÔ°ÑËüÁÐÔÚÆäÖÐÊÇÒòΪËû¶ÔºÜ¶àÈËÊÇÖÁ¹ØÖØÒªµÄ¡£

Forces You To Write Well-Formed Code
ÆÈʹÄãÊéд¸ñʽÑϽ÷µÄ´úÂë

You cannot have a properly made tableless layout, and use improper and non-standard code. Well, let me correct that - you can (technically you can do it) but it defeats the whole purpose. When you are creating a tableless design, you should be using standards compliant code. I think that anything that makes you get into the habit of always writing clean code is a good thing.

Äã²»¿ÉÄÜʹÓò»ºÏÊʵĻò²»±ê×¼µÄ´úÂëÀ´½øÐÐÎÞ±í²¼¾Ö¡£ÈÃÎÒ¸üÕýһϗ—Äã¿ÉÒÔ£¨½ö´Ó¼¼Êõ½Ç¶ÈÀ´Ëµ£©£¬µ«ÊÇ£¬ÕâÑù×ö»áʹµÃËùÓÐÄ¿±êÂä¿Õ¡£µ±Äã½øÐÐÎÞ±íÉè¼ÆÊ±£¬Äã±ØÐëʹÓÃÒ»Ì׺ÏÊʵġ¢±ê×¼µÄ´úÂë¡£ÎÒÈÏΪ£¬Äܹ»ÈÃÄãÑø³ÉÒ»¸öºÃµÄ±à³Ìϰ¹ßµÄËùÓÐÊÂÇé¶¼ÊǺÃÊÂÇé¡£

Faster Loading Time
ÏÂÔØ¸ü¿ì

This is absolutely a benfit of a tableless layout, and for several reasons. First, on a fundamental level - tables load slowly. For the most part, unless you set the height and width of your table elements, all the text has to be loaded and rendered BEFORE the table sizes itself to the page. Of course, this is what so many people loved about tables isn't it? The fact that they were so easily sizeable. The downside is how much more time they take to load.

ÎÞ±í²¼¾Ö·Ç³£Óкô¦£¬ÆäÖаüº¬ÏÂÃæÕ⼸¸öÀíÓÉ£º1¡¢´Ó»ù±¾Ô­ÀíÉϽ²£¬Ê¹Óñí¸ñ²¼¾Ö½«¼õ»ºÏÂÔØËÙ¶È£»¸üÖØÒªµÄÒ»µã£¬ÎÞÂÛÄãÔõÑùÉèÖñí¸ñÔªËØµÄ¸ß¶ÈºÍ¿í¶È£¬±í¸ñÄÚµÄËùÓÐÔªËØ¶¼½«ÔÚ¼ÓÔØ±í¸ñ֮ǰ¼ÓÔØ£¬Õâ¿ÉÄÜÊǺܶàÈËÈÈÖÔ±í¸ñ²¼¾ÖµÄÔ­Òò°É£¡ÊÂʵÉÏ£¬±í¸ñµÄ³ß´çÒ»°ã¶¼ºÜ´ó£¬ËùÒÔËüÃÇ·´¶ø»á¼ÓÔØ¸ü³¤µÄʱ¼ä¡£ÎÒÃDz»ÄܺöÊÓËüµÄÏÂÔØÊ±¼ä¡£

Okay, so the solution to that loading time is to set all the values explicitly, right? So now we see another downside. Code clutter that increases loading time. First of all, just by themselves, tables take a lot of code. How many td open and close tags does your average table based layout have? Tons. Having to set all the values explicitly only adds to the page size and loading time. There are many experiments that have been done on this topic, I'll point you toward this one that StopDesign did on a remake of the Microsoft website from a tablebased site to a tableless layout. That remake showed a 62% file size reduction of the site, and using their average hits per month for the Microsoft site, calculated that Microsoft would be saving 924 GIGS in bandwidth per day, and 329 Terabytes of bandwidth per year. For any company that pays for bandwidth, these things are important.

Òò´Ë£¬ÎÒÃDZØÐë°ÑËùÓеÄÖµÉèÖÃÇå³þ£¬´Ó¶ø¼õÉÙÏÂÔØµÄʱ¼ä¡£½ÓÏÂÀ´ÈÃÎÒÃÇ¿´¿´ÆäËüµÄȱµã°É£º´úÂëµÄ»ìÂÒ»áÔö¼Ó¼ÓÔØµÄʱ¼ä¡£Ê×ÏÈ£¬±í¸ñ±¾Éí°üº¬ÁË´óÁ¿µÄ´úÂ룬Äã¿ÉÒÔÊýÊý¿´ÆäÖаüº¬Á˼¸¸ö“td”¿ªÊ¼ºÍ½áÊø±êÇ©£¬ÎÒÏëÓ¦¸ÃÊǺܶà°É¡£ÎªÁ˰ÑËüÃÇÉèÖõÄÇå³þÒ»µã£¬±ØÐëÔö¼ÓÍøÒ³µÄ³ß´ç´Ó¶øµ¼ÖÂÏÂÔØÊ±¼äÑÓ³¤¡£¹ØÓÚÕâ¸öÖ÷Ì⣬ÎÒÃÇÒѽøÐÐÁ˶à´ÎʵÑé¡£¾¡Á¿²»ÒªÔÙʹÓñí¸ñ½øÐв¼¾ÖÁË£¬¿´¿´Î¢ÈíµÄ×ö·¨°É£¬ËûÃÇÔ­À´ÊÇʹÓñí¸ñ²¼¾ÖµÄÒѾ­¿ªÊ¼Ê¹Ó÷DZí¸ñ²¼¾ÖÁË¡£Ñо¿±íÃ÷£¬ÕâÖÖ×ö·¨Îª¸ÃÍøÕ¾½ÚÊ¡ÁË62%µÄ¿Õ¼ä´óС£»Í¨¹ýÿÔÂÆ½¾ùµã»÷ÂʼÆË㣬΢Èí½«Ã¿Ìì½ÚÊ¡924 GIGSµÄ´ø¿í£¬Ò»Ä꽫½ÚÊ¡329TerabytesµÄ´ø¿í¡£¶ÔÓÚÈκÎÒ»¼Ò´ø¿íÕ¼ÓýϴóµÄ¹«Ë¾£¬ÕâÑù×ö¶¼ÊǷdz£±ØÒªµÄ¡£

Easier to Read Code
Ôö¼Ó´úÂëµÄÒ×¶ÁÐÔ

If you are using standard code, semantic document conventions, and a tableless layout, your code can be so clean that it looks practically like just regular text with a few extra symbols.

Èç¹ûʹÓõÄÊDZê×¼´úÂ룬±ê×¼ÓïÒåÎĵµºÍ·Ç±í¸ñ²¼¾Ö£¬ÄÇôÄãµÄ´úÂ뽫¿´ÉÏÈ¥·Ç³£Çå³þ£¬¼òÖ±¾ÍÈçͬһ¸ö´øÓÐÒ»Ð©ÌØÊâ·ûºÅµÄ¹ßÓÃÎı¾¡£

That is a great benefit because it not only makes it easier for you to update, but it makes it easier for a non-technical user to make small alterations to. Additionally, if you work as a web developer in a more freelance capacity, it is common for there to be a full-time web developer who has to maintain that site. Clean and simple to read code makes that a easy transition. We like it when people leave us easy to understand code, right? Let's return the favor.

ʹÓ÷DZí¸ñ²¼¾ÖµÄºÃ´¦²»½öÔÚÓÚ·½±ãÄã¶ÔÍøÒ³½øÐиüУ¬¶øÇÒ»¹¿ÉÒÔʹ·ÇתҵµÄÈË¶ÔÆä½øÐÐϸ΢µØÐ޸ĺÍת»»¡£ÁíÍ⣬Èç¹ûÄãÊÇÒ»¸ö×ÔÓÉÖ°ÒµµÄÍøÒ³Éè¼ÆÊ¦£¬ÄãÒ²¿ÉÒÔÈÃ×¨ÒµÍøÒ³Éè¼ÆÊ¦¼ÇסÄãµÄÍøÕ¾¡£´úÂëµÄ¼òÃ÷ÐÔ¿ÉÒÔʹ´úÂëת»¯¹¤×÷±äµÃ·Ç³£ÈÝÒס£ÎÒÃǶ¼Ï£Íû´úÂ뿪·¢ÕßÃÇΪÎÒÃÇÁôϵÄÊǼòµ¥µÄ´úÂ룬ËùÒÔ£¬µ±ÎÒÃÇÊéд´úÂëʱ£¬Ò²¿¼ÂÇ¿¼ÂÇÕâµã°É¡£

Print Alternate Views
·½±ãµÄÑùʽ¶¨Òå

When you create a page using a table-layout, you are rather unfortunately locked into a certain layout. Developers who have created table-based websites, as most of us have at some point - particularly if you were in the the industry before the big tableless movement, know that you often have to create a separate printable version of your pages. This can be, needless to say, quite tiresome.

µ±ÎÒÃÇʹÓñí¸ñ²¼¾Ö´´½¨ÍøÒ³Ê±£¬Äã²»Ó¦¸Ã¾ÐÄàÓÚÒ»ÖÖÌØ¶¨µÄ²¼¾Ö·½·¨¡£Ê¹Óñí¸ñ²¼¾ÖµÄ¿ª·¢Õߣ¬ÈçͬÎÒÃǵ±ÖеĴó¶àÊýÈËÒ»Ñù£¬±ØÐëҪעÒâÒ»µã£¬Èç¹ûÄãÊÇÔÚ“ÍøÒ³Éè¼ÆÎÞ±í¸ñ»¯”Ô˶¯Ö®Ç°´ÓÊÂÉè¼Æ¹¤×÷µÄ£¬Äã±ØÐëΪÿÕÅÍøÒ³´´½¨Ò»ÖÖ¶ÀÁ¢µÄÑùʽ£¬ÕâÑù×ö·Ç³£·±Ëö¡£

Ease of printing style control is a huge benefit with a tableless layout. You can easily create a single new printing style that applies to all your pages, instead of making them individually. That alone is a huge time saver, but there is more.

¼òÒ×µÄÊä³öÑùʽ¿ØÖÆÊÇÎÞ±í»¯²¼¾ÖµÄÒ»¸ö¾Þ´óÓÅÊÆ¡£Äã¿ÉÒÔÇáËɵش´½¨Ò»ÖÖ¼òµ¥µÄȫв¼¾Ö£¬²¢½«ÆäÔËÓõ½ËùÓÐÍøÒ³ÖУ¬¶øÎÞÐè¶Ôÿ¸öÒ³Ãæ¶¼Éè¼ÆÒ»Ì×Ñùʽ¡£ÕâÎÞÒÉ»á½ÚÊ¡¾Þ´óµÄʱ¼ä¡£

While you can control all elements with this approach, the biggest key is organization of information within the page itself. Using the example, let's assume that the display order we want all our pages to print using the following order: The page header first, the content next, the special news after that, then the link list, and then the footer. However! We still want it to display as it would normally when viewing (meaning the header at the top, the links on the left, content in the middle, news on the right, and footer at the bottom). With a table-based layout, you would have to create a new page to do that special printing organization because the print style will read your columns left to right. With a table-less layout, you are not bound by this. You can order the content in your page however you like, and still control the way it looks... all by using the CSS only !

µ±ÄãʹÓÃÕâÖÖ·½·¨¿ØÖÆËùÓÐÔªËØÊ±£¬ÄÇôÊ×ÏÈÒª¿¼ÂǵÄÒ»¸ö¹Ø¼üµã¾ÍÊÇ£ºÈçºÎ½«Ò³Ãæ±¾ÉíµÄËùÓÐÐÅÏ¢ÓÐЧµØ×éÖ¯ÆðÀ´¡£ÈÃÎÒÃÇÉèÏëÒ»ÏÂÏÂÃæµÄÅÅÐò·½Ê½£ºÊ×ÏÈÊÇÒ³Ê×£¬½ÓÏÂÀ´ÊÇÄÚÈÝ£¬È»ºóÊÇÌØ¶¨µÄÐÂÎÅÐÅÏ¢ºÍÁ´½ÓÁÐ±í£¬×îºóÊÇÒ³½Å¡£È»¶ø£¬ÎÒÃÇÈÔȻϣÍûËü°´ÕÕÎÒÃÇÕý³£µÄä¯ÀÀϰ¹ß½øÐÐÏÔʾ£¨¼´£ºÒ³Ê×ÔÚ×î¶¥¶Ë£»Á´½ÓÁбíÔÚÖмä×ó¶Ë£»ÄÚÈÝÔÚÖм䣻ÐÂÎÅÔÚÖмäÓÒ¶Ë£»Ò³½ÅÔÚ×îµ×¶Ë£©¡£Èç¹ûÄãʹÓñí¸ñ²¼¾ÖµÄ»°£¬ÄÇôÄã±ØÐëÖØÐ´´½¨Ò»¸öÒ³Ãæ£¬ÒòΪ±í¸ñµÄ¶Áȡ˳ÐòÊÇ´Ó×óÍùÓҵ컵«ÊÇ£¬Èç¹ûÄãʹÓÃÁËÎÞ±í»¯²¼¾Ö£¬ÄÇÄã¾Í²»»á±»ÕâÖÖÐÎʽËùÊø¸¿¡£Äã¿ÉÒÔËæÐÄËùÓûµÄ°Ú·ÅÄÚÈݵÄλÖò¢ºÜºÃµÄ¶ÔËü½øÐпØÖÆ¡£¶øÖ»ÐèҪʹÓÃCSS±ã¿ÉÒÔ˳ÀûʵÏÖÉÏÊöµÄÄ¿µÄ¡£

Additionally, because we can put the content in whatever order we want in the HTML, and then move the content blocks around for website viewing using CSS - we can have ultimate control over presentation.

ÁíÍ⣬ÒòΪÎÒÃÇ¿ÉÒÔʹÓÃCSS½«ËùÓÐÄÚÈÝ»ò²¿·ÖÄÚÈÝ·ÅÔÚHTMLÒ³ÃæÖеÄÈκεط½£¬Òò´Ë£¬ÎÒÃÇ¿ÉÒÔ¶ÔËüµÄ±íÏÖ·½Ê½×ö³öËæÒâµÄ¿ØÖÆ¡£

That is very important because the clean code, and ability to alter presentation, means that your site can be viewable by someone on a small mobile phone screen
¡£The flexibilty and organization leads to being able to create a powerful website that takes advantage of some of the possibilities with XHTML.

ÒòΪ´úÂëµÄ¾«¼òÊÇÈç´ËµÄÖØÒª£¬Ëü¿ÉÒÔËæÒâµÄ¿ØÖÆÄÚÈݵıí´ï·½Ê½ºÍλÖã¬Òò´Ë£¬¼´Ê¹ÊÇÔÚÒ»¸öÊÖ»úÆÁÄ»ÉÏ£¬Ò²¿ÉÒÔºÜÇáËɵÄÕ¹ÏÖÄãµÄÍøÒ³¡£ÎÒÃÇ¿ÉÒÔÀûÓÃXHTMLµÄÀ©Õ¹ÐÔºÍ×éÖ¯ÐÔÀ´´´½¨ÓÅÐãµÄÍøÕ¾¡£

Search Engine Optimization
ËÑË÷ÒýÇæÓÅ»¯

Due to the fact that you can organize your most important content at the top of your page, without affecting the layout, your page can be better optimized for search engines. For instance, say that I have a navigation bar on the left side of the page that lists tons of parts of the site that are actually great keywords. I could move that navigation bar code higher up in my actual HTML, without changing the layout, because I'm using the CSS to position the navigation where I want it.

ÒòΪÄã¿ÉÒÔʹÓÃÎÞ±í»¯²¼¾Ö½«×îÖØÒªµÄÄÚÈÝ·ÅÔÚÒ³Ãæ¶¥¶Ë£¬¶øÕâÑù×öÓÖ²»»áÓ°ÏìÕû¸ö²¼¾Ö£¬ÄÇôÄãµÄÒ³Ãæ¿ÉÒÔ×î´óÏ޶ȵÄÖ´ÐÐËÑË÷ÒýÇæÓÅ»¯¡£¾Ù¸öÀý×ÓÀ´Ëµ£¬ÎÒÔÚÒ³ÃæµÄ×ó±ß²¿·Ö·ÅÖÃÁ˵¼º½Ìõ£¬ÉÏÃæÐ´ÁËһЩ¹Ø×¢Âʷdz£¸ßµÄ¹Ø¼ü´Ê¡£Òò´ËÎÒ¿ÉÒ԰ѵ¼º½Ìõ´úÂëдÔÚHTML´úÂë֮ǰ¶ø²»Ó°ÏìÕû¸öÒ³Ãæ²¼¾Ö¡£ÒòΪÎÒÊÇʹÓÃCSSÀ´µ÷ÕûËüµÄλÖõġ£

Those search engines can also more clearly find common words throughout your document without having to filter through code. Search engines prioritize websites that have a higher content to code ratio, so putting all your style elements into your external CSS stylesheet makes your site highly content based to a search engine. Tableless layouts, as previously mentioned, decrease page size and loading time - another bonus to search engines.

ËÑË÷ÒýÇæ²»ÐèÒª¹ýÂË´úÂë¾Í¿ÉÒÔÕÒµ½½«Õû¸öÎĵµµÄͨÓùؼü×Ö¡£ËÑË÷ÒýÇæ»áËÑË÷ÄÇЩÄÚÈݱÈÀýËùÕ¼Ò³Ãæ±ÈÀý½Ï¶àµÄÒ³Ãæ£¬Òò´Ë£¬°ÑÑùÊ½ÔªËØ·Åµ½ÍⲿÑùʽ±íÖУ¬ÕâÑù¿ÉÒÔʹÄÚÈÝ͹ÏÔ³öÀ´¡£ÉÏÃèÌáµ½µÄÎÞ±í»¯²¼¾Ö£¬Ã÷ÏԵļõÉÙÁËÒ³Ãæ³ß´çºÍÏÂÔØÊ±¼ä£¬¿ÉÒÔ¸ü´óÏ޶ȵÄÀûÓÃËÑË÷ÒýÇæ¡£

Presentation Flexibility
È«·½Î»ÊÊÓ¦ÐÔ

Making changes to a CSS based Tableless layout is simple. You can alter the CSS file only, changing as many styles and graphics as you want. The affects cascade through all the pages on your website, and eliminate the need for manually updating many pages.

ÒÔCSSΪ»ù´¡µÄÎÞ±í»¯²¼¾ÖÊǷdz£¼òÒ×µÄÒ»ÖÖ·½·¨¡£Äã¿ÉÒÔͨ¹ýת±äCSSÎļþÀ´¸ü¸ÄÄãËùÏ£ÍûµÄÑùʽºÍͼƬ¡£ÔÚÕû¸öÍøÕ¾ÖÐʹÓòãµþÑùʽ±í¿ÉÒÔ¼õÉÙÈÕ³£Ò³Ãæ¸üÐµĹ¤×÷Á¿¡£

For one of the best known examples of how powerful presentation can be, you can visit the CSS Zen Garden and navigate through the 'Select a Design' links to see the differences. Each of the different designs uses exactly the same HTML file content. The only thing that changes is the CSS file for each one.

Äã¿ÉÒÔ·ÃÎÊÒ»ÏÂÖøÃûµÄÍøÕ¾£ºCSS Zen Garden£¬ÔÚÕû¸öÒ³Ãæ²¼¾ÖÉÏ£¬Ëü¿°³Æ¾­µä¡£Äã¿ÉÒÔͨ¹ýµãÑ¡µ¼º½ÌõÉϵēSelect a Design”À´²é¿´²»Í¬µÄ²¼¾Ö·ç¸ñ¡£Ã¿¸ö²»Í¬µÄÉè¼Æ·ç¸ñ¶¼Ê¹ÓÃÁËÍêȫһÖµÄHTMLÄÚÈÝ¡£Ëü½öͨ¹ýʹÓò»Í¬µÄCSSÀ´¸Ä±äHTMLµÄÄÚÈÝ¡£

Selling Yourself On Standards
Óò»Í¬µÄ±ê×¼À´ÍÆÏúÄã×Ô¼º

Sometimes knowing how to code for standards, and create flexible tableless layouts is not enough. There are some web designers who meet with difficulties from their management. Most often those difficulties are rooted in the management being unaware of the benefits of using tableless content and CSS driven layout.

ÕâÀïҪ˵µÄÊÇ£ºÊ¹Óñê×¼µÄ´úÂ룬´´½¨¿ÉÀ©Õ¹µÄÎÞ±í¸ñ²¼¾Ö»¹ÊDz»¹»µÄ¡£Ò»Ð©ÍøÕ¾Éè¼ÆÊ¦»¹ÊÇÓöµ½Á˺ܶàÍøÕ¾¹ÜÀíÉϵÄÀ§ÄÑ¡£ÔÚ´ó¶àÊýÇé¿öÏ£¬Õâ¶¼ÊÇÓÉÓÚºöÂÔÁËÎÞ±í»¯²¼¾ÖµÄÄÚÈÝÒÔ¼°CSS²¼¾Ö·½Ê½¶øµ¼Öµġ£

If you want to design for standards, but you work for a company that is not very forward-thinking in allowing you the time to work on the changes -- try this: Make them think about their pocket-book. Point out the cost saving benefits.

Èç¹ûÄãÏ£Íû½øÐбê×¼»¯Éè¼Æ£¬µ«ÊÇÄãËùÔڵĹ«Ë¾²»ÔÊÐíÕâô×ö£¬ÒòΪ¿ÉÄܻᵢÎóʱ¼ä¡£ÄÇôÄã¿ÉÒÔÕâÑù×ö£º°ÑËüÃǼÇÔØÐäÕä±Ê¼Ç±¾ÖУ¬²¢Ö¸³öÄÄÀï¿ÉÒÔ½ÚÊ¡³É±¾¡£

For instance, try grabbing a single page of existing code. Clean it up to standards. Compare the page size to before (including image optimization), and count the difference in bytes saved. Multiply that across the number of site pages, and the number of days per month. Then explain to them the amount of bandwidth cost saved monthly if this was done across the whole site. If that isn't enough, show them how quickly you can make changes to a website once it is CSS driven, and push the idea that you will be able to change the site more rapidly when there are needed updates, and you will have more time to focus on adding in new functionality to the site - instead of spending your time doing maintenance.

¾Ù¸öÀý×ÓÀ´Ëµ£¬¾¡¿ÉÄܵÄץȡÏÖÓеĴúÂëÒ³Ãæ£¬²¢½«ÆäÖеĴúÂëÒÔ¼òÃ÷±ê×¼µÄ´úÂë¸ñÊ½ÖØÐÂÊéд¡£È»ºó£¬±È½ÏǰºóÁ½ÕßÒ³ÃæµÄ³ß´ç²îÒ죨°üÀ¨¶ÔͼƬµÄÓÅ»¯£©£¬¼ÆËã³ß´ç²îÖµ¡£È»ºó£¬ËµÃ÷һϣ¬Èç¹û°´ÕÕеIJ¼¾Ö·½Ê½£¬Ã¿¸öÔ¿ÉÒÔʡȥ¶àÉÙ´ø¿í³É±¾¡£Èç¹ûÕâÑù»¹²»¹»£¬Äã¿ÉÒÔÔÙ¾ßÌå˵Ã÷һϣ¬Èç¹ûÓÃCSS²¼¾Ö»áÌá¸ß¶àÉÙÏÂÔØËÙ¶È£»²¢ÇÒ£¬ÔÚÒ³Ãæ¸üеÄʱºò£¬¿ÉÒÔʡȥ¶àÉÙ¸üÐÂʱ¼ä¡£ÕâÑùÒ»À´£¬Äã¾Í¿ÉÒÔ°Ñʱ¼äÊ¡ÏÂÀ´ÓÃÓÚÌáÉýÍøÕ¾µÄ¹¦ÄÜÐÔ——ÕâÑù¾ÍʡȥÁ˴󲿷Öά»¤µÄʱ¼ä¡£

Summary
×ܽá

Hopefully, this little article will serve as a way to get you started on understanding why to use a tableless layout, what the benefits are, and you can easily take a look at Layout Gala and download just 1, or all 40 of the tableless layout examples to get you started. However, the best step toward moving to a tableless design is to slowly move your website toward a standard compliant version first, before you get rid of the tables. To get to that point, study as much on CSS as you can, read through the articles here and elsewhere on the web, and moving from table layouts to tableless will be just a matter of time.

дÕâÆªÎÄÕµÄÄ¿µÄÔÚÓÚ£¬Èôó¼ÒÄܹ»´óСʹÓÃÎÞ±í»¯²¼¾ÖµÄÒÉÂÇ£¬²¢¿ªÊ¼Ê¹ÓÃÕâÖÖ·½Ê½½øÐв¼¾Ö¡£ÕâÀïÓÐÒ»Ìõ½Ý¾¶£¬Äã¿ÉÒÔÖ±½ÓÔÚLayout GalaÍøÕ¾ÉÏÏÂÔØÏֳɵÄ40¸öÄ£°æ°¸ÀýÀ´½øÐв¼¾Ö¡£ÔÚÄã·ÅÆúʹÓñí¸ñ֮ǰ£¬ÄãÓ¦¸Ã¾¡¿ÉÄÜ·ÅÂýÍøÕ¾µÄÎÞ±í»¯½ø³Ì¡£ÄãÓ¦¸Ã³ä·ÖѧϰCSS¼¼Êõ£¬¶ÁÍêÕâÆªÎÄÕÂÒÔ¼°ÍøÕ¾ÉÏÆäËûÏà¹ØµÄÎÄÕÂÖ®ºó£¬ÄãÖÆ×÷ÎÞ±í²¼¾ÖµÄÍøÕ¾Ö»ÊÇʱ¼äÎÊÌâÁË¡£

ÆÀÂÛ (0) All