Tag:cssjavascript
Article From:https://segmentfault.com/q/1010000013341263
Question:

The code is as follows:


Here is the mistake, is the format not written, please. How should the pseudo class selector format in data write.

Answer 0:

Your styles is an object li:hover:{}. This format is wrong.

What is the meaning of this writing, pseudo elements can not be set up inline style, rather than a class written in CSS file or style.

Answer 1:

Add the string to the key. ‘a’:’123′

Leave a Reply

Your email address will not be published. Required fields are marked *