CN109471625A - Webpage generating method, device, electronic equipment and computer readable storage medium - Google Patents

Webpage generating method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN109471625A
CN109471625A CN201811140435.0A CN201811140435A CN109471625A CN 109471625 A CN109471625 A CN 109471625A CN 201811140435 A CN201811140435 A CN 201811140435A CN 109471625 A CN109471625 A CN 109471625A
Authority
CN
China
Prior art keywords
display
preview interface
webpage
preset
display rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811140435.0A
Other languages
Chinese (zh)
Inventor
杜孟孟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201811140435.0A priority Critical patent/CN109471625A/en
Publication of CN109471625A publication Critical patent/CN109471625A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a kind of webpage generating method, device, electronic equipment and computer readable storage mediums, the above method includes: to obtain the display rule for needing the material and material that show in target webpage, according to display rule, material is shown in preset preview interface, according to display rule, the display data of material are generated, according to material and display data, using preset auto-building html files algorithm, the web data of target webpage is generated.Based on above-mentioned processing, the web data of target webpage can be directly generated, and then improve the formation efficiency of webpage according to the display effect of material in preview interface.

Description

Webpage generating method, device, electronic equipment and computer readable storage medium
Technical field
The present invention relates to Internet technical fields, more particularly to a kind of webpage generating method, device, electronic equipment and meter Calculation machine readable storage medium storing program for executing.
Background technique
With the fast development of computer and Internet technology, network has become in people's life indispensable one Point.Most user can obtain the information on network by browsing webpage.
In the related technology, the step of auto-building html files include: the desired effect for designing webpage by webpage design personnel first, so Realize the desired effect of webpage with code means by front end developer afterwards.
However in above process, it after webpage design personnel give the desired effect figure of webpage to front end developer, needs Front end developer is waited to write code, so that the low efficiency of auto-building html files.
The technical issues of for auto-building html files low efficiency in the related technology, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of webpage generating method, device, electronic equipment and computer-readable The efficiency of auto-building html files can be improved in storage medium.Specific technical solution is as follows:
In a first aspect, in order to achieve the above object, the embodiment of the invention discloses a kind of webpage generating method, the above methods It include: to obtain the display rule for needing the material and the material that show in target webpage;It is regular according to the display, The material is shown in preset preview interface;According to the display rule, the display data of the material are generated;According to described Material and the display data generate the web data of the target webpage using preset auto-building html files algorithm.
Optionally, described to obtain the material for needing to show in target webpage, comprising: to receive uploading instructions, wherein described The material is carried in uploading instructions;According to the uploading instructions, the material is obtained.
Optionally, after the acquisition material, the method also includes: by material storage to preset element In material resources bank.
Optionally, the material for obtaining needs and being shown in target webpage, including;Receive selection of materials instruction, wherein The material mark of the material in need shown in target webpage is carried in the selection of materials instruction;From preset material resource In library, material corresponding with material mark is obtained.
Optionally, the display rule includes at least one of: each material is aobvious in the preview interface Show position;Display size of each material in the preview interface;Each material is in the preview interface Display color.
Optionally, described according to the display rule, generate the display data of the material, comprising: it receives and generates instruction, Wherein, generation instruction is used to indicate display effect of the material in the preview interface and meets preset condition;It is based on The generation instruction generates the display data according to the display rule.
Optionally, described after the material is shown in preset preview interface described according to the display rule Method further include: receive the adjustment instruction for adjusting the material, wherein the material tune is carried in the adjustment instruction Display rule after whole;The material is shown in the preview interface according to material display rule adjusted.
Second aspect, in order to achieve the above objectives, the embodiment of the invention discloses a kind of auto-building html files device, above-mentioned apparatus packets It includes: obtaining module, for obtaining the display rule for needing the material and the material that show in target webpage;First display Module, for showing the material in preset preview interface according to the display rule;First generation module is used for root According to the display rule, the display data of the material are generated;Second generation module, for according to the material and the display Data generate the web data of the target webpage using preset auto-building html files algorithm.
Optionally, the acquisition module, comprising: the first receiving submodule, for receiving uploading instructions, wherein on described The material is carried in teletype command;First acquisition submodule, for obtaining the material according to the uploading instructions.
Optionally, the acquisition module, further includes: sub-module stored, for storing the material to preset material In resources bank.
Optionally, the acquisition module, comprising: the second receiving submodule, for receiving selection of materials instruction, wherein institute State the material mark that the material in need shown in target webpage is carried in selection of materials instruction;Second acquisition submodule, from In preset material database, material corresponding with material mark is obtained.
Optionally, the display rule includes at least one of: each material is aobvious in the preview interface Show position;Display size of each material in the preview interface;Each material is in the preview interface Display color.
Optionally, first generation module is specifically used for receiving generation instruction, wherein the generation instruction is for referring to Show that display effect of the material in the preview interface meets preset condition;It is instructed based on the generation, according to described aobvious Show that rule generates the display data.
Optionally, described device further include: receiving module, for receiving the adjustment instruction for adjusting the material, In, material display rule adjusted is carried in the adjustment instruction;Second display module, for according to the material Display rule adjusted shows the material in the preview interface.
In the another aspect that the present invention is implemented, in order to achieve the above object, the embodiment of the invention also discloses a kind of electronics Equipment, above-mentioned electronic equipment include processor and memory;Memory, for storing computer program;Processor, for executing When the program stored on memory, the webpage generating method as described in above-mentioned first aspect is realized.
At the another aspect that the present invention is implemented, a kind of computer readable storage medium is additionally provided, it is above-mentioned computer-readable It is stored with instruction in storage medium, when run on a computer, realizes the auto-building html files side as described in above-mentioned first aspect Method.
At the another aspect that the present invention is implemented, the embodiment of the invention also provides a kind of, and the computer program comprising instruction is produced Product, when run on a computer, so that computer executes webpage generating method described in above-mentioned first aspect.
A kind of webpage generating method, device, electronic equipment and computer readable storage medium provided in an embodiment of the present invention, The display rule of the available material and material for needing to show in target webpage, according to display rule, preset pre- It lookes in interface and shows material, according to display rule, generate the display data of material, according to material and display data, using default Auto-building html files algorithm, generate the web data of target webpage.Based on above-mentioned processing, can according in preview interface material it is aobvious Show effect, directly generates the web data of target webpage, and then improve the formation efficiency of webpage.
Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above excellent simultaneously Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of webpage generating method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart for obtaining material method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of second provided in an embodiment of the present invention acquisition material method;
Fig. 4 is the flow chart that a kind of pair of material provided in an embodiment of the present invention is adjusted method;
Fig. 5 is the schematic diagram that a kind of user's operation provided in an embodiment of the present invention generates webpage;
Fig. 6 is a kind of structure chart of auto-building html files device provided in an embodiment of the present invention;
Fig. 7 is a kind of structure chart for obtaining material device provided in an embodiment of the present invention;
Fig. 8 is the structure chart of second provided in an embodiment of the present invention acquisition material device;
Fig. 9 is the structure chart of second of auto-building html files device provided in an embodiment of the present invention;
Figure 10 is the structure chart of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The present patent application provides a kind of webpage generating method, device, electronic equipment and computer readable storage medium, on The method of stating can be applied to terminal, also can be applied to server.The embodiment of the present invention is in the above way applied to for terminal It is illustrated, other situations are similar therewith.Terminal is available to need the aobvious of the material that shows in target webpage and material Show rule, according to display rule, shows material in preset preview interface.Terminal can generate material according to display rule Display data, the web data of target webpage using preset auto-building html files algorithm is generated according to material and display data. Based on above-mentioned processing, the web data of target webpage can be directly generated, in turn according to the display effect of material in preview interface Improve the formation efficiency of webpage.
It describes in detail below by specific embodiment to the present invention.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of webpage generating method provided in an embodiment of the present invention, comprising:
S101: the display rule for needing the material and material that show in target webpage is obtained.
In an implementation, when user needs to generate target webpage, user can directly using terminal local resource in Material.User can select to need material to be used in selection of materials interface.Terminal then can receive selection of materials and refer to It enables, the material that user needs to show in target webpage is then searched in local resource.Alternatively, if the local resource of terminal In do not have user need material, user can also oneself upload material;Alternatively, user, which can also search in a network needs, to be made Material, user can input in terminal needs the material searched for mark or story types, terminal then to can receive carrying There is the search instruction of material mark or story types, then, terminal can be scanned in a network, be obtained according to search instruction The material shown in target webpage is needed to user.Wherein, above-mentioned material can be one, be also possible to multiple.Material can To include picture, text etc..Specifically, the method that terminal obtains material, will be discussed in detail in subsequent embodiment.
After user selects material, display rule of the material in target webpage can also be set.Terminal can then receive aobvious Show setting instruction, the display rule of material can be carried in display setting instruction.The display rule of material may include with Lower rule: the size that position that material is shown in target webpage, material are shown in target webpage, material is in target webpage The color of display.
S102: according to display rule, material is shown in preset preview interface.
Wherein, preview interface can be the interface for showing display effect of the material in target webpage.User can be with The display effect of material in preview interface is browsed, and can according to need, display rule corresponding to material is adjusted, so that The display effect of each material reaches the display effect of ideal interface expected from user in preview interface.
In an implementation, when above-mentioned material is multiple, for each material, terminal can be according to the corresponding display of the material Rule shows the material in preview interface.
In this step, for a certain material, if not including certain in the corresponding display rule of the material that terminal receives One rule, corresponding this rule setting of the material can be default parameters by terminal, alternatively, the material pair can also be kept This rule answered is the initial parameter of the material.Illustratively, for picture materials A, the initial parameter of size is 800 × The corresponding display rule of 600, the picture materials A that terminal receives are as follows: be shown centered on.At this point, terminal can be according to the figure of default The size of picture materials A is adjusted to 400 × 300 and is shown centered in preview interface by piece size parameter 400 × 300.Terminal Directly picture can be shown centered in preview interface with 800 × 600 size.
S103: according to display rule, the display data of material are generated.
In an implementation, for each material, the corresponding display rule of terminal material of available current time, by the element The parameter of each single item rule of the corresponding display rule of material, the display data as the material.For example, being directed to a certain material, such as The size of the current material of fruit is 400 × 300, then include in the display data of the material material display size (i.e. 400 × 300).In addition, if the current material is to be shown centered on, it can also be including the display of the material in the display data of the material Location information (is shown centered on).
It should be noted that being directed to a certain material, the material current time corresponding display rule can be with above-mentioned S101 The display rule for the material that middle terminal obtains is identical, the display rule for the material that can also be obtained with terminal in above-mentioned S101 It is not identical.
Optionally, terminal can also generate display data according to the instruction of user.Specifically, terminal generates display data Method may comprise steps of:
Step 1 receives and generates instruction.
Wherein, instruction is generated to be used to indicate display effect of the material in preview interface and meet preset condition.Preset condition It can be display effect of each material in preview interface expected from user.
In an implementation, user browse preview interface, and adjust each material display rule during, when user determine When the display effect of each material reaches ideal interface expected from user, user can input to terminal and generate instruction.For example, preview " generation " button can be set in interface, when user determines that the display effect of each material reaches ideal interface expected from user When, user can click " generation " button, generate instruction to input to terminal.Correspondingly, then to can receive user defeated for terminal The generation instruction entered.
Step 2 generates display data according to display rule based on instruction is generated.
In an implementation, terminal can generate display data according to display rule based on instruction is generated.Specifically, working as terminal When receiving generation instruction, terminal can generate the display data of each material according to the display rule of current each material.Terminal root According to display rule, the method for generating display data can refer to being discussed in detail for above-mentioned S103, and details are not described herein again.
S104: the webpage number of target webpage is generated using preset auto-building html files algorithm according to material and display data According to.
In an implementation, preset auto-building html files algorithm can be installed in the terminal in the form of application program.This applies journey Sequence can generate web data according to the display data of material and material.Terminal can send out the display data of material and material It send to the application program.After application program receives the display data of material and material, the webpage number of target webpage can be generated According to.Wherein, web data may include the display rule of above-mentioned material and each material indicated with code form.Terminal generates After web data, web data can be stored in the terminal, web data can also be sent to the format of web document Corresponding server, so that the accessible server of user, and then browsing objective webpage.Above-mentioned web document can be super text This markup language (Hyper Text Markup Language, HTML) document.
From the above, it is seen that the webpage generating method based on the embodiment of the present invention, allows user according to preview circle The display effect of material in face directly generates the web data of target webpage, and then improves the formation efficiency of webpage.
Optionally, for there is no the case where material of user's needs, the available user of terminal in the local resource of terminal The material of upload.Referring to fig. 2, Fig. 2 is a kind of flow chart for obtaining material method provided in an embodiment of the present invention.On specifically, Stating processing step may include:
S201: uploading instructions are received.
Wherein, material (i.e. the material of user's upload) can be carried in uploading instructions.
In an implementation, if the material for not having user to need in the local resource of terminal, user can upload boundary in material In face, the material shown on target webpage will be needed to be uploaded to terminal.The upload that terminal then can receive user's input refers to It enables.User can once upload a material, can also once upload multiple materials.
S202: according to uploading instructions, material is obtained.
In an implementation, terminal can parse uploading instructions, obtain the material of user's upload.
From the above, it is seen that the webpage generating method based on the embodiment of the present invention, terminal can receive user's upload Material generates web data according to the material that user uploads.Based on above-mentioned processing, the individualized webpage design of user can satisfy Demand, and then improve user experience.
Optionally, terminal can also store the material of user's upload.Specifically, after obtaining the material that user uploads, The above method can also include:
By material storage into preset material database.
Wherein, material database can be in terminal for storing the memory space of material.It can be in the material database The preset material of technical staff is stored in advance.Material can be respectively stored in memory space according to the type of material by terminal Different subregions, wherein the type of material can be picture or text.
In an implementation, the material that terminal can upload user is stored into preset material database.Specifically, terminal Each material that user uploads is stored in material database corresponding point by the type for the material that can be uploaded according to user Area.
From the above, it is seen that the webpage generating method based on the embodiment of the present invention, the element that terminal can upload user Material is stored in material database.Based on above-mentioned processing, terminal can be enriched constantly material database, higher to meet user Webpage design demand, and then improve user experience.
Optionally, it can also realize that terminal directly obtains material in local resource.It is that the present invention is implemented referring to Fig. 3, Fig. 3 The flow chart for second of acquisition material method that example provides.Specifically, above-mentioned processing step may include:
S301: selection of materials instruction is received.
Wherein, the material mark of the material in need shown in target webpage can be carried in selection of materials instruction.
In an implementation, when user needs to select material in material database, selection of materials can be inputted to terminal and referred to It enables, terminal can receive selection of materials instruction.
S302: from preset material database, material corresponding with material mark is obtained.
In an implementation, the material mark that terminal obtains can be one, or multiple.For each material of acquisition Mark, terminal can scan in material database, obtain material corresponding with material mark.
From the above, it is seen that the webpage generating method based on the embodiment of the present invention, terminal can provide material for user Resources bank facilitates user to select material, improves the efficiency of auto-building html files.
Optionally, display rule may include at least one of:
Display position of each material in preview interface;
Display size of each material in preview interface;
Display color of each material in preview interface.
Wherein, for picture materials, display position can use coordinate of the central point of the picture materials in preview interface It indicates, display size can indicate that display color is usually the primitive color of the picture materials with the length of the picture materials and width; For text material, display position can use coordinates table of the central point of the text box where text material in preview interface Show, display size can indicate that display color is usually the color of user setting with the font size of text in text material.
From the above, it is seen that the webpage generating method based on the embodiment of the present invention, allows a user to specify that material Display position, display size and display color, meet the individualized webpage design requirement of user, improve user experience.
Optionally, it can also realize and material is adjusted according to the demand of user.Referring to fig. 4, Fig. 4 is that the present invention is implemented A kind of pair of material that example provides is adjusted the flow chart of method.Specifically, above-mentioned processing step may include:
S401: the adjustment instruction for adjusting material is received.
Wherein, material display rule adjusted can be carried in adjustment instruction.
In an implementation, after user browses the display effect of material in preview interface, if not to current display effect It is satisfied, it can choose and the material in preview interface is adjusted.Terminal can then receive adjustment instruction, after obtaining material adjustment Display rule.For a certain material, if user does not need to be adjusted the material, material display rule adjusted It is then identical as the display rule before adjustment.
S402: material is shown in preview interface according to material display rule adjusted.
In an implementation, terminal can be adjusted a material, can also be adjusted to multiple materials.Terminal can be with Material adjusted is shown in preview interface.Illustratively, the picture materials being shown centered on can be adjusted to left by terminal No. 12 fonts are adjusted to No. 14 fonts, black font are adjusted to yellow font by alignment display.
From the above, it is seen that the webpage generating method based on the embodiment of the present invention, allows user to preview interface In material be adjusted, until reaching the desired effect of user, and then improve user experience.
Referring to Fig. 5, Fig. 5 is the schematic diagram that a kind of user's operation provided in an embodiment of the present invention generates webpage.
Wherein, the display effect of material is shown in preview interface 1 according to the display rule received for terminal, user can be with The display effect of preview interface 1 is browsed, if user wants to be adjusted material, adjustment instruction can be inputted to terminal.Eventually End can be adjusted material according to adjustment instruction, until reach the desired effect of user, i.e., the display effect in preview interface 2 Fruit.Optionally, user can click " generation " button in preview interface, then terminal can be according to the display number of material and material According to generation web data (xx.html document).Xx.html document can be sent to server by terminal.Based on above-mentioned processing, use Family can access server by mobile phone terminal or computer end, with browsing objective webpage.
Corresponding with above method embodiment, referring to Fig. 6, Fig. 6 is a kind of auto-building html files dress provided in an embodiment of the present invention The structure chart set, comprising:
Module 601 is obtained, for obtaining the display rule for needing the material and material that show in target webpage;
First display module 602, for showing material in preset preview interface according to display rule;
First generation module 603, for generating the display data of material according to display rule;
Second generation module 604, for generating mesh using preset auto-building html files algorithm according to material and display data Mark the web data of webpage.
It optionally, is a kind of structure chart for obtaining material device provided in an embodiment of the present invention referring to Fig. 7, Fig. 7, wherein Module 601 is obtained, may include:
First receiving submodule 6011, for receiving uploading instructions, wherein carry material in uploading instructions;
First acquisition submodule 6012, for obtaining material according to uploading instructions.
Optionally, module 601 is obtained, can also include:
Sub-module stored, for storing material into preset material database.
It optionally, is the structure chart of second provided in an embodiment of the present invention acquisition material device referring to Fig. 8, Fig. 8, In, module 601 is obtained, may include:
Second receiving submodule 6013, for receiving selection of materials instruction, wherein carried in selection of materials instruction in need The material of the material shown in target webpage identifies;
Second acquisition submodule 6014 obtains material corresponding with material mark from preset material database.
Optionally, display rule may include at least one of:
Display position of each material in preview interface;
Display size of each material in preview interface;
Display color of each material in preview interface.
Optionally, first generation module 603 is specifically used for receiving generation instruction, wherein the generation instruction is used for Indicate that display effect of the material in the preview interface meets preset condition;
It is instructed based on the generation, the display data is generated according to the display rule.
It optionally, is the structure chart of second of auto-building html files device provided in an embodiment of the present invention referring to Fig. 9, Fig. 9, it is above-mentioned Device can also include:
Receiving module 605, for receiving the adjustment instruction for adjusting material, wherein carry material in adjustment instruction Display rule adjusted;
Second display module 606, for showing material in preview interface according to material display rule adjusted.
It should be noted that above-mentioned apparatus can be located in terminal, can also be located in server, but it is not limited to this.
The embodiment of the invention also provides a kind of electronic equipment, as shown in Figure 10, including memory 1001 and processor 1002, wherein memory 1001, for storing computer program;Processor 1002 is stored on memory 1001 for executing Program when, the step of realizing above-mentioned webpage generating method, it is alternatively possible to realize following steps: obtaining and need in target network The display rule of the material and material that are shown in page;According to display rule, material is shown in preset preview interface;According to Display rule, generates the display data of material;Mesh is generated using preset auto-building html files algorithm according to material and display data Mark the web data of webpage.
Specific implementation and relevant explanation content about each step of this method may refer to preceding method embodiment portion Point, this will not be repeated here.
Above-mentioned electronic equipment can have the communication interface realized and communicated between above-mentioned electronic equipment and other equipment.
Above-mentioned processor 1002, communication interface, memory 1001 complete mutual communication by communication bus, herein The communication bus being previously mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) Bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..It should Communication bus can be divided into address bus, data/address bus, control bus etc..
Memory 1001 may include random access memory (Random Access Memory, RAM), also may include Nonvolatile memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory It can also be that at least one is located remotely from the storage device of aforementioned processor.
Above-mentioned processor 1002 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Electronic equipment provided in an embodiment of the present invention can allow webpage design personnel according to pre- when generating webpage It lookes at the display effect of material in interface, directly generates the web data of target webpage, and then improve the formation efficiency of webpage.
The embodiment of the invention also provides a kind of computer readable storage medium, stored in the computer readable storage medium There is instruction, when run on a computer, so that computer executes webpage generating method provided in an embodiment of the present invention.
Optionally, above-mentioned webpage generating method, comprising: obtain the material and material for needing to show in target webpage Display rule;According to display rule, material is shown in preset preview interface;According to display rule, the display of material is generated Data;The web data of target webpage is generated using preset auto-building html files algorithm according to material and display data.
It should be noted that other implementations of above-mentioned webpage generating method are identical as preceding method embodiment part, Which is not described herein again.
By running the instruction stored in computer readable storage medium provided in an embodiment of the present invention, webpage is being generated When, webpage design personnel can be allow to directly generate the webpage of target webpage according to the display effect of material in preview interface Data, and then improve the formation efficiency of webpage.
The embodiment of the invention also provides a kind of computer program products comprising instruction, when it runs on computers When, so that computer executes webpage generating method provided in an embodiment of the present invention.
Optionally, above-mentioned webpage generating method, comprising: obtain the material and material for needing to show in target webpage Display rule;According to display rule, material is shown in preset preview interface;
According to display rule, the display data of material are generated;According to material and display data, preset auto-building html files are utilized Algorithm generates the web data of target webpage.
It should be noted that other implementations of above-mentioned webpage generating method are identical as preceding method embodiment part, Which is not described herein again.
It can make webpage design when generating webpage by running computer program product provided in an embodiment of the present invention Personnel can directly generate the web data of target webpage, and then improve webpage according to the display effect of material in preview interface Formation efficiency.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.Above-mentioned computer program Product includes one or more computer instructions.When loading on computers and executing above-mentioned computer program instructions, all or It partly generates according to process or function described in the embodiment of the present invention.Above-mentioned computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.Above-mentioned computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, above-mentioned computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.Above-mentioned computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.Above-mentioned usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For electronic equipment, computer readable storage medium, computer program product embodiments, implement since it is substantially similar to method Example, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (16)

