//jquery $(document).ready(function(){ $(window).scroll(function() { $(this).scrollTop() > 10 ? $("#login-bar").slideUp(100): $("#login-bar").slideDown(100) }); } );…
Questions: has anyone ever seen this before? all my icons in my ribbon have disappeared. I'm using my own custom master page based on the minimal, all my ribbon code looks correct.. Answers: I created a custom master page for SharePoint 2013 and had…
auto auto 总是试图充满父元素 margin有四个值: All the margin properties can have the following values: auto - the browser calculates the marginlength - specifies a margin in px, pt, cm, etc.% - specifies a margin in % of inherit - specifies that the margin should…
w禁用js访问特定cookie. https://codeigniter.com/userguide3/helpers/cookie_helper.html $this->load->helper('cookie'); Available Functions The following functions are available: set_cookie($name[, $value = ''[, $expire = ''[, $domain = ''[, $path = '/'[, $pr…
Top 10 JavaScript errors javascript errors https://rollbar.com/blog/tags/top-errors https://rollbar.com/blog/top-10-javascript-errors/ TypeError RangeError ReferenceError SyntaxError InternalError URIError Warning EvalError JavaScript Errors https://…
本文转载于张鑫旭博客,原文地址:http://www.zhangxinxu.com/wordpress/?p=4552 一.水平居中布局与滚动条跳动的千年难题 当前web届,绝大多数的页面间布局都是水平居中布局,主体定个宽度,然后margin: 0 auto的节奏~ 例如,妇女之友大淘宝的首页: 然而,这种布局有一个存在一个影响用户体验的隐患.应该都知道,现代浏览器滚动条默认是overflow:auto类型的,也就是如果尺寸不足一屏,没有滚动条:超出,出现滚动条.于是,问题来了: 信息流页面,如…
在navigation bar中是没有设置它的隐藏和显示的属性的 那么究竟在什么地方呢,当在它自身的属性中没有找到的情况下,那么就只能去包含它的容器中去寻找了,结果果然找到了.在view的第四个选择器的Simulate Metric中会看到Top的属性,将inferred的值改为none便可以了,如下图所示: (同理可以在这里设置Orientation和Bottom Bar的属性值)…
现代浏览器滚动条默认是overflow:auto类型的,也就是如果尺寸不足一屏,没有滚动条:超出,出现滚动条.于是,问题来了: 信息流页面,如新浪微博,是从上往下push渲染的.开始只有头部一些信息加载,此时页面高度有限,没有滚动条:然后,更多内容显示,滚动条出现,占据可用宽度,margin: 0 auto主体元素自然会做偏移——跳动产生. JS交互,本来默认页面高度不足一屏,结果点击了个“加载更多”,内容超过一屏,滚动条出现,页面主体就会左侧跳动. 结构类似几个页面通过头部的水平导航刷新切换,…
1 margin margin 是外边距的意思,是边框到外部另一元素之间的距离,允许使用负值 语法结构: margin:5px auto;                  意思上下为5,左右平均居中 margin-top: 20px;                 上外边距 margin-right: 30px;               右外边距 margin-bottom: 30px;           下外边距 margin-left: 20px;                 …
$(":div[name=div_edit]").each(function() { $(this).hover(function() { $(this).find(">div:first-child").hide(); $(this).find(">div:last-child").show(); }, function() { $(this).find(">div:first-child").show()…