2012-04-19 14:21 by iBlog, 阅读(1407) 阅读, 推荐(0) 推荐, 收藏, 编辑
摘要:在IE浏览器下,google地图上触发dragend事件时click也会被触发,在FIREFOX,CHROME上均不会出现这样的情况。gmaps-api-issues上有人报BUGIssue4072:Bug: Dragend Event also trigger Click Event in IE在stackoverflow上有一个解决方法:http://stackoverflow.com/questions/10099961/google-map-bug-dragend-event-also-trigger-click-event-in-ie我呢,外打正着,在dragend事件处理函数中,加 阅读全文
2012-04-04 19:53 by iBlog, 阅读(755) 阅读, 推荐(0) 推荐, 收藏, 编辑
摘要:FROMhttp://techxplorer.com/2011/10/04/resize-a-google-map-dynamically/Last year Igrappled with the issueof how to resize a google map dynamically. With my work on theMARQues projectI’ve needed to work through the same issue again, although this time a little differently.My user interface design for 阅读全文
2012-03-14 15:43 by iBlog, 阅读(3364) 阅读, 推荐(3) 推荐, 收藏, 编辑
摘要:译自:http://css-tricks.com/efficiently-rendering-css/无可否认我并不经常考虑这个问题… 我们书写的CSS的效率如何,浏览器渲染它的速度如何?浏览器的开发者肯定关心这个问题(页面加载越快,人们用着越开心)。Mozilla有篇文章 about best practices。Google同样致力于让web更快,他们也有篇文章article about it。先来了解一下他们提出的主要想法,然后讨论其实用性。#从右至左#弄明白浏览器是怎样解读CSS选择器的重要一件事情是:浏览器按“从右向左”读取。意味着在选择器 ul > li a[title=&q 阅读全文
2012-03-07 21:39 by iBlog, 阅读(1587) 阅读, 推荐(4) 推荐, 收藏, 编辑
摘要:箭头在调试页面的时候,发现select,input等元素在chrome浏览器下莫名的多了margin:2px,具体看图吧!stackoverflow上的提问中也类似的(应该是margin,好想提问的时候被说成了padding),如下:Firefox 4.0.1:adds no padding to the elementsChrome 11.0.696.68:adds 2px padding to top and left on input fields, but only 2px to top on select-elementsSafari 5.0.3:adds 2px paddin... 阅读全文