![Phân tích tư tưởng của nhân dân qua đoạn thơ: Những người vợ nhớ chồng… Những cuộc đời đã hóa sông núi ta trong Đất nước của Nguyễn Khoa Điềm](https://timtailieu.net/upload/document/136415/phan-tich-tu-tuong-cua-nhan-dan-qua-doan-tho-039-039-nhung-nguoi-vo-nho-chong-nhung-cuoc-doi-da-hoa-song-nui-ta-039-039-trong-dat-nuoc-cua-nguyen-khoa-136415.jpg)
Web Programming with HTML, XHTML, and CSS Second Edition- P6
Số trang: 50
Loại file: pdf
Dung lượng: 1.10 MB
Lượt xem: 13
Lượt tải: 0
Xem trước 5 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Web Programming with HTML, XHTML, and CSS Second Edition- P6: Điều này bắt đầu hướng dẫn nhận xét HTML và cũng giới thiệu đến bạn bằng cách sử dụng XHTML cho cấu trúc của một trang web và cascading style sheets (CSS) để kiểm soát như thế nào một tài liệu sẽ xuất hiện trên một trang web. Bạn se tìm hiểu làm thế nào để tận dụng lợi thế của các tính năng mới của các trình duyệt trong khi đảm bảo rằng các trang của bạn vẫn làm việc ở cũ, nhưng phổ biến, các trình duyệt. Bằng...
Nội dung trích xuất từ tài liệu:
Web Programming with HTML, XHTML, and CSS Second Edition- P6 Chapter 7: Cascading Style Sheets ❑ You can change the appearance of several pages by altering just the style sheet rather than each individual page; this is particularly helpful if you want to change your company’s colors, or the font used for a certain type of element wherever that element appears across the whole site. ❑ The style sheet can act as a style template to help different authors achieve the same style of document without learning all of the individual style settings. ❑ Because the source document does not contain the style rules, different style sheets can be attached to the same document. So you can use the same XHTML document with one style sheet when the viewer is on a desktop computer, another style sheet when the user has a handheld device, another style sheet when the page is being printed, another style sheet when the page is being viewed on a TV, and so on. You reuse the same document with different style sheets for different visitors’ needs. ❑ A style sheet can import and use styles from other style sheets, making for modular development and good reuse. ❑ If you remove the style sheet, you make the site more accessible for those with visual impairments, because you are no longer controlling the fonts and color schemes. It is fair to say, therefore, that whenever you are writing a whole site, you should be using an external style sheet to control the presentation, although as you will see in the next chapter you might use several exter- nal style sheets for different aspects of the site.CSS Proper ties Now that you have learned the background of CSS, how to write CSS rules, and where you can place those rules, the rest of this chapter looks at the properties you can use to affect the presentation of your documents. In particular, you will learn the font, text, border, padding, and margin properties. The following table shows the main properties available to you from CSS1 and CSS2, all of which you meet in this chapter or Chapter 8. FONT FONT (continued) TEXT (continued) TEXT (continued) font font-variant text-align white-space font-family font-weight text-decoration word-spacing font-size TEXT text-indent BACKGROUND font-size-adjust color text-shadow background font-stretch direction text-transform background- attachment font-style letter-spacing unicode-bidi background-color Continued 221Chapter 7: Cascading Style Sheets BACKGROUND BORDER (continued) DIMENSIONS TABLE (continued) (continued) (continued) background-image border-top-style min-width table-layout background-position border-top-width width LIST and MARKER background-repeat border-width POSITIONING list-style BORDER MARGIN bottom list-style-image border margin clip list-style-position border-bottom margin-bottom left list-style-type border-bottom-color margin-left overflow marker-offset border-bottom-style margin-right right GENERATED CONTENT border-bottom-width margin-top top content border-color PADDING vertical-align counter-increment border-left padding z-index counter-reset border-left-color padding-bottom OUTLINES quotes border-left-style padding-left outline CLASSIFICATION border-left-width padding-right outline-color clear border-right padding-top outline-style cursor border-right-color DIMENSIONS outline-width display border-right-style height TABLE float border-right-width line-height border-collapse position border-style max-height border-spacing ...
Nội dung trích xuất từ tài liệu:
Web Programming with HTML, XHTML, and CSS Second Edition- P6 Chapter 7: Cascading Style Sheets ❑ You can change the appearance of several pages by altering just the style sheet rather than each individual page; this is particularly helpful if you want to change your company’s colors, or the font used for a certain type of element wherever that element appears across the whole site. ❑ The style sheet can act as a style template to help different authors achieve the same style of document without learning all of the individual style settings. ❑ Because the source document does not contain the style rules, different style sheets can be attached to the same document. So you can use the same XHTML document with one style sheet when the viewer is on a desktop computer, another style sheet when the user has a handheld device, another style sheet when the page is being printed, another style sheet when the page is being viewed on a TV, and so on. You reuse the same document with different style sheets for different visitors’ needs. ❑ A style sheet can import and use styles from other style sheets, making for modular development and good reuse. ❑ If you remove the style sheet, you make the site more accessible for those with visual impairments, because you are no longer controlling the fonts and color schemes. It is fair to say, therefore, that whenever you are writing a whole site, you should be using an external style sheet to control the presentation, although as you will see in the next chapter you might use several exter- nal style sheets for different aspects of the site.CSS Proper ties Now that you have learned the background of CSS, how to write CSS rules, and where you can place those rules, the rest of this chapter looks at the properties you can use to affect the presentation of your documents. In particular, you will learn the font, text, border, padding, and margin properties. The following table shows the main properties available to you from CSS1 and CSS2, all of which you meet in this chapter or Chapter 8. FONT FONT (continued) TEXT (continued) TEXT (continued) font font-variant text-align white-space font-family font-weight text-decoration word-spacing font-size TEXT text-indent BACKGROUND font-size-adjust color text-shadow background font-stretch direction text-transform background- attachment font-style letter-spacing unicode-bidi background-color Continued 221Chapter 7: Cascading Style Sheets BACKGROUND BORDER (continued) DIMENSIONS TABLE (continued) (continued) (continued) background-image border-top-style min-width table-layout background-position border-top-width width LIST and MARKER background-repeat border-width POSITIONING list-style BORDER MARGIN bottom list-style-image border margin clip list-style-position border-bottom margin-bottom left list-style-type border-bottom-color margin-left overflow marker-offset border-bottom-style margin-right right GENERATED CONTENT border-bottom-width margin-top top content border-color PADDING vertical-align counter-increment border-left padding z-index counter-reset border-left-color padding-bottom OUTLINES quotes border-left-style padding-left outline CLASSIFICATION border-left-width padding-right outline-color clear border-right padding-top outline-style cursor border-right-color DIMENSIONS outline-width display border-right-style height TABLE float border-right-width line-height border-collapse position border-style max-height border-spacing ...
Tìm kiếm theo từ khóa liên quan:
phương pháp lập trình lập trình web với html ngôn ngữ lập trình html lập trình xhtmlTài liệu liên quan:
-
Giáo trình Lập trình logic trong prolog: Phần 1
114 trang 206 0 0 -
Giáo trình Lập trình C căn bản
135 trang 176 0 0 -
Giáo trình Lập trình C căn bản: Phần 1
64 trang 170 0 0 -
14 trang 137 0 0
-
Giáo trình lập trình hướng đối tượng - Lê Thị Mỹ Hạnh ĐH Đà Nẵng
165 trang 122 0 0 -
Bài giảng Phương pháp lập trình: Chương 9 - GV. Từ Thị Xuân Hiền
36 trang 115 0 0 -
Giáo trình về môn Lập trình C căn bản
131 trang 50 0 0 -
Bài giảng Lập trình hướng đối tượng (dùng JAVA): Chương 1 - Trần Minh Thái
40 trang 42 0 0 -
PHP: The Good Parts: Delivering the Best of PHP- P5
20 trang 37 0 0 -
50 trang 31 0 0