码迷,mamicode.com
首页 >  
搜索关键字:document    ( 20024个结果
windows对象 document对象 的一些操作 9.23
函数: 四要素 1.返回类型2.函数名3.参数列表4.函数体 window . 对象 opener 打开当前窗口的源窗口 alert(window.opener); open( ) 例子: 先给他设置一个按钮名。 window.open("第一部分","第二部分","第三部分","第四部分"); 特 ...
分类:Windows程序   时间:2016-09-23 14:33:43    阅读次数:178
dom4j学习总结(一)
dom4j学习总结(一) (一)创建Document的基本操作 /** * xml基本操作 */ public void BaseOperation(){ //创建一个document Document document=DocumentHelper.createDocument(); //创建根结 ...
分类:其他好文   时间:2016-09-23 13:10:28    阅读次数:152
9.22下午 JS\document例题讲解
作业一:两个列表之间数据从一个列表移动到另一个列表 <div style="width:600px; height:500px; margin-top:20px"> <div style="width:200px; height:300px; float:left"> <select id="lis ...
分类:Web程序   时间:2016-09-23 13:01:08    阅读次数:167
如何解决 iOS The document “(null)” requires Xcode 8.0 or later. 不能编译的问题
用文本编辑器打开对应的 xib 文件,删除其中类似这样的一句话 <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> ...
分类:移动开发   时间:2016-09-23 12:52:01    阅读次数:283
9月22日下午Document对象
document对象 一、找元素 1.根据id找 <input type="button" value="找元素" onclick="Show()" /> 示例:function Show() { alert(document.getElementById("a")); } 输出的结果是[objec ...
分类:其他好文   时间:2016-09-23 12:36:01    阅读次数:160
让IE6支持min-width和max-width的方法
正如君所想象的一样,同实现层的fixed一样,用的是expression语句。例如div#demo在: IE6下最小宽度300px: *html div#demo { width:expression((document.documentElement.clientWidth||document.b ...
分类:其他好文   时间:2016-09-23 11:19:44    阅读次数:116
图片点击放大功能
<img src="xxx.jpg" /><script> var flag = true,//状态true为正常的状态,false为放大的状态 imgH,//图片的高度 imgW,//图片的宽度 img = document.getElementsByTagName('img')[0];//图片元 ...
分类:其他好文   时间:2016-09-23 09:50:19    阅读次数:158
document对象
一.找元素 ①getElementById()根据ID找。 ②getElementsByClassName()根据class找,返回数组。 ③getElementsByTagName()根据标签名找,返回数组。 二.操作内容 1.普通元素。包括①innerText获取内容文本。②innerHTML获 ...
分类:其他好文   时间:2016-09-23 08:44:46    阅读次数:131
html css js 时钟 计时器
时钟<!DOCTYPEhtml> <html> <head> <metacharset="utf-8"> <title>菜鸟教程(runoob.com)</title> <script> var_hmt=_hmt||[]; (function(){ varhm=document.createElement("script"); hm.src="http://hm.baidu.com/hm.js?8e2a116daf..
分类:Web程序   时间:2016-09-23 07:40:10    阅读次数:311
iframe子页面,父页面相互调用(同域)
先上代码: 父页面.html 子页面.html 一、父页面调用子页面 1、先得到子页面的document document.getElementById('FrameId').contentWindow.document 2、得到子页面的window document.getElementById( ...
分类:其他好文   时间:2016-09-23 06:32:49    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!