上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 31 下一页
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> * { margin: 0; padding: 0; } .box { width: 300px; height: 50 阅读全文
posted @ 2018-12-03 15:23 lujieting0 阅读(234) 评论(0) 推荐(0) 编辑
摘要: <style> * { margin: 0; padding: 0; } .box { width: 350px; height: 350px; margin: 100px; border: 1px solid #ccc; position: relative; } .big { width: 40 阅读全文
posted @ 2018-12-03 15:01 lujieting0 阅读(370) 评论(0) 推荐(0) 编辑
摘要: * client:可视区域* clientWidth:可视区域的宽(没有边框),边框内部的宽度* clientHeight:可视区域的高(没有边框),边框内部的高度* clientTop:上边边框的宽度* clientLeft:左边边框的宽度 <!DOCTYPE html><html lang="e 阅读全文
posted @ 2018-12-03 15:00 lujieting0 阅读(195) 评论(0) 推荐(0) 编辑
摘要: <style> .wrap{ width:1200px; margin:100px auto; } .slide { height:500px; position: relative; } .slide li{ position: absolute; left:200px; top:0; } .sl 阅读全文
posted @ 2018-12-03 14:58 lujieting0 阅读(211) 评论(0) 推荐(0) 编辑
摘要: <style> ul { list-style: none; } * { margin: 0; padding: 0; } div { width: 1150px; height: 400px; margin: 50px auto; border: 1px solid red; overflow: 阅读全文
posted @ 2018-12-03 14:57 lujieting0 阅读(244) 评论(0) 推荐(0) 编辑
摘要: //计算后的样式属性 一个元素的任意的一个样式属性值function getStyle(element,attr) { //判断这个浏览器是否支持这个方法 return window.getComputedStyle?window.getComputedStyle(element,null)[att 阅读全文
posted @ 2018-12-02 21:03 lujieting0 阅读(214) 评论(0) 推荐(0) 编辑
摘要: //计算后的样式属性 一个元素的任意的一个样式属性值function getStyle(element,attr) { //判断这个浏览器是否支持这个方法 return window.getComputedStyle?window.getComputedStyle(element,null)[att 阅读全文
posted @ 2018-12-02 21:02 lujieting0 阅读(234) 评论(0) 推荐(0) 编辑
摘要: //计算后的样式属性 一个元素的任意的一个样式属性值function getStyle(element,attr) { //判断这个浏览器是否支持这个方法 return window.getComputedStyle?window.getComputedStyle(element,null)[att 阅读全文
posted @ 2018-12-02 21:01 lujieting0 阅读(187) 评论(0) 推荐(0) 编辑
摘要: //匀速动画function animate(element,target) { //清理定时器 clearInterval(element.timeId); element.timeId=setInterval(function () { //获取元素当前位置 var current=elemen 阅读全文
posted @ 2018-12-02 20:52 lujieting0 阅读(200) 评论(0) 推荐(0) 编辑
摘要: <div class="top" id="topPart"> <img src="imgs/top.png" alt=""/></div><div class="nav" id="navBar"> <img src="imgs/nav.png" alt=""/></div><div class="m 阅读全文
posted @ 2018-12-02 20:51 lujieting0 阅读(233) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 31 下一页