How to get XML Element name in CSS -
I have an XML document and want to style it with CSS, how do I ensure that each element values element name With : first.
For example
elem> Element & lt; / ELEM & gt;
elem: element when CSS is implemented.
I am currently trying to write in the CSS file
elem: first {content: attr (name) ":";} < / Pre> But attr (name) does not seem to work, is it possible to get the XML element name in the style inside the CSS file?
I think this is not possible. Attribute 'attribute' as the attribute name, not the tag name. To rewrite the tag data in some data-* attribute, you should write some JS and then the ATR CSS function can start working.
Comments
Post a Comment