Tài liệu Taking Precise Control Over Web Pages and Styles

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
    Understanding the Cascade
    Multiple style sheets can affect page elements and build upon each other. It’s
    like inheriting styles within a Web page. This is the cascading part of CSS.
    Take this real-world example of a Web site for a university English department.
    The English department is part of the School of Humanities, which
    is one school in the university. Each of these entities — the university, the
    school, and the English department — has its own style sheet.
    1. The university’s style sheet provides style rules for all pages in the site.
    2. The school’s style sheet links to the university’s style sheet (using an
    @import statement), and adds more style rules specific to the look the
    school wants for its own site
     

    Các file đính kèm: