CSS3.0的一些高级新特性

1、CSS3.0的一些高级新特性:

http://www.cnblogs.com/radom/archive/2012/04/19/2457356.html
http://www.qianduan.net/new-features-of-css3.html

1)、WebKit特有属性

(1)、-webkit-mask 添加蒙版

http://www.qianduan.net/the-future-of-css-experimental-css-properties.html

(2)、-webkit-text-stroke 为文字添加边框

h3 {
color: transparent;
-webkit-text-stroke: 4px red;
}

(3)、-webkit-box-reflect 倒影效果

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>reflect倒影效果</title>
<style>
 img{width: 200px;
     -webkit-box-reflect: below 10px -webkit-linear-gradient(top,rgba(0,0,0,0) 20%,rgba(0,0,0,0.6) 100%);}
</style>
</head>
<body>
    <img src="1.jpg" alt="" />
</body>
</html>

http://blog.163.com/hongshaoguoguo@126/blog/static/1804698120126165232714/

(4)、-webkit-nbsp-mode 设置文字断行

(5)、-webkit-tap-highlight-color 只有iOS(iPhone和iPad)才支持;

(6)、-webkit-margin-collapse 设置两个相邻的元素的margin

(7)、-webkit-marquee 设置一段来回滚动的文字

(8)、-webkit-box-shadow: 0px 0px 20px rgba(255,0,0,0.8);   设置图片边沿发光 

2)、其他

(1)、text-overflow 防止位置超出容器而溢出

(2)、word-wrap 自动换行

(3)、-webkit-border-radius/-moz-border-radius 圆角

(4)、border-top-image
    border-right-image
    border-bottom-image
    border-left-image
    border-corner-image:
    border-top-left-image
    border-top-right-image
    border-bottom-left-image
    border-bottom-right-image 边框

(5)、-webkit-column-width -webkit-column-gap 多栏

(6)、box-shadow: 0px 0px 20px rgba(255,0,0,0.8); 设置图片边沿发光 




  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

寒江蓑笠

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值