Home > Back-end >  The realization of the system
The realization of the system

Time:09-20

I want to ask a question: now there are a lot of news APP or website
Is how to implement their news editing function, and the layout of the news is
News contained in the image, video and other elements, how to ensure the elements displayed on the interface problems, mainly on the phone's display

CodePudding user response:

Is simple, both PC and mobile terminal, the general ideas are as follows: 1. Both words and pictures are top-down arrangement, (2) in the uploaded to the server through interface for users to edit the persistence, front-end needs according to edit the position of the words and images for the data and order id, such as transmission JSON data to the back-end words
 {" text 1 ":" XXXXXXX "and" picture 1 ":" XXXXX. JPG ", "text 2" : "XXXXX"} 
, so the back-end store the data in the form of the orderly, 3. When the need to display, to transmit such order of words and images to the front, front end can be orderly layout shows,

CodePudding user response:

You can refer to you post editor, meaning is similar

CodePudding user response:

The main or editor
  • Related