【问题标题】:How to set button css as half shadow如何将按钮css设置为半阴影
【发布时间】:2020-04-15 12:24:23
【问题描述】:

我需要像website这样设置按钮的css,在这里你可以看到带有深色和半阴影的Read more按钮

请看下图:

我尝试了下面的代码,但失败了:

.rmbutton {
    color: #ffffff !important;
    background: #504d62 !important;
    position: relative;
    overflow: hidden;
    padding: 13px 35px;
    text-transform: uppercase;
    display: inline-block;
    font-size: 14px;
    transition-property: background;
    transition-duration: 0.3s;
    transition-timing-function: ease;
    transition-delay: 0s;
    text-align: center;
    font-weight: bold;
}

提前致谢!

【问题讨论】:

    标签: html css shadow


    【解决方案1】:

    简单的背景,你应该根据自己的喜好来调整值。

    button {
      color: white;
      padding: 40px 80px;
      background: linear-gradient(100deg, red 25%, blue 26%);
    }
    <button>Don't click me</button>

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-09-18
      • 2016-08-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-26
      • 1970-01-01
      相关资源
      最近更新 更多