Hometown Heart
Records of my life, Show me the works, collection of things I like.
人脑有时不太好用,需要记录下来
Aug 18

CSS在IE6,IE7,FIREFOX中的区别

| Posted in 学习教材 | 2009/08/18 10:03 by Hawking | 评论(2) , 阅读(186) , Via 本站原创

第一种,是CSS HACK的方法
引用
height:20px; /*For Firefox*/
*height:25px; /*For IE7 & IE6*/
_height:20px; /*For IE6*/

注意顺序。

这样也属于CSS HACK,不过没有上面这样简洁。
#example { color: #333; } /* Moz */
* html #example { color: #666; } /* IE6 */
*+html #example { color: #999; } /* IE7 */
>> 阅读全文
Tags: , ,
Jul 23
有感于一些朋友的作品(尤其是页面\软件界面设计这种对精度要求很高的地方)在细节方面总是受到锯齿的困扰,而拉低了整体档次。特根据自己的经验讲一讲常见的毛刺问题。随笔写写,有些可能不是很完善很对~俺记性一向不好。另外像素风格图片、gif边缘锯齿不再这次讨论范围之内。
(本教程以cs3为例,快捷键的不同不再另行说明。另,cs4中新增的蒙版控制功能可以结合使用)
>> 阅读全文
Tags: , , ,
Jan 15

背景透明,文字不透明(IE only)

| Posted in 学习教材 | 2009/01/15 16:35 by Hawking | 评论(1) , 阅读(425) , Via 本站原创
<style>
body{background:#369;}
.alpha{opacity:0.3;filter:alpha(opacity=30);background:#fff;width:600px;}
span{color:#ff0;}
</style>

<body>
<div class="alpha"><span>图层背景透明,文字透明</span></div>
<div class="alpha"><span style="position:relative;">图层背景透明,文字不透明</span></div>
</body>
Tags:
Dec 28

让flash暂停一定时间然后再播放

| Posted in 学习教材 | 2008/12/28 22:43 by Hawking | 评论(0) , 阅读(408) , Via 本站原创
方法一:
stop();
var loadTime=getTimer();
this.onEnterFrame=function()
{
//设置停顿时间,单位毫秒
if((getTimer()-loadTime)>=1000)
{
play();
delete this.onEnterFrame;
}
}
>> 阅读全文
Tags: , ,
分页: 1/1 第一页 1 最后页