html text-transform,text-transform

The following examples use the text-transform attribute and the textTransform property to transform a block of text from lower case to upper case when the user moves the mouse over the text. The text transforms back to lower case when the user clicks the text.

This example uses three calls to an embedded (global) style sheet to transform the text.

.transform1 { text-transform:uppercase }

.transform2 { text-transform:lowercase }

.transform3 { text-transform:none }

οnmοuseοver="this.className='transform1'"

οnclick= "this.className='transform2'"

οndblclick="this.className='transform3'">

:

This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.a007370d4b07b196bc9b7864db0e1628.gif

This example uses inline scripting to transform the text when different mouse events occur.

οnmοuseοver="this.style.textTransform='uppercase'"

οnmοuseοut="this.style.textTransform='lowercase'"

οnclick="this.style.textTransform='none'">

:

This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.a007370d4b07b196bc9b7864db0e1628.gif

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值