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

w3pop.com :: ÍøÂçѧԺ :: Éè¼ÆÀíÄî :: ÈçºÎ½øÐÐÍøÕ¾²¼¾Ö

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

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

Éè¼ÆÀíÄî
¹¹½¨ÍøÕ¾µÄ6¸ö²½Ö..
ºÏÀí°²ÅÅÍøÕ¾ÑÕÉ«
ͼƬÉè¼Æ
ÍøÕ¾Éè¼ÆÓ¦¸Ã×·Çó..
³É¹¦½øÐÐÍâ°üÒµÎñ..
ÍøÕ¾Éè¼Æ±ÜÃâ³öÏÖ..
´´½¨ÓÐÐ§ÍøÕ¾µÄ5Ì..
ÍøÂ簲ȫ×ÖÌå
ÍøÕ¾Î¬»¤µÄ¼òµ¥·½..
ÍøÕ¾Éè¼ÆÍŶÓÓ¦¸Ã..
ÈçºÎÉè¼ÆÓмÛÖµµÄ..
Éè¼ÆÓÐÌØÉ«µÄÍøÕ¾
ÍøÕ¾ÓªÏúÖÐÈÝÒ׳ö..
ºÏÀíÉè¼ÆÍøÕ¾
Ìá¸ßÍøÒ³ÏÂÔØËÙ¶È
¸ßÖÊÁ¿µÄÍøÕ¾Éè¼Æ
ÍøÕ¾Ó¦¸ÃÄܹ»Ôö¼Ó..
Ò×ÓÚä¯ÀÀµÄÍøÒ³¿É..
ÍøÕ¾Éè¼ÆµÄ¼¸¸öÖ÷..
´´½¨Flashµ¼º½²Ëµ..

ÈçºÎ½øÐÐÍøÕ¾²¼¾Ö


×÷Õß:Azam Corry ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2008-02-22 ä¯ÀÀ:4414 :: ::

Frames Vs Tables
¿ò¼ÜVs±í¸ñ

Some people like to use frames on their sites. I would recommend you avoid them if you can ... and you probably can.

ÓÐЩÈËϲ»¶ÀûÓñí¸ñÉè¼ÆÍøÕ¾£¬µ«ÎÒ½¨ÒéÄã×îºÃ²»ÒªÊ¹Óñí¸ñ¡£ÎÒÏëÄã¿ÉÒÔ±ÜÃâʹÓñí¸ñ¡£

Frames can be useful on occasion but "the pain is greater than the gain". Too many people complain of problems with frames than you can afford to ignore. So if you insist on using them, you'll need to create an alternative no-frames set of pages for these users. Honestly ...

ÓÐʱºò£¬¿ò¼Üȷʵ¿ÉÒÔ·¢»Ó×÷Ó㬵«ËüµÄȱµã¶àÓÚÓŵ㡣ÄãÒ»¶¨²»ÄܺöÊÓ¿ò¼ÜµÄȱµã£¬ÒòΪ̫¶àÈËÒѾ­ÔÚ±§Ô¹¿ò¼ÜËù´øÀ´µÄÎÊÌâ¡£Èç¹û¼á³ÖʹÓÿò¼Ü£¬ÄãÐèÒªÎªÍøÕ¾Óû§´´ÔìÁíÍâÒ»Ì×ÎÞ¿ò¼ÜÍøÒ³¡£µ«³ÏʵµØËµ£¬

... it's just not worth the trouble!

ÕâÖÖ×ö·¨Ì«Âé·³£¡

As If that wasn't enough reason, many search engine spiders also encounter difficulties with frames.

²¢ÇҺܶàËÑË÷ÒýÇæÔÚËÑË÷¿ò¼Üʱ£¬»áÔ½µ½Ò»Ð©ÎÊÌâ¡£

This means you'll either have to spend additional time learning how to overcome these shortcomings or be doomed to low search rankings. Convinced?

