上一页 1 ··· 3 4 5 6 7
摘要: 在用百分比布局时经常要用到像素,好像一个border:1px solid red,你不可能写成border:0.1% solid red所以修正他的方法是在这个div上加下面的样式,他会帮你处理像素,你只需要布好你的百分比就可以 box-sizing: border-box; -web... 阅读全文
posted @ 2015-01-19 10:52 Mi文 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 当我们要给一个页面自适应,所有的都要用上百分比的时候,往往给最外面div加百分比时无效,究其原因是它是相对父级的,外层(父级)的元素必须指定height(百分比) 阅读全文
posted @ 2015-01-19 10:49 Mi文 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 无标题文档 阅读全文
posted @ 2015-01-18 19:06 Mi文 阅读(137) 评论(0) 推荐(0) 编辑
摘要: border-radius:5px; border:solid 2px #666; display:none; box-shadow: 0 0 10px #666; 阅读全文
posted @ 2015-01-18 18:52 Mi文 阅读(120) 评论(0) 推荐(0) 编辑
摘要: width:500px; height:580px; z-index:2; position:fixed; top:50%; left:50%; margin:-295px 0 0 -250px; 阅读全文
posted @ 2015-01-18 18:51 Mi文 阅读(183) 评论(0) 推荐(0) 编辑
摘要: bblr:expression(this.onFocus=this.blur()); outline-style:none; 阅读全文
posted @ 2015-01-18 18:50 Mi文 阅读(94) 评论(0) 推荐(0) 编辑
摘要: if(!$(this).data('fadeOut')){ $(this).data('fadeOut',true); ....... }这里用data也可以用class 阅读全文
posted @ 2015-01-18 18:48 Mi文 阅读(207) 评论(0) 推荐(0) 编辑
摘要: iframe和img一样都是有 onload事件,访问子级首要添加的是他的onload事件,在测试方面chrome浏览器认为是跨域了要在本地部署一个服务器,其它浏览器就不存在这个问题document.getElementById('iframe').onload=function(){var ifr... 阅读全文
posted @ 2015-01-18 18:42 Mi文 阅读(316) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7