TAILIEUCHUNG - HTML & CSS: The Complete Reference- P12

Tham khảo tài liệu 'html & css: the complete reference- p12', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 526 Part II Core Style Linked styles are the preferred method of specifying CSS rules because they cleanly separate the style from the markup. However do note that using linked styles does come with the small penalty of an extra HTTP request. Embedded Styles Document-wide styles can be embedded in a document s head element using the style tag. Note that styles should be commented out to avoid interpretation by non-style-aware browsers. style type text css -- p font-size font-family Georgia Times New Roman Times serif color blue background-color yellow em font-size 2em color green -- style However be aware that comment masking is frowned upon in XHTML and instead you should use linked styles or use a CDATA section like so style type text css CDATA p font-size font-family Georgia Times New Roman Times serif color blue background-color yellow em font-size 2em color green style Given the support of this structure particularly with the confusion of XHTML serving and handling it is best to avoid this commenting scheme or better yet simply stick to linked styles. It is possible to set a media attribute on a style tag to define different types of rules per output medium style type text css media print Print rules here style style type text css media screen Screen rules here style Imported Styles-@import Within embedded style blocks properties can be imported from an external file and expanded in place similar to a macro. Importing can be used to include multiple style sheets. An imported style is defined within a style tag using import followed optionally by a type value and a URL for the style sheet style type text css import url import print url style r- r-s r i i n a__ _ir X _ Xl_ __X _ _ Chapter 5 CSS Syntax and Property Reference 527 The import directive allows style sheets to be grouped and joined together though some might wonder what the value of this function is given what linked .

TỪ KHÓA LIÊN QUAN
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.