TAILIEUCHUNG - Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P5

Tham khảo tài liệu 'creating applications with mozilla-chapter 4. css in mozilla applications-p5', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 4. CSS in Mozilla Applications-P5 . Creating Styles for the xFly Buttons Now that you have created a single custom style for the xFly application you can see how easy it is to associate cascading style rules with any element in your interface. The next logical step is to style the buttons in the xFly sample application since they make up such a large portion of the interface itself. When you use the button widget without any extra style information you already get a lot of the button-like presentation and behavior. The button has different looks for example when you hover over it and when you click it and it has a basic three-dimensional shape as seen in Figure 4-9. Figure 4-9. XUL button with no style A common update to regular XUL buttons is to give them images like the navigation buttons in the main Mozilla browser window. Adding the classbased style rule in Example 4-10 to the xFly stylesheet and of course the GIF image itself to the skin subdirectory will give all the fly buttons background images with flies in them. Example 4-10. Custom styles for buttons list-style-image url chrome xfly skin disabled true list-style-image url chrome xfly skin hover list-style-image url chrome xfly skin . Describing the Skin in RDF As described in Chapter 6 a manifest must accompany and describe the skin so it can be found and registered. The manifest is an RDF file called that sits at the highest level of the skin . at the top of the JAR or immediately under the modern directory when extracted to disk . Since the content skin and locale of an application are considered different packages each must have its own manifest. The listing in Example 4-11 shows the manifest that accompanies the xFly skin resources in the skin directory. Example 4-11. Skin manifest for the xFly sample xml version RDF RDF xmlns RDF http 1999 02 .

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.