1. a kind of webpage generating method, which is characterized in that the described method includes:
Obtain the display rule for needing the material and the material that show in target webpage;
According to the display rule, the material is shown in preset preview interface;
According to the display rule, the display data of the material are generated;
The webpage of the target webpage is generated using preset auto-building html files algorithm according to the material and the display data Data.
2. the method according to claim 1, wherein described obtain needs the material that shows in target webpage, Include:
Receive uploading instructions, wherein the material is carried in the uploading instructions;
According to the uploading instructions, the material is obtained.
3. according to the method described in claim 2, it is characterized in that, the method is also wrapped after the acquisition material It includes:
By material storage into preset material database.
4. the method according to claim 1, wherein described obtain needs the material that shows in target webpage, Including;
Receive selection of materials instruction, wherein carry the material in need shown in target webpage in the selection of materials instruction Material mark;
From preset material database, material corresponding with material mark is obtained.
5. the method according to claim 1, wherein display rule includes at least one of:
Display position of each material in the preview interface;
Display size of each material in the preview interface;
Display color of each material in the preview interface.
6. method according to claim 1 or 5, which is characterized in that it is described according to the display rule, generate the material Display data, comprising:
It receives and generates instruction, wherein the generation instruction is used to indicate display effect of the material in the preview interface Meet preset condition;
It is instructed based on the generation, the display data is generated according to the display rule.
7. the method according to claim 1, wherein described according to the display rule, in preset preview After showing the material in interface, the method also includes:
Receive the adjustment instruction for adjusting the material, wherein it is adjusted that the material is carried in the adjustment instruction Display rule;
The material is shown in the preview interface according to material display rule adjusted.
8. a kind of auto-building html files device, which is characterized in that described device includes:
Module is obtained, for obtaining the display rule for needing the material and the material that show in target webpage;
First display module, for showing the material in preset preview interface according to the display rule;
First generation module, for generating the display data of the material according to the display rule;
Second generation module, for generating institute using preset auto-building html files algorithm according to the material and the display data State the web data of target webpage.
9. device according to claim 8, which is characterized in that the acquisition module, comprising:
First receiving submodule, for receiving uploading instructions, wherein the material is carried in the uploading instructions;
First acquisition submodule, for obtaining the material according to the uploading instructions.
10. device according to claim 9, which is characterized in that the acquisition module, further includes:
Sub-module stored, for storing the material into preset material database.
11. device according to claim 8, which is characterized in that the acquisition module, comprising:
Second receiving submodule, for receiving selection of materials instruction, wherein carried in the selection of materials instruction in need in mesh The material mark of the material shown in mark webpage;
Second acquisition submodule obtains material corresponding with material mark from preset material database.
12. device according to claim 8, which is characterized in that the display rule includes at least one of:
Display position of each material in the preview interface;
Display size of each material in the preview interface;
Display color of each material in the preview interface.
13. the device according to claim 8 or 12, which is characterized in that first generation module refers to for receiving to generate It enables, wherein the generation instruction is used to indicate display effect of the material in the preview interface and meets preset condition;With And instructed based on the generation, the display data are generated according to the display rule.
14. device according to claim 8, which is characterized in that described device further include:
Receiving module, for receiving the adjustment instruction for adjusting the material, wherein carried in the adjustment instruction described Material display rule adjusted;
Second display module, for showing the element in the preview interface according to material display rule adjusted Material.
15. a kind of electronic equipment, which is characterized in that including memory and processor;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes side as claimed in claim 1 to 7 Method step.
16. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program, the computer program realize method and step as claimed in claim 1 to 7 when being executed by processor.
CN201811140435.0A 2018-09-28 2018-09-28 Webpage generating method, device, electronic equipment and computer readable storage medium Pending CN109471625A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811140435.0A CN109471625A (en) 2018-09-28 2018-09-28 Webpage generating method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811140435.0A CN109471625A (en) 2018-09-28 2018-09-28 Webpage generating method, device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109471625A true CN109471625A (en) 2019-03-15

