03 2016 档案

摘要:<div id="abs"> <img id="abs-img" src="img/abs.jpg"/> </div> 1.absolute相对于临近有定位的父元素移动 2.包裹性,当id="abs"的div定位为absolute,该div的大小适应图片大小,全靠图片支撑 3.破坏性,当id="ab 阅读全文
posted @ 2016-03-03 14:27 tu-l 阅读(170) 评论(0) 推荐(0)
摘要:由于浏览器安全模型的同源策略,ajax存在跨域问题。 解决跨域问题: 1.服务器代理 a.com中: 页面 --> $.post( 'http://a.com/proxy.php', ..) proxy.php --> $url="http://b.com/send.php?"; //b.com的接 阅读全文
posted @ 2016-03-01 16:08 tu-l 阅读(120) 评论(0) 推荐(0)