html笔记

来源:互联网 发布:大鼠血数据 编辑:程序博客网 时间:2024/06/06 03:10
<frameset rows="88,*" cols="*" frameborder="no" border="0" framespacing="0">   
  <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
  <frameset cols="187,*" frameborder="no" border="0" framespacing="0">
    <frame src="left.html" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
    <frame src="index.html" name="rightFrame" id="rightFrame" title="rightFrame" />
  </frameset>
</frameset>

framespacing="0" : 表示框架与框架间保留的空白的距离
name="topFrame" : 就是这个frame的名字 你可以通过document.getElementsByName 获取或者frames['topFrame']或者frames.topFrame获取
noresize="noresize": 就是诳街不能拖拉设置大小
id="leftFrame": 就是编个号,你可以通过documetn.getElementById获取这个frame
title="leftFrame": 对这个页面进行描述,鼠标放上去告诉别人这东西干嘛的~

从页面进行划分  rows代表行 上部分 88px  下部分占其余的
然后再上部分放置 top.html
下部分划分 cols代表列 左边187px 右边占其余部分





print() 方法用于打印当前窗口的内容。
调用 print() 方法所引发的行为就像用户单击浏览器的打印按钮。通常,这会产生一个对话框,让用户可以取消或定制打印请求。
例子如下:
<html>
<head>
<script type="text/javascript">
function printpage()
  {
  window.print()
  }
</script>
</head>
<body>

<input type="button" value="Print this page"
onclick="printpage()" />

</body>
</html>



<label>里面只能放一个ridio   =>   <input name="Fruit" type="radio" value=""  name="radio1"/>




<a>标签中  如果有 target=_blank  就表示打开新页面来显示   如右<a href="网址" target=_blank>

0 0
原创粉丝点击