码迷,mamicode.com
首页 >  
搜索关键字:document    ( 20024个结果
IFRAM随内部长宽高变化
<iframe src="" id="iframe_CustomerVisitRecord" width="700" height="300" frameborder="0" scrolling="auto"></iframe> $(window.parent.document).find("#if
分类:其他好文   时间:2016-02-24 19:11:23    阅读次数:203
CSS常见问题及兼容性
CSS常见问题1 (IE6,7)H5标签兼容 解决方法1:(只显示核心代码) 1<script> 2 //通过js动态的去创建H5标签 3 document.createElement("header"); 4 document.createElement("section"); 5 documen
分类:Web程序   时间:2016-02-24 17:31:35    阅读次数:307
DOM
D:document 文档对象模型 O: Object是一种自足的数据集合 用户定义对象 内建对象:JavaScript提供的对象 宿主对象: 浏览器提供的对象 window对象对应浏览器本身,其属性和方法统称为BOM,浏览器模型对象 M : Model 节点树模型 3.4 节点 文档是由节点构成的
分类:其他好文   时间:2016-02-24 13:55:55    阅读次数:201
iframe实现Ajax文件上传效果示例
<!doctype html> <html> <head> <meta charset=utf-8> <head> <title>ajax 文件上传~~</title> </head> <script> window.onload=function(){ var form=document.getE
分类:Web程序   时间:2016-02-24 12:38:02    阅读次数:162
使用CDN加载jQuery类库后备代码
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script>!window.jQuery && document.write(unescape('%3Cscript
分类:Web程序   时间:2016-02-24 12:34:11    阅读次数:203
JQuery获取浏览器窗口的可视区域高度和宽度,滚动条高度
alert($(window).height()); //浏览器时下窗口可视区域高度 alert($(document).height()); //浏览器时下窗口文档的高度 alert($(document.body).height());//浏览器时下窗口文档body的高度 alert($(doc
分类:Web程序   时间:2016-02-23 20:50:53    阅读次数:213
取消图片的默认事件
//取消图片的默认行为 $(function(){ var $img = $("img"); var moving = function(event){ //something } var img = document.getElementsByTagName('img'); //IE下需要在doc
分类:其他好文   时间:2016-02-23 20:48:32    阅读次数:286
jQuery中filter(),not(),split()的用法
filter(),not(): <script type="text/javascript"> $(document).ready(function() { //输出 hello alert($("p").filter(".selected").html()); //输出 How are you?
分类:Web程序   时间:2016-02-23 18:51:08    阅读次数:159
jQuery循环table里面的每一条数据
$(document).ready(function () { var istype = false; //找到主table var tableobj = document.getElementById("ContentPlaceHolder1_HotelUpgrade1_dlCity"); //循
分类:Web程序   时间:2016-02-23 18:34:44    阅读次数:183
ecshop如何去除后台左侧云服务中心菜单
介绍一下如何去除后台云服务中心菜单: 打开admin/templates/menu.htm,把539行的 document.getElementById("menu-ul").innerHTML = document.getElementById("menu-ul").innerHTML+ resu
分类:其他好文   时间:2016-02-23 13:18:47    阅读次数:136
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!