`

多彩文字(Multi Colored Text)

    博客分类:
  • CSS
阅读更多
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="多彩文字,Multi Colored Text" />
<meta http-equiv="Description" content="利用CSS 的 Clip 属性来创造 多彩文字(Multi Colored Text)" />
<meta content="all" name="robots" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="author" content="forestgan" />
<meta name="copyright" content="forestgan" />
<title>多彩文字(Multi Colored Text)</title>
<style type="text/css">

body{
    background: #FFFFFF;
color: #333333;
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;
line-height: 140%;
text-align: center;
padding: 0;
margin: 0;
}

p{
    margin: 0;
}
address{
    font-size: 75%;
}

body,html{
height: 100%;
}
* html, * html body{
overflow: hidden;
}

#top{
min-height: 90%;
overflow: auto;
}

* html #top{
height: 90%;
}
 
#footer{
height: 10%;
background: #CC0000;
color: #FFFFFF;
}

address{
padding-top: 1em;
font-style: normal;
}

a{
text-decoration: none;
}

.textBottom {
color: #333333;
position: absolute;
left: 3em;
top: 1em;
font: 26px "Century Gothic",Arial, Helvetica, sans-serif;
clip: rect(18px auto auto auto);
}

.textTop {
color: #CC0000;
position: absolute;
left: 3em;
top: 1em;
font: 26px "Century Gothic",Arial, Helvetica, sans-serif;
clip: rect(0 auto 18px 0);
}

.container {
width: 28em;
height: 5em;
margin: 1em auto;
position: relative;
background: #F6F6F6;
}

.textTop:hover {
color: #808080;
}

.textBottom:hover {
color: #FF4646;
}
</style>
</head>
<body lang="en">
<div id="top">
  <div class="container"> <a href="#" class="textTop">Cascading Style Sheet </a> </div>
  <p>文字的上半部分</p>
  <div class="container"> <a href="#" class="textBottom">Cascading Style Sheet </a> </div>
  <p>文字的下半部分</p>
  <div class="container"> <a href="#" class="textTop">Cascading Style Sheet </a> <a href="#" class="textBottom">Cascading Style Sheet </a> </div>
  <p>二组文字重合的效果</p>
</div>
<div id="footer">
  <address>
  Design by <a href="http://www.forest53.com">forestgan</a> 本演示采用<a href="http://www.creativecommons.cn/">创作共用授权</a>--署名和非商业用途。
  </address>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-152060-1";
urchinTracker();
</script>
<noscript>google-analytics</noscript>
<script src="http://www.forest53.com/stat/mystat.asp?siteid=1" type="text/javascript"></script>
<noscript>stat.</noscript>
<script language="Javascript">
var now = new Date();
document.write("<img src='http://counter.yesky.com/counter.shtml?CID=54197&AID=-1&refer="+escape(document.referrer)+"&rand="+ now.getTime()  + "&cur="+escape(document.URL)+"' border='0' alt='' width='0' height='0'>");
</script>
<noscript>
<img src="http://counter.yesky.com/counter.shtml?CID=54197&AID=-1&refer=noscriptcounter&cur=noscriptcounter" border='0' width='0' height='0'/>
</noscript>
</body>
</html>
分享到:
评论

相关推荐

    Scroll colored text and bitmaps transparently over a bitmapp

    标题中的"Scroll colored text and bitmaps transparently over a bitmapp"是一个关于在位图背景上透明滚动彩色文本和位图的技术。这个技术通常涉及到图形用户界面(GUI)设计,尤其是涉及用户界面动态效果和视觉...

    Cindy components for all Delphi versions 6.60

    TcyBevel: multi colored bevels. - TcyPanel: runtime resize feature, multi colored bevels, gradient and shadow feature. - TcyAdvPanel: like TcyPanel plus wallpaper feature. - TcyFlowPanel: runtime ...

    web_tree_dynamic_colored_field.zip

    《Odoo中的Web Tree Dynamic Colored Field:列表视图单元格色彩管理》 在Odoo这一强大且灵活的开源企业资源规划系统中,用户界面的交互性和可读性至关重要。"web_tree_dynamic_colored_field"模块是Odoo社区(OCA...

    MACD_Colored_v103 - MetaTrader 4脚本.zip

    **MACD Colored v103 - MetaTrader 4 脚本详解** MACD(Moving Average Convergence Divergence)即移动平均收敛发散,是金融市场上广泛使用的趋势跟踪和动量指标。它通过比较两个不同周期的指数移动平均线(EMA)...

    Internal-Colored.shader

    各种unity shader教程需要的脚本资源。使用时在本地Asset目录下建立一个Hidden目录,然后把shader脚本放进去就可以了

    A modified region growing algorithm for multi-colored image object segmentation

    A hybrid algorithm based on seeded region growing and k-means clustering was... Experimental results show that the proposed method is suitable for segmentation of multi-colored object, while conventional

    PyPI 官网下载 | colored-1.3.3.tar.gz

    《PyPI官网下载 | colored-1.3.3.tar.gz:深入解析Python色彩库colored》 在Python编程中,为了提升终端输出的可读性和美观性,有时我们需要为文本添加颜色。PyPI(Python Package Index)是Python开发者的重要资源...

    OmoaPowerPoint[Colored].pptx

    【OmoaPowerPoint[Colored].pptx】是一个多彩多姿的PowerPoint模板,适合用于各类商业或专业场合,如管理信息化的演示文稿。这个模板设计精良,包含了多个用途广泛的幻灯片,可以帮助用户高效地制作引人入胜的演讲...

    poj 2978 Colored stones.md

    poj 2978 Colored stones.md

    Create a fancy colored form.

    在IT行业中,创建一个“fancy colored form”通常是指利用编程语言和图形用户界面(GUI)工具来设计具有独特颜色风格的表单或窗口。在这个过程中,开发者会使用各种控件和图形处理技术来增强用户体验,使应用程序更...

    Constrained Local Graph Clustering by Colored Random Walk.pdf

    3. 颜色标记机制(Colored Labeling Mechanism): 颜色标记机制指的是为种子节点分配颜色标签的过程,旨在表示节点间的相似性或关联性。在本文中,相同颜色代表同一社区的成员,不同颜色代表不同社区的成员。这种...

    Colored Trails-开源

    "Colored Trails"是一个开源项目,旨在为研究人员和开发者提供一个平台,用于探索和分析团队中人类决策者与计算机系统之间的交互。这个平台的核心目的是增进我们对混合智能体(human-agent teams)的理解,这些智能...

    Python库 | colored_logs-0.2-py3-none-any.whl

    《Python库colored_logs的深度探索》 在Python开发中,日志记录是不可或缺的一部分,它帮助开发者跟踪程序运行状态,排查错误。今天我们要探讨的是一个名为`colored_logs`的Python库,它为我们的日志输出带来了色彩...

    (Colored ICP算法)ICCV2017_Colored Point Cloud Registration Revisit

    总结来说,ICCV2017论文"Colored Point Cloud Registration Revisited"提出了一个新的点云配准算法,它通过结合光度和几何信息,增强了ICP的稳定性和准确性。这种方法对于处理来自现代深度传感器的带色点云尤其有用...

    bm3d_wiener_colored_noise.mexw32

    bm3d_wiener_colored_noise.mexw32

    RichView 11.0.2 RichView

    Components support various character attributes (fonts, subscripts/superscripts, colored text background, custom drawn). Documents can contain tables, pictures, images from imagelists, arbitrary ...

    TRichView v16.0.0 for D4-XE10 x86-x64 Full Source

    Components support various character attributes (fonts, subscripts/superscripts, colored text background, custom drawn). Documents can contain tables, pictures, images from imagelists, any Delphi ...

Global site tag (gtag.js) - Google Analytics