惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
腾讯CDC
WordPress大学
WordPress大学
爱范儿
爱范儿
GbyAI
GbyAI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
Recent Announcements
Recent Announcements
Latest news
Latest news
Last Week in AI
Last Week in AI
V2EX - 技术
V2EX - 技术
I
InfoQ
N
News | PayPal Newsroom
SecWiki News
SecWiki News
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
H
Hacker News: Front Page
S
SegmentFault 最新的问题
TaoSecurity Blog
TaoSecurity Blog
V
Visual Studio Blog
Martin Fowler
Martin Fowler
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园_首页
S
Security @ Cisco Blogs
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
小众软件
小众软件
L
LangChain Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tor Project blog
L
LINUX DO - 热门话题
月光博客
月光博客
S
Schneier on Security
Y
Y Combinator Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Proofpoint News Feed
Forbes - Security
Forbes - Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hugging Face - Blog
Hugging Face - Blog
A
Arctic Wolf
Webroot Blog
Webroot Blog
博客园 - 叶小钗
F
Fortinet All Blogs
S
Securelist
AI
AI
B
Blog RSS Feed
Security Latest
Security Latest

博客园 - Francis Liang

Windows Azure存储容器私有,公共容器,公共Blob的区别 关于Windows Azure 地缘组(Affinity Groups) 使用Windows Azure创建和发布ASP.NET应用程序 创建并使用Windows Azure虚拟机模板 Windows Azure 设置虚拟机静态外网IP地址 Windows Azure 配置多个站点的虚拟网络连接 Windows Azure 虚拟网络配置(Site to Site) Windows Azure 虚拟网络配置(Point to Site) Microsoft Azure云计算第一步—试用帐户申请 拥抱云计算 《Microsoft Office SharePoint Server 2007 Best Practices》书评 修改MOSS2007内容查询部件实现自定义格式显示 [.NET Active Directory开发]根据NativeGuid获取DirectoryEntry实例 IISRESET命令功能新发现 动态改变ASP.net页面标题和动态指定页面样式表 Biztalk Server 2006安装配置 使用DIME协议上传文件 使用证书来做RSA非对称式加密 使用MSAgent代替传统的MessageBox提示来增用客户端用户体验
Web开发中对元素样式使用过滤器以增强其可视化效果
Francis Liang · 2005-12-14 · via 博客园 - Francis Liang

在WEB开发中,为了增强界面的美观往往需要对一些元素实现一些阴影、模糊、过渡等效果,最直接的方法就是通过美工制做图片来实现,IE从4.0版本开始支持过滤器,可以用此功能来实现诸如阴影、模糊、过渡等效果。我们可以采用对元素的样式使用过滤器来完成简单的效果的实现
我们以IMG和DIV元素为例
模糊效果:
<IMG ID="sample1" SRC="hero.jpg" STYLE="FILTER:progid:DXImageTransform.Microsoft.MotionBlur(strength=50)">
反转效果:
<IMG ID="sample2" SRC="hero.jpg" STYLE="FILTER:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)">
过渡效果:
<DIV STYLE="FILTER:progid:DXImageTransform.Microsoft.gradient (startColorstr=#000000, endColorstr=#FFFFFF)"></DIV>
虚化效果:
<IMG ID="sample3" SRC="hero.jpg" STYLE="FILTER:progid:DXImageTransform.Microsoft.Alpha(opacity=20)">
DIV的过渡
<DIV STYLE="FILTER:progid:DXImageTransform.Microsoft.gradient (startColorstr=#000000, endColorstr=#FFFFFF)"></DIV>
变形
<IMG ID="sample5" SRC="hero.jpg" style="FILTER: progid:DXImageTransform.Microsoft.Wave(freq=1,LightStrength=10,Phase=10,Strength=5)">
效果截图:
 

posted @ 2005-12-14 15:02  Francis Liang  阅读(1214)  评论()    收藏  举报