时间: 2021-07-31 作者:daque
在网页的创造中,归纳应用dhtml、css本领,贯串〈marquee〉标签,不妨在网页中传神地仿制出一致电视剧目片头中国对外演出公司人员表的功效。本领是,用〈div〉标签贯串款式表的场所(position)属性,在屏幕上开拓一块地区,而后用款式表alpha滤镜将该地区设为半通明,再在该地区中运用〈marquee〉标签创造字幕挪动功效。将以次代码复制到您网页的符合场所,登时就能看到本功效。代码中的地区巨细和bg_line.gif 图形文献可按您的须要窜改。
〈div style="position:absolute;width:240px;height:200px;visibility:show;
z-index:10;left:310px;top:30px;background-color:lightyellow;
filter:alpha(opacity=85);"〉
〈table border=1 background="bg_100.jpg"〉
〈tr〉
〈td width=240〉
〈marquee style="height:200px;text-align:center;left:0px;top:1px;color:red;
margin-left:1" scrollamount=1 behavior=loop direction=up〉
网站树立单元:国瑞公司〈br〉〈br〉
网页创造:张 庆〈br〉〈br〉
时 间:二○○○年仲夏二十二日
〈/marquee〉
〈/td〉
〈/tr〉
〈/table〉
〈/div〉