TAILIEUCHUNG - Lập trình iphone chuyên nghiệp part 6

S tyling with CSS Giống như Mac và Windows người anh em họ, Mobile Safari cung cấp một số hỗ trợ CSS tốt nhất của tất cả các trình duyệt Web. Khi bạn phát triển ứng dụng iPhone và iPod touch, bạn có thể sử dụng CSS để làm cho giao diện người dùng mạnh mẽ | Styling with CSS Like its Mac and Windows cousins Mobile Safari provides some of the best CSS support of all Web browsers. As you develop iPhone and iPod touch applications you can utilize CSS to make powerful user interfaces. Mobile Safari provides support for several of the more advanced -webkit - styles that are not part of the W3C CSS standard. A -webkit- prefix is added to the names of these properties. For a normal Web application developers will typically stay away from these experimental properties or at least not rely upon them for their application s design. However because you know that an iPhone and iPod touch user will be using Mobile Safari you can safely use these more advanced styles as you create your UI. CSS Selectors Supported in Mobile Safari Many would contend that the real power of CSS is not so much in the properties that you can apply but in CSS s ability select the exact elements within a DOM that you want to work with. If you have worked with CSS before you are probably well familiar with the standard type class and id selectors. However Mobile Safari provides selector support that includes many new selectors that are part of the CSS3 specification. Table 4-1 lists a set of CSS selectors that Mobile Safari provides support for while Table 4-2 lists the set of pseudo-classes and pseudo-elements that Mobile Safari works with. Note that the following CSS3 selectors are not supported with Mobile Safari last-child only-of-type only-child nth-of-type nth-child nth-last-of-type nth-last-child empty last-of-type Chapter 4 Styling with CSS Table 4-1 Mobile Safari CSS Selectors Selector Definition E Type selector .class Class selector id ID selector Universal selector all elements E F Descendant selector E F Child selector E F Adjacent sibling selector E F Indirect adjacent selector E attr attr is defined E attr val attr value matches val E attr val One of many attribute value selectors6 E attr val attr value is a hyphen-separated list and begins .

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.