您正在查看 "Css" 分类下的文章
2007年09月10日 星期一 20:20
传统的css总是使用两幅或者更多幅图片才能实现按钮或者层的背景切换效果,这种方法会产生更多的http请求,降低服务器性能。
比较好的方法是用但图片实现背景切换:
a:link, a:visited {
display: block;
width: 127px;
height:25px;
line-height: 25px;
color: #000;
text-decoration: none;
background: #fc0 url(image-rollove |
2007年08月15日 星期三 08:13
将如下代码保存成文件,在FireFox下应为红色,在IE6.0下应为蓝色,在IE7.0下应为绿色。
主要是用* html、*+html来区分IE6、IE7的
<!DOCTYPE html P |
2007年07月19日 星期四 08:15
2007年07月08日 星期日 09:00
<script><!--
if (browseris.mac && !browseris.ie5up)
{
var ms_maccssfpfixup = "styles/owsmac.css";
document.write("<link rel='stylesheet' Type='text/css' href='" + ms_maccssfpfixup + "'>");
}
//--></script> |
2007年07月05日 星期四 23:14
How should a CSS framework be built?
There are several possible ways to go about building a framework, but the most common and arguably the most useful is to abstract your common CSS into individual stylesheets that each cover a particular part of the whole. For example, you may have a stylesheet that sets up the typography and another that handles the mass reset. The beauty of the approach is the ability to selectively includ |
|
|