IE6绝对定位的bug和解决方法

position:absolute定位在IE6下存在left和bottom的定位错误问题:

, ,

利用CSS等比例缩小图片

图片等比缩放不必需要后台代码的控制,前台CSS技术完全可以几句CSS代码来完成。

, , ,

CSS样式指南:提高CSS的可读性

当完成一项前端的工作之后,许多人都会忘记该项目的结构与细节。然而代码并不是马上就能完全定型,在余下的时间里还有不断的维护工作,而这些工作也许不会是你自己完成。所以,结构优良的代码能很大程度上优化它的可维护性。下面列出五种提高CSS文件可维护性的方法,也就是一种较好的CSS样式指南。

,

挂黑链的利器 – CSS+DIV组合

利用CSS+DIV的组合来做到隐藏代码输出

, , , ,

CSS中背景图片的设置

CSS中背景图片的设置: 不平铺:background-repeat: no-repeat; 横向平铺:background-repeat: repeat-x; 纵向平铺:background-repeat: repeat-y; 固定:background-attachment: fixed; 滚动:background-attachment: scroll; 水平居中:background-position: center; 水平居中并垂直居中:background-position: center center; 根据屏幕大小来显示相应大小的图片 <SCRIPT LANGUAGE=”JavaScript1.2″> <!– Begin if (screen.height >= 768 && screen.width >= 1024) { document.write(“<img src=’1024.jpg’ width=1024 border=0>”); } else { if (screen.height == 600 && screen.width == 800) { document.write(“<img src=’800.jpg’ width=800 border=0>”); } else { document.write(“<img src=’1024.jpg’ [...]

, , ,