- ·上一篇文章:Flash MX 2004新特性实例学习六(2)
- ·下一篇文章:Flash MX 2004新特性实例学习五(3)
Flash MX 2004新特性实例学习六(1)
实例七、Text Enhancements
一、涉及特性
在实例中,主要涉及在Flash MX 2004中引用和显示外部的css文件和html文件。这些都是在Flash MX 2004中才有的新特性,应用也非常方便。本实例在Flash MX 2004中的操作非常简单,不过这正从侧面反映了它的功能强大。
二、制作过程
1、建立一个文件,命名为sample.css。其内容如下:
headline {
font-family: Arial,Helvetica,sans-serif;
font-size: 16px;
font-weight: bold;
display: block;
}
subheadline {
font-family: Arial,Helvetica,sans-serif;
font-size: 13px;
font-weight: bold;
display: block;
}
mainBody {
font-family: Arial,Helvetica,sans-serif;
font-size: 10px;
display: block;
}
biline {
font-family: Arial,Helvetica,sans-serif;
font-size: 11px;
font-style: italic;
display: inline;
}
A {
font-family: Arial,Helvetica,sans-serif;
color:cccccc;
font-size: 10px;
display: inline;
text-decoration:underline;
}
上面的css文件中,中括号里面的是对应的属性。比如font-family是字符集,font-size是字体大小,display是字体的显示方式,等等。只要有简单的网页制作知识就应该可以看懂的。
2、新建一个文件,命名为sample.html,其内容如下:
No injuries were reported after the animal's two-hour assault of the shopping district famous for it's sea lion purses and shoes, also known as the "sea lion district". Witnesses said the creature came out of the ocean near the Burger King at 42nd and 1st Avenue, startling many and stalling traffic.
"The animal caused nearly four million dollars of damage to the neighborhood," said Joseph Valente, owner of "Sea Lions R' Us" at 43rd and 2nd. Onlookers to the scene said that the sea lion appeared ornery, but otherwise in good spirits.
Officials are uncertain as to when, if ever, the sea lion may return.Click here for more.
这个文件的内容是应用了前面所创建的css格式的html文件。(严格来说,此文件更像是一个xml文件。)
赞助商链接
频道栏目导航
本类热门阅览
相关文章
- ·不用动手!让网际快车FlashGet变得自动听话
- ·如何防止Flash跨站攻击弹出IE窗口
- ·[图文]是Google还是MSN地图 Flash Earth整合
- ·[组图]支持BT FlashGet1.8测试版极速发车
- ·网际快车FlashGet最新最全技巧
- ·[组图]免费为博客添加Flash实时聊天器
- ·[组图]相册自己做!五步打制精美Flash相册
- ·[组图]四步打造炫目Flash宣传条:KoolMoves
- ·[组图]快车新用法:巧用FlashGet实现异地下载
- ·FlashGet实用技巧三则
- ·[图文]下载狂人FlashGet代理设置方法
- ·[图文]传输快慢由我定 限制FlashFXP速度