Õâ¾ÍÒâζ×Å£¬ÄãÐèÒª»¨·Ñʱ¼äѧϰÈçºÎ¿Ë·þ¿ò¼ÜµÄȱµã£¬·ñÔòÍøÕ¾×¢¶¨»áÔÚËÑË÷ÒýÇæÖÐÓÐÒ»¸öµÍÅÅÃû¡£

I hope so - for your sake!

ÎÒÏ£ÍûÄãµÄÍøÕ¾²»»á³öÏÖÕâÖÖÇé¿ö¡£

In most of the situations in which you might feel you need to use frames you can usually use tables equally effectively. If not on their own, then in conjunction with SSI - Server Side Includes - which also allow you to write separate pages for inclusion in another 'main' page.

´ó¶àÊýÇé¿öÏ£¬±í¸ñ¿ÉÒÔ´úÌæ¿ò¼Ü¡£ÀûÓñí¸ñµÄͬʱ£¬Ä㻹¿ÉÒÔʹÓÃSSI£¨Server Side Includes£©£¬Ëü¿ÉÒÔ°ïÖúÄã±à¼­Ö÷ÒªÒ³ÃæËù°üº¬µÄÆäËüÒ³Ãæ¡£

The left column navigation bar, for example, is one area that it may seem appealing to place in it's own frame. The content remains the same on every page and should you need to change it, you can effect a global change just by altering a single file.

±ÈÈç˵£¬Ê¹Óÿò¼Ü²¼¾Ö×óÁе¼º½Ìõ£¬¿ÉÄÜ¿´ÆðÀ´ºÜÓÐÎüÒýÁ¦¡£ËùÓÐÍøÒ³²¼¾ÖÒ»Ö£¬²¢ÇÒÐÞ¸ÄÒ»¸öµ¥¶ÀÎļþÖ®ºó£¬¾Í¿ÉÒԸıäËùÓÐÍøÒ³¡£

What many people don't realize that you can achieve almost the same result by using an SSI callout in a table cell within the page. This will reference another file on the server which will be written into this location when called. To browsers and search engine spiders alike the page appears as a normal web page and doesn't give rise to any of the problems associated with the use of frames.

ºÜ¶àÈËûÓÐÒâʶµ½£¬ÔÚ±í¸ñµ¥ÔªÖÐÀûÓÃSSI±àºÅ£¬Ò²¿ÉÒÔ´ïµ½Õâ¸öЧ¹û¡£Õâ¾Í»áÉæ¼°µ½·þÎñÆ÷ÖеÄÁíÍâÒ»¸öÎļþ£¬Õâ¸öÎļþÔÚÐèҪʱ»áÉèÖõ½Õâ¸öλÖá£ä¯ÀÀÆ÷ÓëËÑË÷ÒýÇæ£¬¸üϲ»¶¿´ËÆÆÕͨ¡¢²»»á³öÏÖ¿ò¼ÜÎÊÌâµÄÒ³Ãæ¡£

What_You_Should_Know_About_Site_LayoutWhat_You_Should_Know_About_Site_LayoutWhat_You_Should_Know_About_Site_Layout

The Long Wait!

µÈһϣ¡

Whilst we're on the subject of tables...

ÎÒÃÇÕýÔÚ̸ÂÛ±í¸ñÎÊÌâ¡£

... don't make the same mistake I did when first using them!

µÚÒ»´ÎÀûÓñí¸ñʱ£¬²»Òª³öÏÖÎÒÔø³öÏÖ¹ýµÄÎÊÌâ¡£

Tables are great for page layout - you can put things just where you want them to appear on the page. So I made one big table for the whole page, split it up into various rows and columns, then put (nested) other tables inside these and in some places yet smaller ones inside them ...

±í¸ñÊÇÒ»ÖÖÍøÒ³²¼¾ÖµÄºÃ·½·¨£¬Äã¿ÉÒÔ¸ù¾ÝÐèÒª£¬Ñ¡ÔñÍøÒ³ÄÚÈݵÄλÖá£ÎÒÔÚÍøÒ³ÖÐÉè¼ÆÁËÒ»¸ö´ó±í¸ñ£¬»®·ÖΪºÜ¶àÐС¢ºÜ¶àÀ¸£¬È»ºóÔÚÄÚ²¿±í¸ñÖÐǶÌ׸üСµÄ±í¸ñ¡£

