上一页 1 ··· 4 5 6 7 8 9 10 下一页
  2016年5月13日
摘要: CSS符号属性: list-style-type:none; /*不编号*/ list-style-type:decimal; /*阿拉伯数字*/ list-style-type:lower-roman; /*小写罗马数字*/ list-style-type:upper-roman; /*大写罗马数 阅读全文
posted @ 2016-05-13 22:18 By_The_Way 阅读(500) 评论(0) 推荐(1)
摘要: 首先打开我的文章,进入编辑状态,选择HTML格式然后就可以输入了,下面我们来看代码,首先来看第一种,比较简单的: <bgsound src="/blog/”url"” loop=-1> “url”依然是路径名,loop表示循环数,-1表示始终循环 来看第二种: <EMBED src="music.m 阅读全文
posted @ 2016-05-13 21:53 By_The_Way 阅读(484) 评论(0) 推荐(0)
  2016年5月11日
摘要: 四、操作样式 首先利用元素的ID找到该元素,存于一个变量中: var a = document.getElementById("id"); 然后可以对该元素的属性进行操作: a.style="" ; 操作此ID样式的属性。 样式为CSS中的样式,所有的样式都可以用代码进行操作。 document.b 阅读全文
posted @ 2016-05-11 21:06 By_The_Way 阅读(155) 评论(0) 推荐(0)
摘要: 1、Window.document对象 一、找到元素: docunment.getElementById("id");根据id找,最多找一个; var a =docunment.getElementById("id");将找到的元素放在变量中; docunment.getElementsByName 阅读全文
posted @ 2016-05-11 21:01 By_The_Way 阅读(238) 评论(0) 推荐(0)
摘要: 补充: 回车符\r和换行符\n的区别:\r 相当于enter,是段落与段落之间的区别, \n 相当于shift+enter,是行与行之间距离,比较小 几种window操作方法: 1、获取当前窗口大小并打印: 2、打开窗口、关闭当前窗口 3、移动当前窗口到某一位置(x,y) 4、改变当前窗口的尺寸(w 阅读全文
posted @ 2016-05-11 20:56 By_The_Way 阅读(139) 评论(0) 推荐(0)
摘要: 1、DOM的基本概念 DOM是文档对象模型,这种模型为树模型;文档是指标签文档;对象是指文档中每个元素;模型是指抽象化的东西。 2、Window对象操作 一、属性和方法: 属性(值或者子对象): opener:打开当前窗口的源窗口,如果当前窗口是首次启动浏览器打开的,则opener是null。 di 阅读全文
posted @ 2016-05-11 20:54 By_The_Way 阅读(148) 评论(0) 推荐(0)
摘要: JavaScript简介 1、它的用法: 在HTML中位置有三块: (1)head里面 (2)body里面 (3)</html>之后 为了保险起见,一般写在</html>之后。 <script language="javascript">代码必须放在这里面</script> 2、三个常用对话框: a 阅读全文
posted @ 2016-05-11 20:49 By_The_Way 阅读(203) 评论(0) 推荐(0)
  2016年5月8日
摘要: 1、背景与前景 background-color:#000; ——背景颜色 background-image:url(路径) ——背景图片 background-attachment:fixed; ——背景是固定的,不随字体滚动 background-attachment:scroll; ——背景随 阅读全文
posted @ 2016-05-08 22:32 By_The_Way 阅读(181) 评论(0) 推荐(0)
  2016年5月5日
摘要: 表格:<table></table> width:宽度。可以用像素值或百分比表示。 border:边框。一般用像素值表示。 cellpadding:内容与单元格边框的边距。用像素值表示。 cellspacing:单元格之间的边距。用像素值表示。 background:背景图片。指定路径 bgcolo 阅读全文
posted @ 2016-05-05 20:04 By_The_Way 阅读(132) 评论(0) 推荐(0)
  2016年5月4日
摘要: 效果图: 代码: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title></head> <body><form><table border="0" cellpad 阅读全文
posted @ 2016-05-04 21:58 By_The_Way 阅读(201) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页