来自 CSS Gradient Text Effect的效果,我记得去年就见过,但blog里面找不到,再发。
背景变红看这里就看清楚了! 背景变黑
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
原理很简单,在文字上面放一个png(32位)透明的图片。ie 7 以下使用 AlphaImageLoader 滤镜。
如果嫌 span 太不 sematic 的话,可以用 js 方法加入。比如用 jquery
$(document).ready(function(){
//prepend span tag to H1
$("h1").prepend("");
});
相关日志:
css 图片渐大效果
CSS 破碎文字效果
CSS 彩虹效果
纯 css 效果的 image hover
CSS 文字效果
Lightbox JS 不错的js+css图片显示效果
用 CSS 模拟的frame 框架效果
纯css制作表头锁定效果!
CSS 阴影标题
更多 关于css的日志
This entry was posted on Saturday, January 19th, 2008 at 4:49 pm and is filed under css. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Name (required)
Mail (will not be published) (required)
Website
Notify me of followup comments via e-mail