简体   繁体   English

不同客户的多个主页

[英]Multiple home page for different clients

We have different clients asking for home page with different design layout so what is an efficient way to have multiple pages with different styles, layout for the same data coming from the database in a mvc project?我们有不同的客户要求主页具有不同的设计布局,那么在 mvc 项目中使用不同的 styles、布局来自数据库的相同数据的多个页面的有效方法是什么?

You could have different css and change the design according to the user that has logged in. If the different design includes placement of elements in different places, then you could use a grid system and store in JSON (preferably) the schema of the page.您可以有不同的 css 并根据已登录的用户更改设计。如果不同的设计包括将元素放置在不同的位置,那么您可以使用网格系统并将页面的架构存储在 JSON(最好)中。 Then, on each login you should load the JSON and place the elements accordingly.然后,在每次登录时,您应该加载 JSON 并相应地放置元素。 Hope that gave you a small hint!希望能给你一个小提示!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM