Chinaunix首页 | 论坛 | 博客
  • 博客访问: 336304
  • 博文数量: 206
  • 博客积分: 1040
  • 博客等级: 少尉
  • 技术积分: 1756
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-09 17:22
文章分类

全部博文(206)

文章存档

2015年(3)

2014年(147)

2013年(2)

2012年(54)

我的朋友

分类: IT业界

2014-09-19 10:49:36

1、css;
(1)box-shadow: 
-moz-box-shadow: 10px 10px 5px #888888; /*老的Firefox*/
box-shadow: 10px 10px 5px #888888;

语法

box-shadow: h-shadow v-shadow blur spread color inset;

注释:box-shadow 向框添加一个或多个阴影。该属性是由逗号分隔的阴影列表,每个阴影由 2-4 个长度值、可选的颜色值以及可选的 inset 关键词来规定。省略长度的值是 0。

描述 测试
h-shadow 必需。水平阴影的位置。允许负值。
v-shadow 必需。垂直阴影的位置。允许负值。
blur 可选。模糊距离。
spread 可选。阴影的尺寸。
color 可选。阴影的颜色。请参阅 CSS 颜色值。
inset 可选。将外部阴影 (outset) 改为内部阴影。

示例: 

阴影部分用下面的代码来表示: 

点击(此处)折叠或打开

  1. .login-form {
  2.     background:#eee;
  3.     width: 26%;
  4.     margin:9% auto 4% auto;
  5.      position: relative;
  6.      -webkit-border-radius: 0.4em;
  7.     -o-border-radius: 0.4em;
  8.     -moz-border-radius: 0.4em;
  9.      box-shadow: rgba(243, 208, 39, 0.33) 1px 1px,
  10.  rgba(243, 208, 39, 0.33) 2px 2px,
  11.  rgba(243, 208, 39, 0.33) 3px 3px,
  12.  rgba(243, 208, 39, 0.33) 4px 4px,
  13.  rgba(243, 208, 39, 0.33) 5px 5px,
  14.  rgba(243, 208, 39, 0.33) 6px 6px,
  15.  rgba(243, 208, 39, 0.33) 7px 7px,
  16.  rgba(243, 208, 39, 0.33) 8px 8px,
  17.  rgba(243, 208, 39, 0.33) 9px 9px,
  18.  rgba(243, 208, 39, 0.33) 10px 10px,
  19.  rgba(243, 208, 39, 0.33) 11px 11px,
  20.  rgba(243, 208, 39, 0.33) 12px 12px,
  21.  rgba(243, 208, 39, 0.33) 13px 13px,
  22.  rgba(243, 208, 39, 0.33) 14px 14px,
  23.  rgba(243, 208, 39, 0.33) 15px 15px,
  24.  rgba(243, 208, 39, 0.33) 16px 16px,
  25.  rgba(243, 208, 39, 0.33) 17px 17px,
  26.  rgba(243, 208, 39, 0.33) 18px 18px,
  27.  rgba(243, 208, 39, 0.33) 19px 19px,
  28.  rgba(243, 208, 39, 0.33) 20px 20px,
  29.  rgba(243, 208, 39, 0.33) 21px 21px,
  30.  rgba(243, 208, 39, 0.33) 22px 22px,
  31.  rgba(243, 208, 39, 0.33) 23px 23px,
  32.  rgba(243, 208, 39, 0.33) 24px 24px,
  33.  rgba(243, 208, 39, 0.33) 25px 25px,
  34.  rgba(243, 208, 39, 0.33) 26px 26px,
  35.  rgba(243, 208, 39, 0.33) 27px 27px,
  36.  rgba(243, 208, 39, 0.33) 28px 28px,
  37.  rgba(243, 208, 39, 0.33) 29px 29px,
  38.  rgba(243, 208, 39, 0.33) 30px 30px,
  39.  rgba(243, 208, 39, 0.33) 31px 31px,
  40.  rgba(243, 208, 39, 0.33) 32px 32px,
  41.  rgba(243, 208, 39, 0.33) 33px 33px,
  42.  rgba(243, 208, 39, 0.33) 34px 34px,
  43.  rgba(243, 208, 39, 0.33) 35px 35px,
  44.  rgba(243, 208, 39, 0.33) 36px 36px,
  45.  rgba(243, 208, 39, 0.33) 37px 37px,
  46.  rgba(243, 208, 39, 0.33) 38px 38px,
  47.  rgba(243, 208, 39, 0.33) 39px 39px,
  48.  rgba(243, 208, 39, 0.33) 40px 40px,
  49.  rgba(243, 208, 39, 0.33) 41px 41px,
  50.  rgba(243, 208, 39, 0.33) 42px 42px,
  51.  rgba(243, 208, 39, 0.33) 43px 43px,
  52.  rgba(243, 208, 39, 0.33) 44px 44px,
  53.  rgba(243, 208, 39, 0.33) 45px 45px,
  54.  rgba(243, 208, 39, 0.33) 46px 46px,
  55.  rgba(243, 208, 39, 0.33) 47px 47px,
  56.  rgba(243, 208, 39, 0.33) 48px 48px,
  57.  rgba(243, 208, 39, 0.33) 49px 49px,
  58.  rgba(243, 208, 39, 0.33) 50px 50px,
  59.  rgba(243, 208, 39, 0.33) 51px 51px,
  60.  rgba(243, 208, 39, 0.33) 52px 52px,
  61.  rgba(243, 208, 39, 0.33) 53px 53px,
  62.  rgba(243, 208, 39, 0.33) 54px 54px,
  63.  rgba(243, 208, 39, 0.33) 55px 55px,
  64.  rgba(243, 208, 39, 0.33) 56px 56px,
  65.  rgba(243, 208, 39, 0.33) 57px 57px,
  66.  rgba(243, 208, 39, 0.33) 58px 58px,
  67.  rgba(243, 208, 39, 0.33) 59px 59px,
  68.  rgba(243, 208, 39, 0.33) 60px 60px,
  69.  rgba(243, 208, 39, 0.33) 61px 61px,
  70.  rgba(243, 208, 39, 0.33) 62px 62px,
  71.  rgba(243, 208, 39, 0.33) 63px 63px,
  72.  rgba(243, 208, 39, 0.33) 64px 64px,
  73.  rgba(243, 208, 39, 0.33) 65px 65px,
  74.  rgba(243, 208, 39, 0.33) 66px 66px,
  75.  rgba(243, 208, 39, 0.33) 67px 67px,
  76.  rgba(243, 208, 39, 0.33) 68px 68px,
  77.  rgba(243, 208, 39, 0.33) 69px 69px,
  78.  rgba(243, 208, 39, 0.33) 70px 70px,
  79.  rgba(243, 208, 39, 0.33) 71px 71px,
  80.  rgba(243, 208, 39, 0.33) 72px 72px,
  81.  rgba(243, 208, 39, 0.33) 73px 73px,
  82.  rgba(243, 208, 39, 0.33) 74px 74px,
  83.  rgba(243, 208, 39, 0.33) 75px 75px,
  84.  rgba(243, 208, 39, 0.33) 76px 76px,
  85.  rgba(243, 208, 39, 0.33) 77px 77px,
  86.  rgba(243, 208, 39, 0.33) 78px 78px,
  87.  rgba(243, 208, 39, 0.33) 79px 79px,
  88.  rgba(243, 208, 39, 0.33) 80px 80px,
  89.  rgba(243, 208, 39, 0.33) 81px 81px,
  90.  rgba(243, 208, 39, 0.33) 82px 82px,
  91.  rgba(243, 208, 39, 0.33) 83px 83px,
  92.  rgba(243, 208, 39, 0.33) 84px 84px,
  93.  rgba(243, 208, 39, 0.33) 85px 85px,
  94.  rgba(243, 208, 39, 0.33) 86px 86px,
  95.  rgba(243, 208, 39, 0.33) 87px 87px,
  96.  rgba(243, 208, 39, 0.33) 88px 88px,
  97.  rgba(243, 208, 39, 0.33) 89px 89px,
  98.  rgba(243, 208, 39, 0.33)90px 90px,
  99.  rgba(243, 208, 39, 0.33)91px 91px,
  100.  rgba(243, 208, 39, 0.33)92px 92px,
  101.  rgba(243, 208, 39, 0.33)93px 93px,
  102.  rgba(243, 208, 39, 0.33)94px 94px,
  103.  rgba(243, 208, 39, 0.33) 95px 95px,
  104.  rgba(243, 208, 39, 0.33) 96px 96px,
  105.  rgba(243, 208, 39, 0.33) 97px 97px,
  106.  rgba(243, 208, 39, 0.33) 98px 98px,
  107.  rgba(243, 208, 39, 0.33) 99px 99px,
  108.  rgba(243, 208, 39, 0.33) 100px 100px,
  109.  rgba(243, 208, 39, 0.33) 101px 101px,
  110.  rgba(243, 208, 39, 0.33) 102px 102px,
  111.  rgba(243, 208, 39, 0.33) 103px 103px,
  112.  rgba(243, 208, 39, 0.33) 104px 104px,
  113.  rgba(243, 208, 39, 0.33) 105px 105px,
  114.  rgba(243, 208, 39, 0.33) 106px 106px,
  115.  rgba(243, 208, 39, 0.33) 107px 107px,
  116.  rgba(243, 208, 39, 0.33) 108px 108px,
  117.  rgba(243, 208, 39, 0.33) 109px 109px,
  118.  rgba(243, 208, 39, 0.33) 110px 110px,
  119.  rgba(243, 208, 39, 0.33) 111px 111px,
  120.  rgba(243, 208, 39, 0.33) 112px 112px,
  121.  rgba(243, 208, 39, 0.33) 113px 113px,
  122.  rgba(243, 208, 39, 0.33) 114px 114px,
  123.  rgba(243, 208, 39, 0.33) 115px 115px,
  124.  rgba(243, 208, 39, 0.33) 116px 116px,
  125.  rgba(243, 208, 39, 0.33) 117px 117px,
  126.  rgba(243, 208, 39, 0.33) 118px 118px,
  127.  rgba(243, 208, 39, 0.33) 119px 119px,
  128.  rgba(243, 208, 39, 0.33) 120px 120px,
  129.  rgba(243, 208, 39, 0.33) 121px 121px,
  130.  rgba(243, 208, 39, 0.33) 122px 122px,
  131.  rgba(243, 208, 39, 0.33) 123px 123px,
  132.  rgba(243, 208, 39, 0.33) 124px 124px,
  133.  rgba(243, 208, 39, 0.33) 125px 125px,
  134.  rgba(243, 208, 39, 0.33) 126px 126px,
  135.  rgba(243, 208, 39, 0.33) 127px 127px,
  136.  rgba(243, 208, 39, 0.33) 128px 128px,
  137.  rgba(243, 208, 39, 0.33) 129px 129px,
  138.  rgba(243, 208, 39, 0.33) 130px 130px,
  139.  rgba(243, 208, 39, 0.33) 131px 131px,
  140.  rgba(243, 208, 39, 0.33) 132px 132px,
  141.  rgba(243, 208, 39, 0.33)133px 133px,
  142.  rgba(243, 208, 39, 0.33)134px 134px,
  143.  rgba(243, 208, 39, 0.33)135px 135px,
  144.  rgba(243, 208, 39, 0.33) 136px 136px,
  145.  rgba(243, 208, 39, 0.33) 137px 137px,
  146.  rgba(243, 208, 39, 0.33) 138px 138px,
  147.  rgba(243, 208, 39, 0.33) 139px 139px,
  148.  rgba(243, 208, 39, 0.33) 140px 140px,
  149.  rgba(243, 208, 39, 0.33) 141px 141px,
  150.  rgba(243, 208, 39, 0.33) 142px 142px,
  151.  rgba(243, 208, 39, 0.33) 143px 143px,
  152.  rgba(243, 208, 39, 0.33) 144px 144px,
  153.  rgba(243, 208, 39, 0.33) 145px 145px,
  154.  rgba(243, 208, 39, 0.33) 146px 146px,
  155.  rgba(243, 208, 39, 0.33) 147px 147px,
  156.  rgba(243, 208, 39, 0.33) 148px 148px,
  157.  rgba(243, 208, 39, 0.33) 149px 149px,
  158.  rgba(243, 208, 39, 0.33) 150px 150px,
  159.  rgba(243, 208, 39, 0.33) 151px 151px,
  160.  rgba(243, 208, 39, 0.33) 152px 152px,
  161.  rgba(243, 208, 39, 0.33) 153px 153px,
  162.  rgba(243, 208, 39, 0.33) 154px 154px,
  163.  rgba(243, 208, 39, 0.33) 155px 155px,
  164.  rgba(243, 208, 39, 0.33) 156px 156px,
  165.  rgba(243, 208, 39, 0.33) 157px 157px,
  166.  rgba(243, 208, 39, 0.33) 158px 158px,
  167.  rgba(243, 208, 39, 0.33) 159px 159px,
  168.  rgba(243, 208, 39, 0.33) 160px 160px,
  169.  rgba(243, 208, 39, 0.33) 161px 161px,
  170.  rgba(243, 208, 39, 0.33) 162px 162px,
  171.  rgba(243, 208, 39, 0.33) 163px 163px,
  172.  rgba(243, 208, 39, 0.33) 164px 164px,
  173.  rgba(243, 208, 39, 0.33) 165px 165px,
  174.  rgba(243, 208, 39, 0.33) 166px 166px,
  175.  rgba(243, 208, 39, 0.33) 167px 167px,
  176.  rgba(243, 208, 39, 0.33) 168px 168px,
  177.  rgba(243, 208, 39, 0.33) 169px 169px,
  178.  rgba(243, 208, 39, 0.33) 170px 170px,
  179.  rgba(243, 208, 39, 0.33) 171px 171px,
  180.  rgba(243, 208, 39, 0.33) 172px 172px,
  181.  rgba(243, 208, 39, 0.33) 173px 173px,
  182.  rgba(243, 208, 39, 0.33) 174px 174px,
  183.  rgba(243, 208, 39, 0.33) 175px 175px,
  184.  rgba(243, 208, 39, 0.33) 176px 176px,
  185.  rgba(243, 208, 39, 0.33) 177px 177px,
  186.  rgba(243, 208, 39, 0.33) 178px 178px,
  187.  rgba(243, 208, 39, 0.33) 179px 179px,
  188.  rgba(243, 208, 39, 0.33) 180px 180px,
  189.  rgba(243, 208, 39, 0.33) 181px 181px,
  190.  rgba(243, 208, 39, 0.33) 182px 182px
  191. }
(2) linear-gradient
几种现代浏览器的内核,主流内容主要有(Gecko)(熟悉的有Firefox,Flock等浏览器)、(熟悉的有Safari、Chrome等浏览器)、(presto)(Opera浏览器)、Trident(讨厌的IE浏览器)
  1. background-color#fff;
  2. background-image-webkit-linear-gradient(top, #FFFFFF 0%, #ddd 100%);
  3. background-image-moz-linear-gradient(top, #FFFFFF 0%, #ddd 100%);
  4. background-image-ms-linear-gradient(top, #FFFFFF 0%, #ddd 100%);
  5. background-image-o-linear-gradient(top, #FFFFFF 0%, #ddd 100%);
  6. background-imagelinear-gradient(top, #FFFFFF 0%, #ddd 100%);
  7. filterprogid:DXImageTransform.Microsoft.Gradient(gradientType=0, startColorStr=#FFFFFF, endColorStr=#dddddd );
阅读(736) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~