摘要
选项卡切换效果作为Windows的经典界面效果在网页设计中得到了广泛使用。为此,设计了2种方法对现有方法进行改进:使用层叠样式表(CSS)中的链接动态伪类实现鼠标滑过切换选项卡效果;使用锚点链接实现鼠标点击切换选项卡效果。实践证明这2种方法相较基于JavaScript的实现方法更为简洁,易于实现,实际应用效果较好。
As a classic interface effect of windows, Tab Switching Effect has been widely used in web design. Therefore, two methods are designed to improve the existing technique: one way to realize the Tab Switching Effect by the mouse over the object is through the Link and Dynamic Pseudo-classes of the CSS; the other way to realize the Tab Switching Effect by the mouse clicking is anchor linking. Practice has proved that comparing with the method basing on JavaScript these two means are simpler, easily realizing and having better application effect.
出处
《电脑开发与应用》
2012年第9期78-80,共3页
Computer Development & Applications