TAILIEUCHUNG - Professionali Phone and iPod touch Programming phần 8

Một khi bạn thiết lập fillStyle hoặc strokeStyle, nó trở thành giá trị mặc định cho tất cả các hình dạng mới trong vải cho đến khi bạn phân công lại nó. Bạn cũng có thể sử dụng RGBA (r, g, b, a) để gán một giá trị alpha hình dạng bạn đang lấp đầy. Các thông số r, g, và b có một giá trị số nguyên từ 0-255, | Chapter 8 Enabling and Optimizing Web Sites for iPhone and iPod touch Transform a Site to an iPhone iPod touch Design Once you decide to create a companion site specifically for Mobile Safari users you have to decide how existing content best fits inside of an iPhone and iPod touch UI design. You need to determine whether you want to create your own custom design or model after the standard edge-to-edge navigation. See Chapters 2 and 3 for more on UI design. The edge-to-edge design scheme works well for many Web sites as you ll see here. As a case study you ll turn once again to the Operation Classroom Web site the homepage of which is shown in Figure 8-18. Several aspects of this site lend itself to using the edge-to-edge navigation UI. First the site hierarchy could be easily converted to a series of nested list items. Second the news entries and quick links entries also work great as lists. News entries Top menu Quick links section Figure 8-18 Operation Classroom homepage Using the iUI framework and the cUI extension see Chapter 7 you ll create a new HTML page containing the top-level menu. Here s the initial code body -- Top iUI toolbar -- div class toolbar h1 id pageTitle h1 200 Chapter 8 Enabling and Optimizing Web Sites for iPhone and iPod touch a id backButton class button href a div -- Top-level menu -- ul id home title OC for iPhone selected true li a href news News a li li a href quick-links Quick Links a li li a href schools-programs Schools and Programs a li li a href workteams Workteams a li li a href shipping Shipping a li li a href supplies Supplies a li li a href resources Resources a li li a href about About OC a li li a href target _self Return to Regular Web Site a li ul body The top list items include both the top-level links from the regular site along with news entries quick links as well as a link back to the regular Web site. Figure 8-19 shows the top-level menu when displayed on the iPhone. Figure 8-19 OC for iPhone iPod touch .

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.