html - CSS Class Attribute Selector with hover -


Is this not possible or do I have a syntax error?

I have tried to do it in many ways, but nothing works.

I have classes works1 , works2 , etc.

And I want to define a general hover effect, but the result is that when I try to make it "normal" then nothing really happens

it My attitude is, is any sign?

  div [class ^ = "works"]: hover {cursor: pointer; -Winkit-Filter: Grayscale (0); Filter: Grayscale (0); Webkit-Infection: All 1s ease; -Mozy-infection: All 1s easily; -O-Infection: All 1s ease; Transition: All 1s ease; }  

Squares are used like this:

& lt; Div class = "item col-lg-2 col-md-3 col-sm-4 col-xs-12 Java function 1" & gt; & Lt; / Div & gt; . .

The problem here is that your works1 looks different from the class The beginning of the class attribute, so your attribute selector will not work.

You can take the name of the class in front of the attribute value or your elements to a normal square so that you can use a regular class selector.

Or, if you can not modify your HTML at all, use it instead (but I can suggest changing your markup if you can):

  div [class * = "works"]: hover {cursor: pointer; -Winkit-Filter: Grayscale (0); Filter: Grayscale (0); Webkit-Infection: All 1s ease; -Mozy-infection: All 1s easily; -O-Infection: All 1s ease; Transition: All 1s ease; }  

Look for explanations.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -