9.text-shadow

有空写

 DOM

<div class="text-wrap box1">Text Shadow</div>
<div class="text-wrap box2">Text Shadow</div>
<div class="text-wrap box3">Text Shadow</div>
<div class="text-wrap box4">Text Shadow</div>
<div class="text-wrap box5">Text Shadow</div>
<div class="text-wrap box6">Text Shadow</div>
<div class="text-wrap box7">Text Shadow</div>
<div class="text-wrap box8">Text Shadow</div>
<div class="text-wrap box9">Text Shadow</div>
<div class="text-wrap box10">Text Shadow</div>
<div class="text-wrap box11">Text Shadow</div>
<div class="text-wrap box12">Text Shadow</div>

css

        body{
                font: 12px/1.5 Tahoma,Helvetica,Arial,'宋体',sans-serif;
             }
            .text-wrap{
                width: 600px;
                margin: 10px auto;
                padding: 10px 0;
                border: 5px solid #CCCCCC;
                position: relative;
                box-shadow: 0 0 4px rgba(0,0,0,.8);
                clear: both;
                font-family: arial,serif;
                font-size: 40px;
                text-align: center;
                color: #f9f9f9;
            }
            .box1{
                text-shadow: 0 0 0 rgb(188,178,188),1px 0 0 rgb(171,163,173),
                             2px 0 0 rgb(157,147,157),3px 0 0 rgb(142,132,142),
                             4px 0 0 rgb(126,116,126),5px 0 0 rgb(111,101,111),
                             6px 0 0 rgb(95,85,95),7px 0 0 rgb(79,69,79),
                             8px 0 7px rgba(0,0,0,.35),8px 0 1px rgba(0,0,0,.5),
                             0 0 7px rgba(0,0,0,.2);
            }
            .box2{
                text-shadow: 0 0 0 rgb(188,178,188),1px -1px 0 rgb(171,163,173),
                             2px -2px 0 rgb(157,147,157),3px -3px 0 rgb(142,132,142),
                             4px -4px 0 rgb(126,116,126),5px -5px 0 rgb(111,101,111),
                             6px -6px 0 rgb(95,85,95),7px -7px 0 rgb(79,69,79),
                             8px -8px 7px rgba(0,0,0,.35),8px -8px 1px rgba(0,0,0,.5),
                             0 0 7px rgba(0,0,0,.2);
            }
            .box3{
                text-shadow: 0 0 0 rgb(188,178,188),0 -1px 0 rgb(171,163,173),
                             0 -2px 0 rgb(157,147,157),0 -3px 0 rgb(142,132,142),
                             0 -4px 0 rgb(126,116,126),0 -5px 0 rgb(111,101,111),
                             0 -6px 0 rgb(95,85,95),0 -7px 0 rgb(79,69,79),
                             0 -8px 7px rgba(0,0,0,.35),0 -8px 1px rgba(0,0,0,.5),
                             0 0 7px rgba(0,0,0,.2);
            }
            .box4{
                text-shadow: 0 0 0 rgb(188,178,188),-1px -1px 0 rgb(171,163,173),
                             -2px -2px 0 rgb(157,147,157),-3px -3px 0 rgb(142,132,142),
                             -4px -4px 0 rgb(126,116,126),-5px -5px 0 rgb(111,101,111),
                             -6px -6px 0 rgb(95,85,95),-7px -7px 0 rgb(79,69,79),
                             -8px -8px 7px rgba(0,0,0,.35),-8px -8px 1px rgba(0,0,0,.5),
                             0 0 7px rgba(0,0,0,.2);
            }
            .box5{
                text-shadow: 0 0 0 rgb(188,178,188),-1px 0 0 rgb(171,163,173),
                             -2px 0 0 rgb(157,147,157),-3px 0 0 rgb(142,132,142),
                             -4px 0 0 rgb(126,116,126),-5px 0 0 rgb(111,101,111),
                             -6px 0 0 rgb(95,85,95),-7px 0 0 rgb(79,69,79),
                             -8px 0 7px rgba(0,0,0,.35),-8px 0 1px rgba(0,0,0,.5),
                             0 0 7px rgba(0,0,0,.2);
            }
            .box6{
                text-shadow: 0 0 0 rgb(188,178,188),-1px 1px 0 rgb(171,163,173),
                             -2px 2px 0 rgb(157,147,157),-3px 3px 0 rgb(142,132,142),
                             -4px 4px 0 rgb(126,116,126),-5px 5px 0 rgb(111,101,111),
                             -6px 6px 0 rgb(95,85,95),-7px 7px 0 rgb(79,69,79),
                             -8px 8px 7px rgba(0,0,0,.35),-8px 8px 1px rgba(0,0,0,.5),
                             0 0 7px rgba(0,0,0,.2);
            }
            .box7{
                text-shadow: 0 0 0 rgb(188,178,188),0 1px 0 rgb(171,163,173),
                             0 2px 0 rgb(157,147,157),0 3px 0 rgb(142,132,142),
                             0 4px 0 rgb(126,116,126),0 5px 0 rgb(111,101,111),
                             0 6px 0 rgb(95,85,95),0 7px 0 rgb(79,69,79),
                             0 8px 7px rgba(0,0,0,.35),0 8px 1px rgba(0,0,0,.5),
                             0 0 7px rgba(0,0,0,.2);
            }
            .box8{
                text-shadow: 0 0 0 rgb(188,178,188),1px 1px 0 rgb(171,163,173),
                             2px 2px 0 rgb(157,147,157),3px 3px 0 rgb(142,132,142),
                             4px 4px 0 rgb(126,116,126),5px 5px 0 rgb(111,101,111),
                             6px 6px 0 rgb(95,85,95),7px 7px 0 rgb(79,69,79),
                             8px 8px 7px rgba(0,0,0,.35),8px 8px 1px rgba(0,0,0,.5),
                             0 0 7px rgba(0,0,0,.2);
            }
            .box9{
                text-shadow: 0 0 0 rgb(188,178,188),1px 0 0 rgb(171,163,173),
                             2px 0 0 rgb(157,147,157),3px 0 0 rgb(142,132,142),
                             4px 0 0 rgb(126,116,126),5px 0 0 rgb(111,101,111),
                             6px 0 0 rgb(95,85,95),7px 0 0 rgb(79,69,79),
                             8px 0 7px rgba(0,0,0,.35),8px 0 1px rgba(0,0,0,.5),
                             0 0 7px rgba(0,0,0,.2);
            }
            .box10{
                background: #203;
                color: #ffc;
                text-shadow: 0 0 0.1em,0 0 0.3em;
            }
            .box11{
                color: transparent;background: #203;
                text-shadow: 0 0 0.1em white,0 0 0.3em white;
            }
            .box12{
                background: #203;
                color: white;
                transition: 1s;
                filter: blur(0.03em);
            }
            .box12:hover{
                filter: blur(0em);
            }

 

