How do I make a transparent border with CSS?

后端 未结 9 1339
时光说笑
时光说笑 2020-12-13 23:04

I have an li styled as follows:

li{
    display:inline-block;
    padding:5px;
    border:1px solid none;
}
li:hover{
    border:1px solid #FC0;         


        
9条回答
  •  长情又很酷
    2020-12-13 23:36

    The easiest solution to this is to use rgba as the color: border-color: rgba(0,0,0,0); That is fully transparent border color.

提交回复
热议问题