博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CSS Text-Shadow in Safari, Opera, Firefox and more
阅读量:6344 次
发布时间:2019-06-22

本文共 5991 字,大约阅读时间需要 19 分钟。

from:

 

效果显示:   

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:

alpha-filter (2K)

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:

blur-filter (2K)

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:

glow-filter (3K)

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:

dropshadow-filter (2K)

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:

shadow-filter (2K)

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:

wave-filter (2K)

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:

flipv-filter (1K)

FlipH Filter

CSS Code Example:

<span style="FILTER: FlipH; width:200px;font-size:20pt;">FlipH Filter</span>

Result:

fliph-filter (1K)

Possible Parameters:

  • n/a

Chroma Filter

CSS Code Example:

<span style="FILTER: Chroma(Color=#9999cc); width:200px;font-size:20pt;">Chroma Filter</span>

Result:

chroma-filter (1K)

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: ?

grayscale-filter (1K)

Possible Parameters:

  • n/a

Invert Filter

CSS Code Example:

<span style="FILTER: Invert; width:300px;font-size:20pt;background:#eeeeee;">Invert Filter</span>

Result:

invert-filter (1K)

Possible Parameters:

  • n/a

Light Filter

CSS Code Example:

<span style="FILTER: Light; width:200px;font-size:20pt;">Light Filter</span>

Result:

light-filter (1K)

Possible Parameters:

  • n/a

Mask Filter

CSS Code Example:

<span style="FILTER: Mask(Color=#9999cc; width:200px;font-size:20pt;">Mask Filter</span>

Result:

mask-filter (1K)

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:

xray-filter (1K)

Possible Parameters:

 

 

转载地址:http://lmkla.baihongyu.com/

你可能感兴趣的文章
给一系列的div中的第一个添加class
查看>>
centos6.8 安装jenkins
查看>>
vue-cli3.0+node.js+axios跨域请求session不一样的问题
查看>>
C#发送DKIM签名的邮件
查看>>
python中获取字典的key列表和value列表
查看>>
Windows8中使用IE8等低版本浏览器
查看>>
[图形图像]一次光线追踪的尝试
查看>>
C# 中out,ref,params参数的使用
查看>>
玩转VIM编辑器-vim附加特性
查看>>
Ubuntu下有关Java和数据库的一些工作记录(二)
查看>>
java 线程
查看>>
MySql 时间函数
查看>>
解决php收邮件乱码问题
查看>>
linux shell中'',""和``的区别
查看>>
OceanBase数据库实践入门——手动搭建OceanBase集群
查看>>
WPF学习:3.Border & Brush
查看>>
Docker(二):微服务教程
查看>>
关于JAVA项目报表选型过程
查看>>
javascript
查看>>
Spring_MVC
查看>>