slide môn học HDJ bài 3 using tables and layers

19 4 0
  • Loading ...
1/19 trang

Thông tin tài liệu

Ngày đăng: 30/11/2016, 22:10

Using Tables and Layers Session Objectives ►Use Tables ►Use Layers ►Insert Multimedia in HTML Documents Layout of a Table Creating Tables Using Tables A single cell table Elements Associated with Table ► … ► … ► … ► … ► … Add Cell Space ►The CELLSPACING attribute defines the space between cells in pixels ►The CELLPADDING attribute defines spaces within the table cell Merging Cells  The COLSPAN and ROWSPAN attributes are used to create cells that span more than one column or row  The COLSPAN attribute is used with the tag, while the ROWSPAN attribute is used with the tag Mergers ►The COLSPAN and ROWSPAN attributes are used to create cells that span more than one row or column ►The COLSPAN attribute is used with the tag, while the ROWSPAN attribute is used with the tag Creating a Table Quarter 1 Quarter 2 Continue header information first row of block one data second row of block one data first row of block two data second row of block two data footer information Formatting Data in the Cell ►Align = left ►Align = center ►Align = right ►Align = justify     Valign Valign Valign Valign = = = = top middle bottom baseline Data Cell 1 10 Introduction to Layers (1) ►We can position an element above or below another element in layers ►The z-order determines the order in which elements are displayed ►A layer is like a frame that can contain content and be positioned wherever required 11 Introduction to Layers (2) ►Internet Explorer supports the CSS model ►When we use style sheets, we can group page elements together in a Cascading Style Sheet ►The style sheet can be applied either to all the elements in an HTML document or only to some of the elements in the document ►The elements can then be controlled through VBScript or JavaScript 12 Using Layers ►Use the tag ►Layers that are created using the tag can also have styles ►If we want to apply the layer style to all the elements within the layer, we can use containing elements like DIV or SPAN 13 Using the tag ►The tag can be used to specify the content and position of HTML content ►We can then use JavaScript to control the layers 14 Creating a layer ►The following code gives an example of the use of the tag ID = “layer1” Layer 1 = 15 Adding Sound ►[...]... JavaScript 12 Using Layers ►Use the tag Layers that are created using the tag can also have styles ►If we want to apply the layer style to all the elements within the layer, we can use containing elements like DIV or SPAN 13 Using the tag ►The tag can be used to specify the content and position of HTML content ►We can then use JavaScript to control the layers 14 Creating...Introduction to Layers (1) ►We can position an element above or below another element in layers ►The z-order determines the order in which elements are displayed ►A layer is like a frame that can contain content and be positioned wherever required 11 Introduction to Layers (2) ►Internet Explorer supports the CSS model ►When we use style sheets,... create an HTML page that loads the applet file into the browser 18 Passing Parameters to Applet ►It is possible to pass parameters to an applet using the tag in the HTML file 19
- Xem thêm -

Xem thêm: slide môn học HDJ bài 3 using tables and layers , slide môn học HDJ bài 3 using tables and layers , slide môn học HDJ bài 3 using tables and layers

Gợi ý tài liệu liên quan cho bạn

Nạp tiền Tải lên
Đăng ký
Đăng nhập