Remove 3D push effect on a button

前端 未结 8 1558
忘掉有多难
忘掉有多难 2020-12-06 16:27

I\'m trying to remove all effects on a HTML Button element. The HTML:

8条回答
  •  太阳男子
    2020-12-06 17:01

    After you have done whatever you like with the border etc., just put a span inside the button around the text like so:

    Then the CSS becomes:

    button {position:relative; width:40px; height:20px /* set whatever width and height */}
    
    buttonspan {
    height: 30px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    }
    

提交回复
热议问题