TAILIEUCHUNG - adobe dreamweaver cs5 on demand part 38

Làm việc với ID Selectors CSS nâng cao phong cách xác định lại các định dạng cho một sự kết hợp đặc biệt của các nguyên tố, hoặc chọn các hình thức khác như được cho phép bởi CSS (ví dụ, bộ chọn td h2 áp dụng bất cứ khi nào một tiêu đề h2 xuất hiện trong một ô của bảng). Điều này được thực hiện thông qua sự kết hợp của phong cách các thẻ HTML thông qua thuộc tính ID và selectors ID | Working with ID Selectors CSS Advanced styles redefine the formatting for a particular combination of elements or for other selector forms as allowed by CSS for example the selector td h2 applies whenever an h2 header appears inside a table cell . This is accomplished through the association of styles to HTML tags through ID attributes and ID selectors. ID attributes in HTML tags uniquely identify that tag with a name. Styles can be linked to that ID just like they can with classes. The big difference is that ids cannot be used on more than one tag. This also means that style definitions for ids only relate to one tag per page. You should never run into the need to apply an ID selector more than once. Should you need to use an ID selector on more then one occasion in any given page you will need to re-plan your CSS. For example an ID can be applied to the h1 tag of a document containing heading text. The tag will be given the ID master-heading indicating that it is the sole and primary heading of the page. As such it will also receive a unique style. Advanced styles can also redefine the formatting for tags that contain a specific id attribute for example the styles defined by myStyle user defined apply to all tags that contain the attribute-value pair id myStyle . The following example is an ID selector MyID color 0033ff The primary difference between a Class and ID selector is that the first character is a hash or pound sign . Creating advanced styles also helps when Web pages are converted into text documents. For example if ID s are selected for various heading body and sub text these unique names can be used to help convert the Web text to print text. In addition to ID selectors CSS specifications refer to link styles as Pseudo-classes. These are special classes that describe styles for elements that only apply under certain circumstances. For example the four default pseudo-classes you will find in the Advanced menu are a link. Describes any hyperlink that .

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.