How to make a transparent HTML button?

后端 未结 6 2081
情歌与酒
情歌与酒 2020-12-23 00:33

I am using dreamweaver to create a website and I thought of just using Photoshop to create backgrounds. I decided to do so only because in case I\'d choose to change the but

6条回答
  •  失恋的感觉
    2020-12-23 00:39

    Make a div and use your image ( png with transparent background ) as the background of the div, then you can apply any text within that div to hover over the button. Something like this:

    Your Button Label Here

    CSS:

    .button {
    height:20px;
    width:40px;
    background: url("yourimage.png");
    }
    

提交回复
热议问题