Family

ID=65664739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811140435.0A Pending CN109471625A (en) 2018-09-28 2018-09-28 Webpage generating method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109471625A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831279A (en) * 2019-04-22 2020-10-27 华为技术有限公司 Interface code generation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100023493A1 (en) * 2000-09-22 2010-01-28 Frederick Douglis Methods, Systems & Products for Generating Web Pages
CN105956026A (en) * 2016-04-22 2016-09-21 北京小米移动软件有限公司 Webpage rendering method and apparatus
CN107943924A (en) * 2017-11-21 2018-04-20 福州聆花信息科技有限公司 Method for automatically generating webpage theme, storage medium and electronic equipment
CN108345687A (en) * 2018-03-09 2018-07-31 沈文策 A kind of 3D web page display method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100023493A1 (en) * 2000-09-22 2010-01-28 Frederick Douglis Methods, Systems & Products for Generating Web Pages
CN105956026A (en) * 2016-04-22 2016-09-21 北京小米移动软件有限公司 Webpage rendering method and apparatus
CN107943924A (en) * 2017-11-21 2018-04-20 福州聆花信息科技有限公司 Method for automatically generating webpage theme, storage medium and electronic equipment
CN108345687A (en) * 2018-03-09 2018-07-31 沈文策 A kind of 3D web page display method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831279A (en) * 2019-04-22 2020-10-27 华为技术有限公司 Interface code generation method and device

