Readers: 1495 | Updated: 2007

CSS缩放




预览: http://www.deltatangobravo.com/images/zoom/

代码:

text-small.css
body, div {
 font-size:    x-small;
 voice-family: "\"}\"";
 voice-family: inherit;
 font-size:    small
}

#main {
 width: 450px;
}

h1 {
 background: url(title-small.gif);
 height: 45px;
}

#text-small {
 background: #eee;
 border-bottom: 1px solid #ccc;
 border-right: 1px solid #ccc;
 border-top: 1px solid #ddd;
 border-left: 1px solid #ddd;
 color: #ccc;
}

#text-medium {
 background: #ff9;
 border-bottom: 1px solid #993;
 border-right: 1px solid #993;
 border-top: 1px solid #E4E47D;
 border-left: 1px solid #E4E47D;
 color: #330;
}

#text-large {
 background: #ff9;
 border-bottom: 1px solid #993;
 border-right: 1px solid #993;
 border-top: 1px solid #E4E47D;
 border-left: 1px solid #E4E47D;
 color: #330;
}

#text-medium:hover, #text-large:hover {
 background: #E6E688;
 text-decoration: underline;
}

text-medium.css
body, div {
 font-size:    small;
 voice-family: "\"}\"";
 voice-family: inherit;
 font-size:    medium
}

#main {
 width: 560px
}

h1 {
 background: url(title-medium.gif);
 height: 56px;
}

#text-small {
 background: #ff9 url(images/textsize-back.gif);
 border-bottom: 1px solid #993;
 border-right: 1px solid #993;
 border-top: 1px solid #E4E47D;
 border-left: 1px solid #E4E47D;
 color: #330;
}

#text-medium {
 background: #eee;
 border-bottom: 1px solid #ccc;
 border-right: 1px solid #ccc;
 border-top: 1px solid #ddd;
 border-left: 1px solid #ddd;
 color: #ccc;
}

#text-large {
 background: #ff9 url(images/textsize-back.gif);
 border-bottom: 1px solid #993;
 border-right: 1px solid #993;
 border-top: 1px solid #E4E47D;
 border-left: 1px solid #E4E47D;
 color: #330;
}

#text-large:hover, #text-small:hover {
 background: #E6E688;
 text-decoration: underline;
}

text-large.css
body, div {
 font-size:    large;
 voice-family: "\"}\"";
 voice-family: inherit;
 font-size:    x-large
}

#main {
 width: 700px
}

h1 {
 background: url(title-large.gif);
 height: 70px;
}

#text-small {
 background: #ff9 url(images/textsize-back.gif);
 border-bottom: 1px solid #993;
 border-right: 1px solid #993;
 border-top: 1px solid #E4E47D;
 border-left: 1px solid #E4E47D;
 color: #330;
}

#text-medium {
 background: #ff9 url(images/textsize-back.gif);
 border-bottom: 1px solid #993;
 border-right: 1px solid #993;
 border-top: 1px solid #E4E47D;
 border-left: 1px solid #E4E47D;
 color: #330;
}

#text-large {
 background: #eee;
 border-bottom: 1px solid #ccc;
 border-right: 1px solid #ccc;
 border-top: 1px solid #ddd;
 border-left: 1px solid #ddd;
 color: #ccc;
}

#text-medium:hover, #text-small:hover {
 background: #E6E688;
 text-decoration: underline;
}

 



From The Blogs

Internet Observation

2007
CSS缩放
预览: http://www.deltatangobravo.com/images/zoom/代码:text-small.cssbody, div { font-size:    x-small; v... 查看全文

Internet Observation

2007
CSS按钮的图片替换
根据Mike Rundle 与Seamus P. H. Leahy的css图片替换的扩展技术和WebDesign-L mailing list中发布的一个帖子,我发掘了一个提交按钮和按钮标签的图片替换... 查看全文

Internet Observation

2007
CSS制表符
代码:    body { margin:0; padding:0; font: bold 11px/1.5em Verdana;}h2 { font: bold 14px Verdana, Aria... 查看全文

Internet Observation

2007
用CSS显示百分比
在Amigo,我们看到了百分比条(percentage bar)!该图片就是Jason创作的: 为了将这部分的设计变得更灵动一点,我发现了两个选项; “聪明的”CSS或是“多图像”(Lots of I... 查看全文

Internet Observation

2007
是否在新窗口中打开链接由用户决定
很多网虫都期望off-site链接(链接到其他站点)可以在一个新的窗口中打开。很多时候,桌面上会开着很多窗口,所以网虫开始使用更棒的浏览器。这些浏览器会有更多的选项,让用户掌握主控权。与此同时,W3C... 查看全文

Internet Observation

2007
CSS图像弹出
我在www.stunicholls.myby.co.uk站点上发现了这个效果,我在我的一个房地产网站上也使用过这样的功能。该功能即为弹出图像,和你曾经看到过的使用JavaScript制作出的mouse... 查看全文

Internet Observation

2007
为PDF, ZIP, DOC 链接添加标签
Garret Dimon写了篇关于为什么.PDF链接要加上标注的文章,当然在刚刚开始建立或再设计网站的时候,加上这些标注并不是件难事,但如果要在现有的(大型的)网站上添加“pdfLink”属性的话,就... 查看全文

Internet Observation

2007
基于CSS的导航
预览: http://www.nundroo.com/navigation/代码:

Translator:

Elanso is a professional online platform which provides translation service for corporate or individule clients, opportunities for translation practice and translation jobs, and translation tool/software-download. Our online translators provide about 186 languages' translation service, including Japanese,Korean, French, German, Spanish, etc, among which, 20,000 are English translators. And some big translation service companies in Shanghai, Beijing, Nanjing also registered here.