CSS Text-Shadow in Safari, Opera, Firefox and more
from: http://maettig.com/code/css/text-shadow.html
http://www.css3.info/preview/text-shadow/
http://www.w3.org/Style/Examples/007/text-shadow
http://www.ssi-developer.net/css/visual-filters.shtml
效果显示: http://www.dusystem.com/shizhenghuayuan.html
Multiple Shadows
Safari 3 supported one shadow only. Only the first shadow was displayed. Safari 4 supports multiple shadows. Opera 9.5 supported at most six shadows. Later, this limitation was dropped. Please note that Opera painted the shadows in the wrong order. This was fixed in Opera 10.5.
text-shadow: -1px -1px #666, 1px 1px #FFF;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 1px 1px 3px #666, -1px -1px 3px #FFF, 1px 1px #666, -1px -1px #FFF;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 0 -1px #000, 1px 0 #000, 0 1px #000, -1px 0 #000;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 1px 0 #F33, -1px 0 #33F;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 2px 0 4px #600, -2px 0 4px #006;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 0 6px 4px #33F, -3px -5px 4px #F00, 3px -5px 4px #0F0;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 0 0 24px #C00, 0 0 4px #C00, 1px 1px 2px #333;
Text shadows were defined in 1997 and became applicable in 2009
Classical Shadows
text-shadow: 1px 1px 2px #999;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 2px 2px 3px #999;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 0 0 8px #000;
Text shadows were defined in 1997 and became applicable in 2009
Glowing Borders
text-shadow: 0 0 11px #0F0;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 0 0 5px #FF0;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 0 0 3px #F90;
Text shadows were defined in 1997 and became applicable in 2009
Unusual Effects
text-shadow: 0 7px 11px #390;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 0px -15px 0 #F00;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 0 0 11px #FF6;
Text shadows were defined in 1997 and became applicable in 2009
text-shadow: 0 0 8px #000;
Text shadows were defined in 1997 and became applicable in 2009
Alpha Filter
CSS Code Example:
<span style="FILTER: Alpha(Opacity=80, FinishOpacity=70, Style=2); font-size:20pt;">Alpha Filter</span>
Result:
Possible Parameters:
- Opacity 0 (fully transparent) - 100 (fully opaque)
- Finishopacity 0 (fully transparent) - 100 (fully opaque)
- Style shape characteristics of opacity gradient. 0 (uniform), 1 (linear), 2 (radial), 3 (rectangular)
- startX X coordinate for opacity gradient to start
- startY Y coordinate for opacity gradient to start
- finishX X coordinate for opacity gradient to end
- finishY Y coordinate for opacity gradient to end
Blur Filter
CSS Code Example:
<span style="filter: blur(add=false, direction=135, strength=6); font-size:20pt;width:200px;">Blur Filter</span>
Result:
Possible Parameters:
- Add whether to add the original image to the motion-blurred image. True=added, False=not added.
- Direction direction of the blur basically, in 45 degree increments from 0(top) clockwise to 315 (top left).
- Strength in pixels how much the blur will extent. Default is 5.
Glow Filter
CSS Code Example:
<span style="FILTER: Glow(Color=#ff0000, Strength=8); width:200px;font-size:20pt;">Glow Filter</span>
Result:
Possible Parameters:
- Color colour for the shadow effect. Hex value.
- strength intensity of the glow effect. 1 - 255. Gets away from "glow" at high values.
Drop Shadow Filter
CSS Code Example:
<span style="FILTER: DropShadow(Color=#0066cc, OffX=5, OffY=-3, Positive=1);width:300px;font-size:20pt;">DropShadow Filter</span>
Result:
Possible Parameters:
- Color colour for the drop shadow effect. Hex value.
- offX number of pixels shadow is offset in x-axis
- offY number of pixels shadow is offset in y-axis
- positive non-zero value create drop shadow for any non-transparent pixel, false or zero value creates shadow for any transparent pixel in visual object.
Shadow Filter
CSS Code Example:
<span style="FILTER: Shadow(Color=#00cc66, Direction=45);width:200px;font-size:20pt;">Shadow Filter</span>
Result:
Possible Parameters:
- color colour of the shadow. Hex value.
- direction directional offset of the shadow in 45 degree increments between 0 and 315 degrees.
Wave Filter
CSS Code Example:
<span style="FILTER: Wave(Add=1, Freq=2, LightStrength=30, Phase=20, Strength=7); width:200px;font-size:20pt;">Wave Effect</span>
Result:
Possible Parameters:
- add true (non-zero) adds waved effect to original, false (zero) does not.
- freq number of waves in visual area.
- lightstrength strength of light in wave effect from 0 - 100.
- phase wavelength at which offset should start from 0 - 360.
- strength intensity of wave effect.
FlipV Filter
CSS Code Example:
<span style="FILTER: FlipV; width:200px;font-size:20pt;">FlipV Filter</span>
Result:
FlipH Filter
CSS Code Example:
<span style="FILTER: FlipH; width:200px;font-size:20pt;">FlipH Filter</span>
Result:
Possible Parameters:
- n/a
Chroma Filter
CSS Code Example:
<span style="FILTER: Chroma(Color=#9999cc); width:200px;font-size:20pt;">Chroma Filter</span>
Result:
Possible Parameters:
- Color Value of the color to be subject to chromakey transparency. Hex value.
Grayscale Filter
CSS Code Example:
<span style="FILTER: Gray; width:300px;font-size:20pt;">Grayscale Filter</span>
Result: ?
Possible Parameters:
- n/a
Invert Filter
CSS Code Example:
<span style="FILTER: Invert; width:300px;font-size:20pt;background:#eeeeee;">Invert Filter</span>
Result:
Possible Parameters:
- n/a
Light Filter
CSS Code Example:
<span style="FILTER: Light; width:200px;font-size:20pt;">Light Filter</span>
Result:
Possible Parameters:
- n/a
Mask Filter
CSS Code Example:
<span style="FILTER: Mask(Color=#9999cc; width:200px;font-size:20pt;">Mask Filter</span>
Result:
Possible Parameters:
- color colour of the transparent regions. Hex value.
X-Ray Filter
CSS Code Example:
<span style="FILTER: Xray; width:200px;font-size:20pt;background:#eeeeee;">X-Ray Filter</span>
Result:
Possible Parameters:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
2009-10-21 CSS Menu Design书目录式的WEB页面