Similar Documents

Publication Publication Date Title
US9971740B2 (en) Dynamic webpage image
US10769353B2 (en) Dynamic streaming content provided by server and client-side tracking application
US20180191798A1 (en) Methods and systems for server-side rendering of native content for presentation
TWI590157B (en) Compressed serialization of data for communication from a client-side application
US9680897B2 (en) Throttled scanning for optimized compression of network communicated data
US10339572B2 (en) Tracking user interaction with a stream of content
US10205678B2 (en) Systems and methods for client-side dynamic information resource activation and deactivation
CN104035929A (en) Webpage screenshot method and device
CN104978358B (en) The method and intercepting page segment of desktop presentation web page fragments are to desktop presentation system
US11488213B2 (en) Tracking user interaction with a stream of content
US20170031877A1 (en) Web Page Design System
EP3559818B1 (en) Maintaining session identifiers across multiple webpages for content selection
US11042600B1 (en) System for customizing presentation of a webpage
US20100211559A1 (en) System and method for exposing both portal and web content within a single search collection
CN109471625A (en) Webpage generating method, device, electronic equipment and computer readable storage medium
KR102118933B1 (en) Method and server for recommending webpage
US20190129594A1 (en) Display processing apparatus, non-transitory computer readable medium, and display device driving method
EP3382579A1 (en) Information processor and information processing method
JP5470500B1 (en) Application generation apparatus, application generation system, and application generation method
JP2019079401A (en) Generating apparatus, terminal apparatus, sharing page generating system, generating method, and control program
EP2557505A1 (en) Web display program conversion system, web display program conversion method, and program for web display program conversion
JP6111735B2 (en) COMMUNICATION SYSTEM, SERVER DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP4936413B1 (en) Web display program conversion system, web display program conversion method, and web display program conversion program
JP2019003562A (en) Information processing system and control method of information processing system
WO2020065728A1 (en) Program, recording medium, and system for converting display instruction data for instructing display of web page

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination