摘要:
PNG 半透明:CSS 滤镜filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png', sizingMethod='scale');注意点:使用了scale, 这个会适应元素宽度,所以需要设置固定的高度或宽度filter是应该避免的,所以避免index transparent外的 PNG 透明元素IE6 默认支持index transparent 的 PNGsrc的路径相对于当前文档来说的,不过,我们一般用绝对路径,就没什么问题了语法:filter : progid:DXI 阅读全文
摘要:
min/max height/widget方法:这个东西还是用JS解决吧,除 min-height,CSS 方法还不是那靠谱:/* min-height */.min-height:200px;height:auto;_height:200px; /* hack for ie6 */JS 方法:max Heightfunction setMaxHeight(elementId, height){ var container = document.getElementById(elementId); container.style.height = (container.scroll... 阅读全文
摘要:
一般情况下,链接的 outline 可以不去除。如果 outline 形状极丑陋的情况下,视觉效果很差,则使用些方法:IE 添加 HTML 属性 hidefocus=”true”Firefox按钮/* for Firefox */input[type=submit]::-moz-focus-inner,input[type=button]::-moz-focus-inner{ border : 0px;}/* for IE8 */input[type=submit]:focus, input[type=button]:focus{ outline : none;} 阅读全文