using css to duplicate html elements

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

    It won't be much of a problem if your repeating the code for the links in a single file only {your using it as a template and pushing in the content dynamically}.

    I won't make assumptions on which server-side technology your using, but you can quickly manage this with JavaScript. Write the HTML for the links, assign it to a JavaScript variable and just echo it where you need it.

    Also, if you happen to be using scriptalicious, your in luck! You can use Builder to dynamically create DOM elements.

提交回复
热议问题