Is there a way to reference an existing CSS style from another CSS style using CSS or javascript?
问题 If I have a style defined .style1 { width: 140px; } can I reference it from a second style? .style2 { ref: .style1; } Or is there a way via javascript/jQuery? --- Edit To clarify the problem, I am trying to apply whatever style is defined for a #x and #c to .x and .c without altering the CSS as the CSS is going to have updates that are out of my control. I used width but really the style would be something more complex with font, border and other style elements being specified. Specifying