Dynamically changing image colours

前端 未结 3 1480
别跟我提以往
别跟我提以往 2021-01-06 00:04

I am developing an application which displays multiple views as tables (for example customers, products, etc.). The last column of each row contains buttons, using which the

3条回答
  •  悲&欢浪女
    2021-01-06 00:53

    Can you post one of those images? Because if it's transparent as you say, you could just style the a that contains those images.

    For example:

    .actions > a {
        width: 40px;
        height: 20px;
        display: block;
        border-radius: 5px;
        border-width: 1px;
        border-style: solid;
    }
    
    .actions > a.green {
        background-color: green;
        border-color: darkgreen;
    }
    
    .actions > a.orange {
        ...
    }
    

    And so on.

提交回复
热议问题