Inner glow effect of button

后端 未结 2 594
清酒与你
清酒与你 2021-02-07 04:01

I want to have inner glow effect of button when focused. I could achieve outline (outer) glow of button but I even want to have inner glow effect. Could anyone help?

相关标签:
2条回答
  • 2021-02-07 04:22

    I made a jsFiddle showing this effect:

    a {
        -webkit-box-shadow: inset 0 0 30px #00f;
        -moz-box-shadow: inset 0 0 30px #00f;
        box-shadow: inset 0 0 30px #00f;
    }
    

    Edit: in response to your comment: Here's a much sexier version.

    0 讨论(0)
  • 2021-02-07 04:25

    use box-shadow inset:

    .class{
      box-shadow:inset 2px 2px 2px 2px black;
    }
    

    http://www.css3.info/preview/box-shadow/

    0 讨论(0)
提交回复
热议问题