With “Inspector” the mouseover show a black box with the selector, how to copy it?
In Firefox Dev edition, when you use the inspector pointer on an element you can see a black box with the selector of that particular element. How to copy it easily ?
This will be really practical to copy, paste selector in a CSS file, when building a web site.
すべての返信 (4)
Here's a little problem. Copying a site programming without permission to use their code can become a legal issue here. So contact the site webmaster for permission to use their code first. Asking them would prevent any misunderstanding their webmaster if problems happens.
I do not think it is possible.
You can use the Copy sub menu in the left pane of the Inspector to copy the CSS path or the XPath. This isn't possible on hover AFAIK.
When you select an element, what appear in the inspector pane is not necessary the same from that hover box. If the program can generate this box you should be able to find a way to copy is content. It will be really useful.