using css to duplicate html elements

前端 未结 11 851
遥遥无期
遥遥无期 2020-12-16 13:32

I\'ve been handing a design for a webpage which I\'m trying to implement correctly. This design contains navigation elements which are partially or entirely duplicated all

11条回答
  •  别那么骄傲
    2020-12-16 14:04

    IMHO it is not possible. My solution would be adding a small PHP or other engine that automatically renders the menu in the locations where those are needed. This way your code is DRY.

提交回复
热议问题