这是一个非常实用的CSS属性,且IE6也支持!用于缩放成不同比例的小图片时非常简单,而不需要多余的<div></div>做为容器来装载图片
clip(剪辑)属性就像一个蒙版。它允许你掩盖矩形的可见区域。要剪辑一个元素:你必须指position:absolute。然后,指定top rightbottom left值相对于元素的距离。

clip(剪辑)属性就像一个蒙版。它允许你掩盖矩形的可见区域。要剪辑一个元素:你必须指position:absolute。然后,指定top rightbottom left值相对于元素的距离。
.fixed-top/*头部固定*/{position:fixed;bottom:auto;top:0px;}
.fixed-bottom/*底部固定*/{position:fixed;bottom:0px;top:auto;}
.fixed-left/*左侧固定*/{position:fixed;right:auto;left:0px;}
.fixed-right/*右侧固定*/{position:fixed;right:0px;left:auto;}
.fixed-bottom/*底部固定*/{position:fixed;bottom:0px;top:auto;}
.fixed-left/*左侧固定*/{position:fixed;right:auto;left:0px;}
.fixed-right/*右侧固定*/{position:fixed;right:0px;left:auto;}
/*上面的是除了IE6的主流浏览器通用的方法*/
看到一篇《css3时尚进度条的设计》的文章,很是喜欢,准备好好研究一下,不过本文我先用photoshop把它设计出来,大家一块分享,非常简单。

这个在ps里面实现比较简单,但想用css来实现,实在是非常的复杂,里面涉及到很多新样式的应用,希望在下节中可以好好和大家一块学习。
1、定义图案,设置背景
这个在ps里面实现比较简单,但想用css来实现,实在是非常的复杂,里面涉及到很多新样式的应用,希望在下节中可以好好和大家一块学习。
1、定义图案,设置背景
css修改图片颜色演示代码如下:
<style type="text/css" media="screen">
html,body {filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }
</style>
html,body {filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }
</style>
几款浏览器对透明度的支持方式各不相同,为了保证在IE, Firefox, Chrome, Safari等主流浏览器下都能正常显示透明度的效果,我们可以定义一个透明度的class,因为一写就要写3条,省的每次都复制来复制去了。
具体代码如下:
具体代码如下:
.transparent{
filter:alpha(opacity=60); /*支持 IE 浏览器*/
-moz-opacity:0.60; /*支持 FireFox 浏览器*/
pacity:0.60; /*支持 Chrome, Opera, Safari 等浏览器*/
}
filter:alpha(opacity=60); /*支持 IE 浏览器*/
-moz-opacity:0.60; /*支持 FireFox 浏览器*/
pacity:0.60; /*支持 Chrome, Opera, Safari 等浏览器*/
}
由之前的点击下拉箭头展开表情调整为勾选后展开,调整的目的是发现这样可以多次点击一个表情而不需要每次都点击下拉箭头;
<div class="formbox-comment-tool">
<input name="stat_html" id="stat_html" type="checkbox" value="1" {disable_html} /> {$lnc[242]}
<input name="stat_ubb" id="stat_ubb" type="checkbox" value="1" onclick="showhidediv('ubbid')"/> {$lnc[243]}
<input name="stat_emot" id="stat_emot" type="checkbox" value="0" onclick="showhidediv('emotid')" />{$lnc[244]}
<input name="stat_property" id="stat_property" type="checkbox" value="1" onclick="promptreppsw();"/> {$lnc[245]}
{if_neednopsw_begin}
<input name="stat_rememberme" id="stat_rememberme" type="checkbox" value="1" {checked_rememberme} onclick="quickremember();"/>{$lnc[284]}
<a href="login.php">[{$lnc[89]}]</a>
{if_neednopsw_rawend}{additional}
</div>
<div id="ubbid" class="formbox-comment-ubb" style="display: none;">{ubbcode}</div>
<div id="emotid" class="formbox-comment-smilies" style="display: none;">{emots}</div>
</div>
<input name="stat_html" id="stat_html" type="checkbox" value="1" {disable_html} /> {$lnc[242]}
<input name="stat_ubb" id="stat_ubb" type="checkbox" value="1" onclick="showhidediv('ubbid')"/> {$lnc[243]}
<input name="stat_emot" id="stat_emot" type="checkbox" value="0" onclick="showhidediv('emotid')" />{$lnc[244]}
<input name="stat_property" id="stat_property" type="checkbox" value="1" onclick="promptreppsw();"/> {$lnc[245]}
{if_neednopsw_begin}
<input name="stat_rememberme" id="stat_rememberme" type="checkbox" value="1" {checked_rememberme} onclick="quickremember();"/>{$lnc[284]}
<a href="login.php">[{$lnc[89]}]</a>
{if_neednopsw_rawend}{additional}
</div>
<div id="ubbid" class="formbox-comment-ubb" style="display: none;">{ubbcode}</div>
<div id="emotid" class="formbox-comment-smilies" style="display: none;">{emots}</div>
</div>
语法:
说明:
设置嵌入HTML文档的字体。
嵌入HTML文档的字体是指将OpenType字体(压缩的TrueType字体)文件映射到客户端系统,用来提供HTML文档使用该字体,或取代客户端系统已有的同名字体。
示例:
@font-face { font-family : name ; src : url( url ) ; sRules }
说明:
name : 字体名称
url : 使用绝对或相对地址指定OpenType字体
sRules : 样式表定义
url : 使用绝对或相对地址指定OpenType字体
sRules : 样式表定义
设置嵌入HTML文档的字体。
嵌入HTML文档的字体是指将OpenType字体(压缩的TrueType字体)文件映射到客户端系统,用来提供HTML文档使用该字体,或取代客户端系统已有的同名字体。
示例:
<style stype="text/css">
@font-face { font-family: dreamy; font-weight: bold; src: url(http://www.example.com/font.eot);
</style>
@font-face { font-family: dreamy; font-weight: bold; src: url(http://www.example.com/font.eot);
</style>


