TAILIEUCHUNG - Web design creating cool web sites with html xhtml and css phần 8

Bạn đã quen thuộc với ý tưởng rằng một loạt các container lồng nhau bao quanh một yếu tố được đưa ra trên trang web của bạn, Đơn giản chỉ cần tưởng tượng rằng bạn muốn có một phương pháp tham khảo đặc biệt với bất kỳ các yếu tố trong các container, và bạn thấy rằng điều này ký hiệu dấu chấm | Chapter 12 Advanced Cascading Style Sheets You re already familiar with the idea that a series of nested containers surrounds a given element on your Web page right Simply imagine that you now want a method of referring uniquely to any of the elements in any of the containers and you see that this dot notation that is separating elements with a period makes sense. In fact by using a unique ID value all you really have in the preceding line is the following This line refers uniquely to the container paragraph that you designate as holmesl on the Web page. After you initially specify a unique element you can access a wide variety of different attributes of that container by further utilizing the dot notation. To get to visibility you must use the .style element and then specify the exact name of the attribute that you want. Conceptually it s as follows unique container After you specify the visibility attribute of the style of the holmesl paragraph you can change its value by using a simple assignment statement in JavaScript as follows visible I hope that makes a bit more sense. If you can t get the examples in this session to work perhaps your Web browser is tip using an older document model. If that s the case try using . visibility visible instead. JavaScript is all eventbased so to test this snippet of code I m going to associate the reassignment of visible to a simple event that occurs on all Web pages onload. After you specify this event in the body tag of a page onload enables you to easily specify JavaScript to execute as soon as the Web browser receives every element of the page from the network. Inline JavaScript looks a little bit different from inline CSS because you don t have a single attribute that you always use style. Instead you list the desired event with the associated JavaScript code on the right-hand side of the statement. The body tag of your .

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.