Danh mục tài liệu

Web Programming with HTML, XHTML, and CSS Second Edition- P14

Số trang: 50      Loại file: pdf      Dung lượng: 383.27 KB      Lượt xem: 16      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- P14: Đ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- P14 Appendix C: CSS Properties Value IE N FF Inherited No auto 7 - 1 Default auto [length] 7 - 1 Applies to Block elements [percentage] 7 - 1 inherit - 6 1min-height This specifies the maximum height of a block-level element (same values as for height). td {min-height:100px;} Value IE N FF Inherited No auto 7 - 1 Default auto [length] 7 - 1 Applies to Block-level elements [percentage] 7 - 1 inherit - 6 1min-width This specifies the minimum width of a block-level element (same values as for width). td {min-width:200px;} Value IE N FF Inherited No auto 7 - 1 Default auto [length] 7 - 1 Applies to Block elements [percentage] 7 - 1 inherit - 6 1 621Appendix C: CSS PropertiesMargin Proper ties Margin properties allow you to specify a margin around a box and therefore create a gap between elements’ borders.margin (margin-bottom, margin-left,margin-top, margin-right) This specifies the width of a margin around a box. p {margin:15px;} Value IE N FF Inherited No auto 3 4 1 Default zero [length] 3 4 1 Applies to All elements [percentage — 3 4 1 relative to parent element] inherit - 6 1Padding Proper ties Padding properties set the distance between the border of an element and its content. They are impor- tant for adding white space to documents (in particular table cells).padding (padding-bottom, padding-left,padding-right, padding-top) This specifies the distance between an element’s border and its content. td {padding:20px;} Value IE N FF Inherited No auto 4 4 1 Default zero [length] 4 4 1 Applies to All elements622 Appendix C: CSS Properties Value IE N FF [percentage — 4 4 1 relative to parent element] inherit - 6 1List Proper ties List properties affect the presentation of bulleted, numbered, and definition lists.list-style This is shorthand allowing you to specify list-style-position and list-style-type. ul {list-style: inside disc} Value IE N FF Inherited Yes 4 6 1 Default Depends on browser 4 4 1 Applies to List elements 4 6 1 inherit - 6 1list-style-position This specifies whether the marker should be placed inside each item of a list or to the left of them. ul {list-style-position:inside;} Value IE N FF Inherited Yes inside 4 6 1 Default outside outside 4 6 1 Applies to List elements inherit - 6 1 623Appendix C: CSS Propertieslist-style-type This indicates the type of bullet or numbering that a bullet should use. ul {list-style-type:circle;} Value IE N FF Inherited Yes None 4 4 1 Default ...