11 2011 档案

摘要:前端开发都知道IE6的BUG太多,用的熟大概也能记住。久久不用就最容易丢,记录下吧。今天遇到的几个:1、PNG背景透明却显灰底。filter : progid:DXImageTransform.Microsoft.Alpha ( enabled=bEnabled , style=iStyle , opacity=iOpacity , finishOpacity=iFinishOpacity , startX=iPercent , startY=iPercent , finishX=iPercent , finishY=iPercent )试过了,没用。原因不明(纯坑爹的)。这个问题http:/ 阅读全文
posted @ 2011-11-25 20:44 zaric 阅读(246) 评论(0) 推荐(0)
摘要:调试一个页面,ie下面页面css样式很是奇怪,各种失效。找了半天原因不知道怎么回事。最后在调试工具中发现,文档模式为quirk,改成别的(IE 7|8|9)正常。为什么会自动选择此文档模式呢?先看看什么是quirk模式,引用一段:http://www.microsoft.com/china/msdn/library/webservices/asp.net/ASPNETusStan.mspx?mfr=true为 Web页指定 DOCTYPE 会影响浏览器呈现页的方式。Internet Explorer、Mozilla Firefox 和 Opera 全都支持一种名为“DOCTYPE 切换”(也叫 阅读全文
posted @ 2011-11-25 13:50 zaric 阅读(4875) 评论(2) 推荐(0)
摘要:用js获取元素定位,发现chrome下,忽略了元素offsetHeight。其他浏览器可以根据子元素的样式计算出父级的高度,盒模型。而chrome则不可以、得为其元素设置高度,才能再通过js获取到offsetHeight。firfox:chrome:设置height由于元素<span>为行内元素,还得添加display:block。chrome:另外一个点,offsetHeight|clientHeight的区别: offsetHeight包含height、padding、scrollBar、border。 clientHeight包含height、padding。 http:// 阅读全文
posted @ 2011-11-24 10:59 zaric 阅读(886) 评论(0) 推荐(0)
摘要:========对于ROOT用户的密码操作(更改用户密码)========刚刚安装完的Mysql,只一有个root用户,密码为空,而且只能在本机登录!为root加上密码xxx123:./bin/mysqladmin -u root password xxx123或写成./bin/mysqladmin -uroot password xxx123加下密码之后,在本进行进入mysql:./bin/mysql -uroot -p更改root的密码由xxx123改为yy1234:./bin/mysqladmin -uroot -pxxx123 password yy1234=======grant 权 阅读全文
posted @ 2011-11-16 13:08 zaric 阅读(998) 评论(0) 推荐(0)