Wrong! Wrong! Wrong!

´íÎó£¡

Those of you that are quietly chuckling can stop now, thank you! Don't pretend you've never made the same mistake!

ÇëÄ㲻ҪЦ£¬ÎÒÏëÄã¿Ï¶¨·¸¹ýÀàËÆµÄ´íÎó¡£

Where was I ...?

ÎÒÄÄÀï³ö´íÁËÄØ£¿

Oh yes ... tables. Now the thing with tables is that the browser downloads all the contents of the table BEFORE it actually draws anything on the screen. This includes the contents of any nested tables. So what did that mean for my beautiful page?

Êǵ쬱í¸ñ¡£ÕâÀïµÄÎÊÌâÊÇ£¬ÔÚ±í¸ñÄÚÈÝÏÂÔØÍê±Ï֮ǰ£¬ä¯ÀÀÆ÷²»»áÔÚÏÔʾÆÁÖгÊÏÖÈκÎÄÚÈÝ¡£Õâ¾ÍÒâζ×Å£¬ÈκÎǶÌ×µÄÄÚÈݶ¼ÒªÏÂÔØÍê±Ï£¬ÄÇôÕâЩ²¼¾Ö¾«ÃÀµÄÍøÒ³»áÔõÑùÄØ£¿

It took DAYS to download!

ÏÂÔØÊ±¼äÌ«³¤ÁË£¡

Actually, it didn't really take that much longer, but it *seemed* like it did. The page remained completely blank until the browser had downloaded every single component and then suddenly flung them all onto the page at once! Leaving your visitors staring at a blank page for ages like this is not a good way to keep them on your site!

ÊÂʵÉÏ£¬ÍøÒ³ÏÂÔØ²»ÐèÒªÄÇô³¤Ê±¼ä¡£ÍøÒ³Ê×ÏÈ»á¿Õ°×£¬ä¯ÀÀÆ÷ÏÂÔØÍê±ÏÖ®ºó£¬ÍøÒ³Í»È»³öÏÖÈ«²¿ÄÚÈÝ¡£Èç¹ûÍøÕ¾·ÃÎÊÕß³¤Ê±¼ää¯ÀÀ¿Õ°×Ò³Ãæ£¬ËûÃǺܿì»áÀ뿪¡£

As ever, learn from your mistakes - or my mistakes! - and split your page up into several separate tables. Keep the whole lot as simple as possible and try to avoid nesting more than one layer of tables inside another. Browsers also take longer to draw tables if you don't specify the sizes. This is because the browser has to calculate how big the table needs to be to fit in all the contents.

¼ÌÐø·ÖÎöÎÊÌâ¡£ÎÒÃÇÓ¦¸Ã±ÜÃâÔÚ±í¸ñÖÐǶÌׯäËü±í¸ñ£¬±ÜÃâ°Ñ±í¸ñ¼ÌÐø·Ö¸î¡£Èç¹û±í¸ñ³ß´çûÓбêÃ÷£¬ä¯ÀÀÆ÷ÏÂÔØ±í¸ñµÄʱ¼ä»á±È½Ï³¤£¬ÒòΪ£¬ä¯ÀÀÆ÷ÐèÒª¼ÆËã±í¸ñ½«»áÕ¼ÓõĿռ䡣

You can also employ tables to add color to a page in preference to slow loading graphics. Or to effectively draw attention to text placed in a colored box on the page.

Äã¿ÉÒÔÀûÓñí¸ñÌî³äÍøÒ³ÑÕÉ«£¬ÕâÑù±ÈÏÂÔØËÙ¶ÈÂýµÄͼƬ¸üºÃ¡£»òÕß°ÑÎı¾·ÅÖÃÔÚÍøÒ³ÓÐÑÕÉ«µÄ±í¸ñÖС£

