Tài liệu Fun with Client-Side Scripts

Thảo luận trong 'Thiết Kế Web' bắt đầu bởi Thúy Viết Bài, 5/12/13.

  1. Thúy Viết Bài

    Thành viên vàng

    Bài viết:
    198,891
    Được thích:
    173
    Điểm thành tích:
    0
    Xu:
    0Xu
    Adding this type of navigation to your site couldn’t be simpler:
    1. Within the <head> tags, add the preceding code (from Listing 16-1)
    inside and including the <style> and </style> tags.
    2. Add links inside individual <h4> tags.
    3. Make sure that the entire menu is inside a <div> tag with an id attribute
    of navbar.
    If you add the CSS to your site via a link to a site-wide external style sheet
    (see Chapters 9 and 10 for more information on style sheets), you can add,
    change, or delete menu-bar links on your site at any time without having to
    touch a single line of CSS or JavaScript. You simply add or modify your <a
    href> tags. Slick, huh?
     

    Các file đính kèm: