zoukankan      html  css  js  c++  java
  • css3 阴影效果

    1. 向外阴影  box-shadow:0 0 30px #F30;

       /* x轴阴影 y轴阴影 羽化值  阴影颜色 */

    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>无标题文档</title>
    <style>
    .test{height:200px; width:400px; border:1px solid #ccc; color:#0F6; font-size:40px; text-align:center; line-height:100px; font-weight:bold; margin:100px 0 0 100px; box-shadow:0 0 30px #F30;}
    </style>
    </head>
    
    <body>
    <div class="test">
        box-shadow
    </div>
    </body>
    </html>

    2. 向内阴影 box-shadow:0 0 30px #F30 inset;

       /* x轴阴影 y轴阴影 羽化值  阴影颜色  向内阴影*/

    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>无标题文档</title>
    <style>
    .test{height:200px; width:400px; border:1px solid #ccc; color:#0F6; font-size:40px; text-align:center; line-height:100px; font-weight:bold; margin:100px 0 0 100px; box-shadow:0 0 30px #F30 inset;}
    </style>
    </head>
    
    <body>
    <div class="test">
        box-shadow
    </div>
    </body>
    </html>

    3.  内部内容阴影  text-shadow:0 0 30px #F30;

      /* x轴阴影 y轴阴影 羽化值  阴影颜色 */

    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>无标题文档</title>
    <style>
    .test{height:200px; width:400px; border:1px solid #ccc; color:#0F6; font-size:40px; text-align:center; line-height:100px; font-weight:bold; margin:100px 0 0 100px; text-shadow:0 0 30px #F30;}
    </style>
    </head>
    
    <body>
    <div class="test">
        box-shadow
    </div>
    </body>
    </html>
  • 相关阅读:
    C++基础知识(二)
    C++基础知识(一)
    RT-thread 设备驱动组件之IIC总线设备
    RT-thread 设备驱动组件之SPI设备
    RT thread 设备驱动组件之USART设备
    RT-thread 设备驱动组件之PIN设备
    RT-thread finsh组件工作流程
    C语言知识点
    RT-thread main函数分析
    堆和栈的区别
  • 原文地址:https://www.cnblogs.com/smartyu/p/3420463.html
Copyright © 2011-2022 走看看