TAILIEUCHUNG - HOW TO DESIGN AND WRITE WEB PAGES TODAY phần 5

Một đề cập đến giá trị cuối cùng chọn là chọn *, phổ quát, đôi khi được gọi là chọn ký tự đại diện. Được sử dụng bởi chính nó, nó sẽ phong cách tất cả các yếu tố trên trang web, ví dụ,Hình . Sử dụng bộ chọn con, chỉ có trẻ em đầu tiên của danh sách này xuất hiện mà không có viên đạn, danh sách lồng nhau vẫn có viên đạn của họ. | 110 HOW TO DESIGN AND WRITE WEB PAGES TODAY Figure . Using the child selector only the first children of this list appear without bullets more deeply nested lists still have their bullets. CSS but there are always other solutions. To style that heading two it might just be better to add a class to it in your XHTML when it appears before paragraphs if there is something structurally special about the heading two in that situation . Universal Selector One final selector worth mentioning is the universal selector sometimes called the wildcard selector. Used by itself it will style all elements on the page for example color green will style all text on the page to make it appear green. However because color is inherited it is generally better to set it using the body element selector. For both class and ID selectors the wildcard selector is implied. That is there is no difference between .warning color red and .warning color red PRESENTATION AND DESIGN 111 The wildcard selector is at its most useful in relationship selectors. For example if a page contained the following XHTML p This is strong an example strong of a href styling the text in strong this strong tag strong a em as well as strong this strong tag strong em . p only the first strong tag marking an example is a child of p . The other two are children of other tags a and em . To style the strong tags that aren t children of p use the wildcard selector p strong Style information That would style all strong tags that are grandchildren of paragraphs meaning there must be one or more descendant elements between p and strong for this style to be applied. We could also use the child selector rather than the descendant selector for more specific parentchild relationships . that only one element appears between p and strong p strong Style information However in those two cases both selectors would apply the same styles to the XHTML above. Combining Selectors You can write selectors as descriptively

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.