Tidy and Businesslike
Õû½à²¢ÇÒÓÐÌõÀí

Forget about loud colors, blinking or scrolling text, fancy animated graphics ...

±ÜÃâʹÓÃō֨µÄÑÕÉ«¡¢ìÅÄ¿»òÕß¹ö¶¯Îı¾¡¢Ææ¹ÖµÄ¶¯»­Í¼Ïñ¡£

... anything that distracts the eye.

ÒÔ¼°ÆäËü×ªÒÆÓû§×¢ÒâÁ¦µÄÄÚÈÝ¡£

Your visitor needs to concentrate on your text if you want to get them to 'bite'. Compare your site to it's offline 'brick and mortar' equivalent.

ÍøÕ¾±ØÐë±£Ö¤Óû§¼¯Öо«Á¦ÔĶÁÎÄ×ÖÄÚÈÝ£¬ÕâÑù²Å¿ÉÒÔÎüÒýËûÃǹºÂò²úÆ·»ò·þÎñ¡£Äã¿ÉÒԲο¼ÊµÌåÉ̵꣬Éè¼ÆÍøÕ¾¡£

Would you paint that bright yellow and deck it out with flashing lights?

Äã»á°ÑÍøÒ³Éè¼Æ³ÉÄÛ»ÆÉ«»òÕߺÜÁÁµÄÑÕÉ«Âð£¿

... 'Nuff said!

×îºÃ²»Òª£¡

Keep your pages clean and well organized. People must be able to find things easily.

ÍøÒ³±ØÐëÕû½à¡¢ÓÐÌõÀí£¬±ãÓÚÓû§Ñ°ÕÒÐÅÏ¢¡£

Imagine calling into a supermarket in a strange town to buy a box of tissues. You're in a hurry. To your dismay you find that none of the isles are labelled and you are forced to walk all over the store to find what you want.

¼ÙÉ裬ÄãÔÚÒ»¸öİÉú³ÇÕòµÄ³¬ÊÐÖдÒæµØ¹ºÂò²Í½íÖ½¡£Ê¹ÄãɨÐ˵ÄÊÇ£¬ÉÌÆ·Ã»ÓбêÇ©£¬ÄãÐèÒªÔÚÉ̵êÖе½´¦Ñ°ÕÒÉÌÆ·¡£

How annoyed and fed up would you feel?

ÄãÊDz»ÊǸоõºÜ¿àÄÕÄØ£¿

Sure, you'd still buy ... but only because of the hassle involved in leaving the store and going to another. Online this is as easy as ...

µ±È»£¬Äã¿Ï¶¨»á¹ºÂò£¬µ«Äã¿ÉÄÜ»áÈ¥±ðµÄÉÌµê¡£ÍøÉϹºÂòÒ²ÊÇͬÑùµÀÀí¡£

... click ... "I'm outta here!"

ÓÐÐ©ÍøÕ¾Ê¹Óû§ÄÑÒÔ·¢ÏÖËùÐèÐÅÏ¢¡£

Actually, when you go to a supermarket you'll normally find that everything's neatly labelled and tidily displayed in rows with signs above them... build your online store along the same lines.

ʵ¼ÊÉÏ£¬³¬ÊÐÖеIJúÆ·¶¼ºÜÕûÆë£¬²¢ÇÒ²úÆ·ÅԱ߶¼»áÓбêÇ©¡£¹¹½¨ÍøÉÏÉ̵êʱ£¬×ñÑ­ÕâЩ¹æÔò¡£

Apply what I call 'the three clicks rule'... make sure your visitor can find whatever they're looking for within three clicks. If not you run the risk of them becoming frustrated and leaving.

È·±£ÍøÕ¾Óû§ÔÚÈý´Îµã»÷Ö®ÄÚ£¬ÕÒµ½ËùÐèÄÚÈÝ£¬·ñÔòËûÃÇ»á¾ÚÉ¥µØÀë¿ªÍøÕ¾¡£

ÆÀÂÛ (0) All