tailieunhanh - Taking Your Talent to the Web: A Guide for the Transitioning Designer- P15
Taking Your Talent to the Web: A Guide for the Transitioning Designer- P15:It was a simple solution to a complex problem. On one side, thousands of designers and art directors are eager to take their talents to the Web but aren’t sure how. On the other, web agencies could not find enough good web designers to get their work done. | Taking Your Talent to the Web 281 the seven CSS keywords directly to the seven Netscape font sizes. In many ways it was a logical and even brilliant thing to do. The IE Windows developers were also the first group to attempt to support absolute font size keywords. We should credit them for that before carping about the results. The problem of course is that logically the sizes do not map to the keywords. In old-style browsers FONT SIZE 3 is the default or normal size that the user has specified in her preferences. In Netscape s extended HTML markup FONT SIZE 3 is assumed unless you specify another size. Logically a default size should map to the medium CSS keyword. Unfortunately in the IE Windows scheme FONT SIZE 3 maps to small instead of medium because small is the third size up from the bottom of the list. Who goofed the W3C or the IE Windows team It doesn t really matter. What matters is that the keywords don t map to expected sizes and an incompatibility exists not only between different manufacturers browsers but between the Mac and Windows versions of the same browser. If you think of the seven sizes the way the IE Windows team did your sizes will be off on Mac users desktops. You also will go nuts. It s like trying to drive a car where Park means Neutral. If you think of them the way the keywords actually read small medium large your display will be off in Windows. You can trick the Mac browser into emulating Windows behavior by specifying a DOCTYPE of HTML 4 Transitional and leaving off the W3C URL. For details see http stories ie5mac. But this is forcing the browser to emulate nonstandard behavior and that s not good. Besides it won t work in Netscape 4 Opera or Konqueror. So what can you do Sadly until your entire audeince uses browsers that render absolute keywords all you can do is ignore the W3C recommendations and use pixels in your style sheet. Or do not use sizes at all. Relative keywords Relative keywords are limited to two .
đang nạp các trang xem trước