using css to duplicate html elements

前端 未结 11 819
遥遥无期
遥遥无期 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:20

    Short answer no, in css you can't create content or display it multiple times. Usually this repeated content is taken care of via server side technologies (PHP, JSP, ASPX) etc. If your site is static content (no server side processing) then your best bet is just copy and past.

    It would be possible to do this with javascript but there would be a host of downsides, better to copy and paste.

提交回复
热议问题