亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

HTML DOM cols 屬性

定義和用法

cols 屬性可設(shè)置或返回框架集中列的數(shù)目和尺寸。

由逗號分割的像素或百分比列表定義了列的數(shù)目和寬度:

語法

framesetObject.cols=col1,col2,col3....

實例

在我們的例子中,首先將創(chuàng)建包含帶有兩個列的框架集的 HTML 文檔。每列設(shè)置為瀏覽器窗口的 50%:

<html>
<frameset cols="50%,50%">
  <frame src="frame_cols.htm">
  <frame src="frame_a.htm">
</frameset>
</html>

HTML 文檔 "frame_cols.htm" 被放入第一列,而 HTML 文檔 "frame_a.htm" 被放入第二列。

下面是 "frame_cols.htm" 的源代碼:

<html>
<head>
<script type="text/javascript">
function changeCols()
  {
  parent.document.getElementById("main").cols="30%,70%"
  }
  
function restoreCols()
  {
  parent.document.getElementById("main").cols="50%,50%"
  }
</script>
</head>
<body>

<input type="button" onclick="changeCols()"
value="Change column size" />
<input type="button" onclick="restoreCols()"
value="Restore column size" />

</body>
</html>