转载于:https://www.cnblogs.com/famLiu/p/7201903.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
帮我优化以下代码<style> * { box-sizing: border-box; } .row::after { content: ""; clear: both; display: table; } [class*="col-"] { float: left; padding: 15px; } html { font-family: "Lucida Sans", sans-serif; } .header { background-color: #0603F7; color: #ffffff; padding: 3px; } .menu ul { list-style-type: none; margin: 0; padding: 0; } .menu li { padding: 8px; margin-bottom: 7px; background-color: #33b5e5; color: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); } .menu li:hover { background-color: #F59B06; } .aside { background-color: #33b5e5; padding: 15px; color: #ffffff; text-align: center; font-size: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); } .footer { background-color: #0099cc; color: #ffffff; text-align: center; font-size: 12px; padding: 15px; } /* For mobile phones: */ [class*="col-"] { width: 100%; } @media only screen and (min-width: 600px) { /*小屏幕 */ .col-s-1 {width: 8.33%;} .col-s-2 {width: 16.66%;} .col-s-3 {width: 100%;} .col-s-4 {width: 33.33%;} .col-s-5 {width: 41.66%;} .col-s-6 {width: 75%;} .col-s-7 {width: 58.33%;} .col-s-8 {width: 66.66%;} .col-s-9 {width: 100%;} .col-s-10 {width: 83.33%;} .col-s-11 {width: 91.66%;} .col-s-12 {width: 100%;} } @media only screen and (min-width: 768px) { /*大屏幕*/ .col-1 {width: 8.33%;} .col-2 {width: 16.66%;} .col-3 {width: 100%;} .col-4 {width: 33.33%;} .col-5 {width: 41.66%;} .col-6 {width: 100%;} .col-7 {width: 58.33%;} .col-8 {width: 66.66%;} .col-9 {width: 75%;} .col-10 {width: 83.33%;} .col-11 {width: 91.66%;} .col-12 {width: 100%;} } </style>
05-30

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值