css - AspNet Set Focus() works but :focus style's not apply -


when value insert in textbox focus specific button on page. wrote this:

  private sub calcolaimporto() handles txtqnt.textchanged     try        //some code              btnadd.focus()     catch ex exception         m_writelogeventi(methodinfo.getcurrentmethod().name, "si รจ verificato un errore:", ex.tostring(), loglivello.errore,,, true)      end try  end sub 

in fact onfocus because if press enter instruction of button stars.

this scss rule

&.action {     background-color: $verde;     text-transform: uppercase;      &:hover {         background-color: lighten($verde,10%);     }      &:focus {         -webkit-box-shadow: 0 0 9px 0 $verde;         box-shadow: 0 0 9px 0 $verde;         background-color: lighten($verde,10%) !important;     } 

}

however style defined in css (: focus) not applied. why? make clear user button focused

do try these code:

button:focus {   background: pink; } 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -