CN108897755A - Webpage generating method, device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN108897755A
CN108897755A CN201810427811.8A CN201810427811A CN108897755A CN 108897755 A CN108897755 A CN 108897755A CN 201810427811 A CN201810427811 A CN 201810427811A CN 108897755 A CN108897755 A CN 108897755A
Authority
CN
China
Prior art keywords
web page
module
terminal
webpage
ratio
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
CN201810427811.8A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201810427811.8A priority Critical patent/CN108897755A/en
Publication of CN108897755A publication Critical patent/CN108897755A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application involves a kind of webpage generating method, device, computer equipment and storage mediums.The method includes:The web access requests that terminal is sent are received, web access requests carry display the ratio of width to height, terminal resolution ratio, terminal display size and access address;Standard shows size corresponding with display the ratio of width to height is searched, scaling is obtained according to terminal display size and standard shows size;The corresponding scalable resolution ratio section of scaling is searched, terminal resolution ratio is compared with scalable resolution ratio section;When terminal resolution ratio is not at scalable resolution ratio section, web page template corresponding with access address, display the ratio of width to height and scaling, Web page module and modules exhibit information are obtained, web page template and Web page module are carried out by assembling according to modules exhibit information and generate the first adaptation webpage;First adaptation webpage is returned into terminal.Display effect of network page can be improved using this method.

Description

Webpage generating method, device, computer equipment and storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of webpage generating method, device, computer equipment and Storage medium.
Background technique
In order to meet the increasingly increased individual demand of people, terminal device is more and more diversified, terminal device display screen Size, the type of type be also varied.When Web content is shown, displaying effect of the same webpage on different terminal equipment Fruit is widely different, and same webpage design can not be suitable for all terminal devices.Currently, being all the adjustment scaled by webpage Mode adapts to different terminals, but it is possible that the fuzzy problem of distortion, web page contents, effect adjusted after scaling Not fully up to expectations, display effect of network page is poor.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of auto-building html files that can be improved display effect of network page Method, apparatus, computer equipment and storage medium.
A kind of webpage generating method, the method includes:
Receive the web access requests that terminal is sent, the web access requests carry display the ratio of width to height, terminal resolution ratio, Terminal display size and access address;
Standard shows size corresponding with described display the ratio of width to height is searched, according to the terminal display size and the standard Display size obtains scaling;
The corresponding scalable resolution ratio section of the scaling is searched, by the terminal resolution ratio and described scalable point Resolution section is compared;
When the terminal resolution ratio is not at the scalable resolution ratio section, obtain and the access address, described aobvious Show the ratio of width to height and the corresponding web page template of the scaling, Web page module and modules exhibit information, according to the modules exhibit The web page template and the Web page module are carried out assembling and generate the first adaptation webpage by information;
The first adaptation webpage is returned into the terminal.
In one of the embodiments, when the terminal resolution ratio is located at the scalable resolution ratio section, institute is searched State access address and the corresponding standard web page of described display the ratio of width to height;
Ratio adjustment is carried out to the standard web page according to the scaling and generates the second adaptation webpage, by described second Adaptation webpage returns to the terminal.
The acquisition and the access address, described display the ratio of width to height and the pantograph ratio in one of the embodiments, The corresponding web page template of example, Web page module and modules exhibit information, according to the modules exhibit information by the Web page module and The Web page module carries out assembling and generates the first adaptation webpage, including:
When the scaling is less than or equal to the first preset ratio threshold value, obtains the access address and the display is wide For height than corresponding first web page template, the label model obtained in first web page template shows information;
The user tag in the web access requests is read, the label webpage mould to match with the user tag is searched Block;
Show that information carries out size adjusting to the label Web page module according to the label model, by label adjusted Web page module carries out assembling generation first with first web page template and is adapted to webpage.
The acquisition and the access address, described display the ratio of width to height and the pantograph ratio in one of the embodiments, The corresponding web page template of example, Web page module and modules exhibit information, according to the modules exhibit information by the Web page module and The Web page module carries out assembling and generates the first adaptation webpage, including:
When the scaling is more than or equal to the second preset ratio threshold value, obtain and the access address and the display Corresponding second web page template of the ratio of width to height obtains the fixed module in second web page template and shows information and operation module exhibition Show information;
Search the corresponding fixed Web page module of second web page template and the corresponding operation webpage mould of the access address Block;
Show that information carries out size adjusting to the fixed Web page module according to the fixed module, according to the operation mould Block shows that information carries out size adjusting to the operation Web page module, by fixed Web page module adjusted, operation adjusted Web page module carries out assembling generation first with second web page template and is adapted to webpage.
The acquisition and the access address, described display the ratio of width to height and the pantograph ratio in one of the embodiments, The corresponding web page template of example, Web page module and modules exhibit information, according to the modules exhibit information by the Web page module and The Web page module carries out assembling and generates the first adaptation webpage, including:
When the scaling is greater than the first preset ratio threshold value and when less than the second preset ratio threshold value, obtain with it is described Access address and the corresponding third web page template of described display the ratio of width to height, obtain the standard module exhibition in the third web page template Show information;
Search the corresponding standard web page module of the third web page template;
Show that information carries out size adjusting to the standard web page module according to the standard module, by standard adjusted Web page module carries out assembling generation first with the third web page template and is adapted to webpage.
Further include in one of the embodiments,:
The terminal models for obtaining the terminal judge whether the terminal is that can hold terminal according to the terminal models;
When the terminal, which is, to hold terminal, obtained being inverted the ratio of width to height according to described display the ratio of width to height;
It obtains inversion web page template corresponding with the access address, described inversion the ratio of width to height and the scaling, fall It sets Web page module and inversion module and shows information, show information by the inversion web page template and described according to the inversion module It is inverted Web page module and carries out assembling generation inversion adaptation webpage;
Inversion adaptation webpage is returned into the terminal.
A kind of auto-building html files device, described device include:
Request receiving module, for receiving the web access requests of terminal transmission, the web access requests carry display The ratio of width to height, terminal resolution ratio, terminal display size and access address;
Parameter acquisition module, for searching standard shows size corresponding with described display the ratio of width to height, according to the terminal Display size and the standard shows size obtain scaling;
Resolution ratio comparison module, for searching the corresponding scalable resolution ratio section of the scaling, by the terminal Resolution ratio is compared with the scalable resolution ratio section;
First auto-building html files module, for obtaining when the terminal resolution ratio is not at the scalable resolution ratio section Web page template corresponding with the access address, described display the ratio of width to height and the scaling, Web page module and modules exhibit The web page template and the Web page module are carried out assembling according to the modules exhibit information and generate the first adaptation net by information Page;
First webpage return module, for the first adaptation webpage to be returned to the terminal.
Device further includes in one of the embodiments,:
Standard web page searching module, for searching when the terminal resolution ratio is located at the scalable resolution ratio section The access address and the corresponding standard web page of described display the ratio of width to height;
Second auto-building html files module generates for carrying out ratio adjustment to the standard web page according to the scaling The second adaptation webpage is returned to the terminal by two adaptation webpages.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing The step of device realizes the above method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of above method is realized when row.
Above-mentioned webpage generating method, device, computer equipment and storage medium, in the web page access for receiving terminal transmission After request, the display such as the ratio of width to height, resolution ratio and display size of terminal information in web access requests is obtained, according to the aobvious of terminal Show that information obtains the scaling of webpage, and according to judging whether the resolution ratio of terminal is located at that scaling is corresponding to be compared In the resolution ratio interval range of example scaling, when being not belonging in resolution ratio interval range, the corresponding webpage cloth of display information is obtained Web page contents module is re-started assembling generation adaptation webpage and returns to terminal, so as to improve access webpage by office's information Display effect at the terminal meets the web displaying demand of each Terminal Type.
Detailed description of the invention
Fig. 1 is the application scenario diagram of webpage generating method in one embodiment;
Fig. 2 is the flow diagram of webpage generating method in one embodiment;
Fig. 3 is the flow diagram of webpage generating method in another embodiment;
Fig. 4 is the structural block diagram of auto-building html files device in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Before embodiment according to the present invention is described in detail, it should be noted that, the embodiment described essentially consist in The combination of webpage generating method, device, the step of computer equipment and storage medium correlation and system component.Therefore, affiliated system System component and method and step are showed in position by ordinary symbol in the accompanying drawings, and merely illustrate with Understand the related details of the embodiment of the present invention, in order to avoid because being shown for having benefited from those of ordinary skill in the art of the invention And it those of is clear to details and has obscured the disclosure.
Herein, such as left and right, upper and lower, front and rear, first and second etc relational terms are used merely to area Divide an entity or movement and another entity or movement, and not necessarily requires or imply and is between this entity or movement any Actual this relationship or sequence.The terms "include", "comprise" or any other variant are intended to cover non-exclusive inclusion, by This to include the process, method, article or equipments of a series of elements not only to include these elements, but also includes not bright The other element really listed, or be elements inherent to such a process, method, article, or device.
Webpage generating method provided by the present application can be applied in application environment as shown in Figure 1.Wherein, terminal is logical Network is crossed to be communicated with server.Terminal to server sends web access requests, and server receives the net of terminal transmission After access to web page request, display the ratio of width to height, terminal resolution ratio, terminal display size and access address are read from web access requests Etc. information, server is searched and shows the corresponding standard shows size of the ratio of width to height, according to terminal display size and standard shows ruler It is very little to obtain scaling, the corresponding scalable resolution ratio section of scaling is searched, judges terminal resolution ratio whether scalable In resolution ratio section, when server judges terminal resolution ratio not in scalable resolution ratio section, obtain with access address, It shows the ratio of width to height and the corresponding web page template of scaling, Web page module and modules exhibit information and carries out assembling generation first and fit With webpage, the first adaptation webpage of generation is returned to terminal by server.So that the webpage returned has more at the terminal Good display effect.Wherein, terminal can be, but not limited to be various personal computers, laptop, smart phone, plate electricity Brain and portable wearable device, server can use the server cluster of the either multiple server compositions of independent server To realize.
In one embodiment, as shown in Fig. 2, providing a kind of webpage generating method, it is applied in Fig. 1 in this way It is illustrated, includes the following steps for server:
Step 210, the web access requests that terminal is sent are received, web access requests carry display the ratio of width to height, terminal point Resolution, terminal display size and access address.
When user's using terminal browses webpage, terminal sends web page access to the corresponding server of webpage browsed and asks It asks, the display parameters of access address and terminal is carried in the web access requests of transmission, display parameters include, but is not limited to Show the display parameters such as the ratio of width to height, terminal resolution ratio and terminal display size.Wherein, display the ratio of width to height be terminal display it is wide and High ratio, or the ratio of terminal display height and width specifically sets according to use habit, do not limit herein;Eventually Holding resolution ratio is the display resolution of terminal display;Terminal display size is that terminal display shows wide and high specific of screen Size.Server reads display the ratio of width to height, terminal resolution ratio, terminal display size and access address etc. from web access requests Display parameters.
Step 220, standard shows size corresponding with display the ratio of width to height is searched, according to terminal display size and standard shows Size obtains scaling.
Server searches standard shows size corresponding with the display the ratio of width to height read, display the ratio of width to height and standard shows ruler Very little mapping relations are stored in advance in the server.Wherein, a standard shows size can be mapped in a display the ratio of width to height, One standard shows size is also mapped in a kind of display the ratio of width to height, and the relatively similar display the ratio of width to height of such as several ratios can be classified as one Class, if ratio is 16:9,16:10 display the ratio of width to height can be attributed to same class and show the ratio of width to height, the relatively similar display of the ratio of width to height Device can be by adjusting margin away from keeping identical display effect when showing webpage.Each standard shows size can be by work Make personnel rule of thumb specifically to be set and stored.
Server calculates scaling according to terminal display size and standard shows size.In the present embodiment, it scales Ratio is the ratio of terminal display size and standard shows size.
Step 230, the corresponding scalable resolution ratio section of scaling is searched, by terminal resolution ratio and scalable resolution ratio Section is compared.
After server calculates scaling, scalable resolution ratio section corresponding with scaling is searched, by terminal Resolution ratio is compared with scalable resolution ratio section, judges whether terminal resolution ratio is in scalable resolution ratio section.It can Scaling resolution ratio section is the terminal point that good display effect can still be maintained after zooming in and out webpage according to scaling The interval range of resolution, if terminal resolution ratio not in scalable resolution ratio section but will webpage according to calculated pantograph ratio When example zooms in and out, it may appear that the poor display effect such as fuzzy, display distortion of display.
Wherein, the mapping relations between scaling and scalable resolution ratio section are stored in advance in the server, can be with It is rule of thumb set by staff.In one embodiment, after server calculates scaling, now by scaling Rounding operation processing, such as the operation that rounds up are carried out, scalable resolution ratio area corresponding with the scaling after rounding is searched Between.
Step 240, when terminal resolution ratio is not at scalable resolution ratio section, acquisition and access address show the ratio of width to height Web page template corresponding with scaling, Web page module and modules exhibit information, according to modules exhibit information by web page template and Web page module carries out assembling and generates the first adaptation webpage.
When server judges terminal resolution ratio not in scalable resolution ratio section, server obtains and access Location, display the ratio of width to height and the corresponding web page template of calculated scaling, Web page module and modules exhibit information.Wherein, net The fixation display data of webpage can be set in page template, page layout format information etc., fixed display data may include title The data such as column, classification column, layout information can for can display module module number, can display module modules exhibit information Deng.May include in modules exhibit information can display module display location and modules exhibit size etc..Web page module is webpage The particular content data of template can be shown in template.The access address of same webpage likely corresponds to multiple web page templates, multiple Web page template carries out corresponding storage with display the ratio of width to height and scaling in advance.Web page module is according to scaling and web page template Specifically to determine.
After server gets web page template, Web page module and modules exhibit information, by Web page module according to module exhibition Show that the modules exhibit size in information is adjusted, by Web page module adjusted according to modules exhibit position and web page template into Row assembles and generates the first adaptation webpage.
Step 250, the first adaptation webpage is returned into terminal.
Assembled first adaptation webpage is returned to terminal by server, so that terminal shows the first adaptation webpage Show.
In the present embodiment, server obtains web access requests after the web access requests for receiving terminal transmission The ratio of width to height, resolution ratio and display size of middle terminal etc. show information, obtain the pantograph ratio of webpage according to the display information of terminal Example, and according to judging whether the resolution ratio of terminal is located at the corresponding resolution ratio interval range for carrying out scaling of scaling It is interior, when being not belonging in resolution ratio interval range, the corresponding page layout information of display information is obtained, by web page contents module weight It newly carries out assembling generation adaptation webpage and returns to terminal, so as to improve the display effect of access webpage at the terminal, meet The web displaying demand of each Terminal Type.
In one embodiment, webpage generating method further includes:When terminal resolution ratio is located at scalable resolution ratio section, Search access address standard web page corresponding with display the ratio of width to height;Ratio adjustment is carried out to standard web page according to scaling to generate Second adaptation webpage is returned to terminal by the second adaptation webpage.
After terminal resolution ratio is compared by server with scalable resolution ratio section, and judge terminal resolution ratio position When in scalable resolution ratio section, server searches standard web page corresponding with access address and display the ratio of width to height.Standard The display size of webpage standard shows size corresponding with display the ratio of width to height is identical.In the content that is shown in standard web page, display The layout type of appearance is fixed, is the standard format being previously set by staff, the content of display will not be according to pantograph ratio Example is changed.Standard web page carries out corresponding storage with access address and display the ratio of width to height in advance.Server is according to scaling The scaling adjustment that ratio is carried out to the standard web page got generates the second adaptation webpage after adjustment.Server is adapted to second Webpage is sent to middle sight, so that terminal shows the second adaptation webpage.
In the present embodiment, it when server judges that terminal resolution ratio is in scalable range, can directly search It is zoomed in and out to standard web page, without being assembled, to can also improve treatment effeciency while guaranteeing display effect.
In one embodiment, web page template corresponding with access address, display the ratio of width to height and scaling, webpage are obtained Web page module and Web page module are carried out assembling according to modules exhibit information and generate the first adaptation net by module and modules exhibit information Page, including:When scaling is less than or equal to the first preset ratio threshold value, obtains access address and show the ratio of width to height corresponding the One web page template, the label model obtained in the first web page template show information;The user tag in web access requests is read, Search the label Web page module to match with user tag;Show that information carries out size to label Web page module according to label model Label Web page module adjusted is carried out assembling generation first with the first web page template and is adapted to webpage by adjustment.
After server calculates scaling, server obtains the first preset ratio threshold value, the first preset ratio threshold Value is a lesser value of value less than 1, and the first preset ratio threshold value is stored in advance in the server.Server will calculate Scaling be compared with the first preset ratio threshold value, when judge scaling be less than or equal to the first preset ratio threshold value When, server searches the first web page template corresponding with access address and display the ratio of width to height.In the present embodiment, since terminal is aobvious Show display size under gauge, needs to carry out webpage the adjustment of scale smaller, the first web page template is compared to standard network The inner capacities that page can be shown is smaller, and the module number that can be shown is also relatively limited.It may include net in first web page template The data such as the fixation display data such as title bar, navigation bar of page and label model show information.Label model show information be from The displaying information of the label Web page module screened in multiple modules that webpage includes, the displaying position including label Web page module It sets and the information such as the displaying size of module.
In the present embodiment, user tag can also be carried when terminal to server sends web access requests.Terminal can be right The browsing behavior of user records, and the search that the theme of record the browsed webpage of user, user use when scanning for is crucial The information such as word.Terminal can be periodically for statistical analysis by the theme of record, search key, and is generated and used according to statistical result Family label.For example, theme and search key are such as carried out keyword classification, when the statistics frequency of a certain class keywords is more than pre- If the frequency, it is extracted as corresponding user tag, user tag can be " football fan ", " electronics enthusiast ", " makeups intelligent " Deng, can be identified for that user's search preferences, tendency.In other embodiments, terminal can generate user tag using other methods, It is not limited to aforesaid way.
Server reads user tag from web access requests, and obtains the corresponding Web page module of access address, will use Family label is matched with the module title of Web page module, and the label net to match with user tag is found out from Web page module Page module.The mapping relations between module title and user tag can be stored in advance in server, and same Web page module can be right It should be in multiple user tags, for example, can be divided into sport, finance and economics, amusement, science and technology etc. multiple for the web page contents in a webpage Web page module." scientific and technological module " can correspond to multiple user tags such as " science and technology control ", " electronics enthusiast ", " male ".When same When one Web page module corresponds to multiple user tags, multiple user tags can be divided into different priority levels, work as service When device finds multiple Web page modules according to user tag, by mapping relations user tag be in the net of higher priority Page module is as the label Web page module to match.The quantity of label Web page module can be one or multiple, phase The quantity for the label Web page module matched is determined according to the quantity for the Web page module being laid out in the first web page template.
Server shows that the modules exhibit size in information carries out size adjusting to label Web page module according to label model, And show that the display location of the label Web page module in information carries out label model and the first web page template according to label model It assembles and generates the first adaptation webpage.It, can be by multiple label nets when layout has multiple Web page modules in the first web page template Placement position of the page module in the first web page template is randomly assigned, and also distributes each label Web page module to modules exhibit size In close placement position, other layout type can also be used.
Further, when server judges that scaling is greater than the first preset ratio threshold value, server is available Standard web page template is handled standard web page template according to scaling, and by treated, standard web page template is returned to Terminal is shown.
It in other embodiments, can also when server judges that scaling is less than or equal to the first preset ratio threshold value To obtain preset operation module, operation module is the Web page module set according to the popularization demand of operator, the first webpage mould The display location and module size of the operation module set in plate, the operation module that server will acquire are carried out according to module size Operation module adjusted is carried out assembling according to display location and generates the first adaptation webpage by size adjusting.
In other real-time examples, scaling may be the ratio of standard shows size and terminal display size, and first Preset ratio threshold value is a biggish value of value greater than 1, when judging that scaling is more than or equal to the first preset ratio threshold When value, it is referred to above-described embodiment and label Web page module and the first web page template carried out assembling generates first being adapted to webpage. When scaling is less than the first preset ratio threshold value, obtains standard web page and standard web page is subjected to ratio adjustment generation first It is adapted to webpage.
In the above-described embodiments, when the display size of terminal is less than standard shows size and needs reduced scale larger When, the part Web page module generation to match with user's search need can be selected from the content module of webpage is adapted to net Page, to only show the partial content of webpage in the terminal, can obtain higher display effect and reading requirement.
In one embodiment, web page template corresponding with access address, display the ratio of width to height and scaling, webpage are obtained Web page module and Web page module are carried out assembling according to modules exhibit information and generate the first adaptation net by module and modules exhibit information Page, including:When scaling is more than or equal to the second preset ratio threshold value, obtain corresponding with access address and display the ratio of width to height Second web page template obtains the fixed module in the second web page template and shows information and operation modules exhibit information;Search second The corresponding fixed Web page module of web page template and the corresponding operation Web page module of access address;Information is shown according to fixed module Size adjusting is carried out to fixed Web page module, size adjusting is carried out to operation Web page module according to operation modules exhibit information, it will Fixed Web page module adjusted, operation Web page module adjusted with the second web page template carry out assembling and generate first being adapted to net Page.
After server calculates scaling, server obtains the second preset ratio threshold value, the second preset ratio threshold Value is a biggish value of value greater than 1, and the second preset ratio threshold value is stored in advance in the server.Server will calculate Scaling be compared with the second preset ratio threshold value, when judge scaling be more than or equal to the second preset ratio threshold value When, server searches the second web page template corresponding with access address and display the ratio of width to height.In the present embodiment, since terminal is aobvious Show that size is greater than standard shows size, needs to carry out webpage the adjustment of ratio enlargement, the second web page template is compared to standard network The inner capacities that page can be shown is more, can be with content module all in displayed web page, and can also show on this basis More contents.It may include the data such as the fixation display data such as title bar, navigation bar of webpage in second web page template, second It further include the displaying information of fixed module and the displaying layout information of operation Web page module, such as displaying of each module in web page template Position and displaying size etc..Fixed module refers to the module for needing to show in standard web page, and operation Web page module is according to operation The module of the demand setting of quotient, the content for runing Web page module can be operation advertisement, special special column etc..
Server searches fixed Web page module corresponding with the second web page template, and finds out fortune corresponding with access address Seek Web page module, the storage corresponding with access address in advance of operation Web page module.Server is according to the displaying size pair of fixed module Fixed Web page module carries out size adjusting, will fixed Web page module and the second web page template further according to the display location of fixed module It is assembled, server carries out size adjusting to operation module according to the displaying size of operation module, further according to operation module Operation Web page module is carried out assembling generation first with the second web page template and is adapted to webpage by display location.
Further, when server judges scaling less than the second preset ratio threshold value, server is available Standard web page template is handled standard web page template according to scaling, and by treated, standard web page template is returned to Terminal is shown.
In other real-time examples, scaling may be the ratio of standard shows size and terminal display size, and second Preset ratio threshold value is a lesser value of value less than 1, when judging that scaling is less than or equal to the first preset ratio threshold When value, above-described embodiment is referred to by fixed Web page module and operation Web page module and the first web page template and carries out assembling generation First adaptation webpage.When scaling is greater than the first preset ratio threshold value, obtains standard web page and compare standard web page Example adjustment generates the first adaptation webpage.
In the above-described embodiments, when the large percentage that the display size of terminal is greater than standard shows size and needs to amplify When, operation Web page module can be increased on the basis of fixing Web page module in standard web page, to make the layout of displayed web page It is more compact, while being also able to satisfy operation popularization demand.
In one embodiment, web page template corresponding with access address, display the ratio of width to height and scaling, webpage are obtained Web page module and Web page module are carried out assembling according to modules exhibit information and generate the first adaptation net by module and modules exhibit information Page, including:When scaling is greater than the first preset ratio threshold value and when less than the second preset ratio threshold value, obtain and access address Third web page template corresponding with display the ratio of width to height, the standard module obtained in third web page template show information;Search third The corresponding standard web page module of web page template;Show that information carries out size adjusting to standard web page module according to standard module, it will Standard web page module adjusted carries out assembling generation first with third web page template and is adapted to webpage.
In the present embodiment, the first preset ratio threshold value is a lesser value of value less than 1, the second preset ratio threshold Value is a biggish value of value greater than 1, and the first preset ratio threshold value and the second preset ratio threshold value are stored in advance in service In device.When server judges that scaling is greater than the first preset ratio threshold value and when less than the second preset ratio threshold value, service Device obtains third web page template corresponding with access address and display the ratio of width to height.It include access address pair in third web page template The displaying content for the standard web page answered, and the layout type of each content, module in third web page template is wide high according to display Than determining, also the display location including each module and the information such as size are shown in third web page template.Server searches third Standard web page module is shown that size carries out size adjusting according to corresponding, will adjusted by the corresponding standard web page module of web page template Standard web page module after whole carries out assembling generation first with third web page template according to corresponding display location and is adapted to webpage.
Further, when server judges scaling less than the first preset ratio threshold value or is greater than the second default ratio When example threshold value, server can increase content, the module in standard web page, delete or other processing.
In other embodiments, scaling may be the ratio of standard shows size and terminal display size, and first Preset ratio threshold value is a biggish value of value greater than 1, and the second preset ratio threshold value is that a value less than 1 is lesser Value is referred to above-mentioned when judging that scaling is greater than the second preset ratio threshold value and when less than the first preset ratio threshold value Embodiment, which obtains standard web page module and carries out assembling generation first with third web page template, is adapted to webpage.
In one embodiment, as shown in figure 3, webpage generating method can also include the following steps:
Step 260, the terminal models for obtaining terminal judge whether terminal is that can hold terminal according to terminal models.
Terminal obtains terminal models and is sent to server when sending web access requests to server.Service After device receives terminal models, the model table of comparisons is obtained, various terminals model is had recorded in the model table of comparisons holds information, looks into Look for it is corresponding with terminal models hold information, judge whether terminal is that can hold terminal according to information can be held.Terminal can be held refer to and work as When the equipment gravity sensing direction of the display equipment of terminal changes, the direction of the displaying content of screen can also follow variation Terminal, such as mobile phone, tablet computer.
Step 270, it when terminal, which is, to hold terminal, obtains being inverted the ratio of width to height according to display the ratio of width to height.
When server judges that terminal is that can hold terminal, server calculates inversion the ratio of width to height according to display the ratio of width to height, Being inverted the ratio of width to height is the inverse for showing the ratio of width to height.
Step 280, it obtains inversion web page template corresponding with access address, inversion the ratio of width to height and scaling, be inverted net Page module and inversion module show information, show that information will be inverted web page template and be inverted Web page module according to inversion module and carry out Assembling, which generates, is inverted adaptation webpage.
Server searches inversion web page template corresponding with access address, inversion the ratio of width to height and scaling, is inverted net Page module and inversion module show information.As by scaling and ratio can be preset using mode described in above-described embodiment Example threshold value is compared, and when the value of scaling is smaller, only obtains label Web page module, by label Web page module and is inverted net Page module is assembled, and when the value of scaling is larger, increases operation webpage on the basis of the fixed module of standard web page Module can also be obtained using other modes and be inverted Web page module.The inversion Web page module that will acquire is according to inversion module exhibition Show that the displaying size in information carries out ratio adjustment, and inversion Web page module adjusted is shown in information according to inversion module Display location be inverted web page template carry out assembling generate be inverted be adapted to webpage.
Step 290, adaptation webpage will be inverted and returns to terminal.
Server will be inverted adaptation webpage and also return to terminal, so that the gravity sensing direction of the display equipment of terminal occurs When variation, inversion adaptation webpage can be shown, so that terminal device all has preferably under various gravity sensing directions Bandwagon effect.
It should be noted that in this application first and second etc relational terms be used merely to distinguish an entity or Movement and another entity or movement, and not necessarily require or imply any actual this pass between this entity or movement System or sequence.
It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 4, providing a kind of auto-building html files device, including:Request receiving module 410, Parameter acquisition module 420, resolution ratio comparison module 430, the first auto-building html files module 440 and the first webpage return module 450, In:
Request receiving module 410, for receiving the web access requests of terminal transmission, it is wide that web access requests carry display High ratio, terminal resolution ratio, terminal display size and access address.
Parameter acquisition module 420 shows ruler according to terminal for searching standard shows size corresponding with the ratio of width to height is shown Very little and standard shows size obtains scaling.
Resolution ratio comparison module 430, for searching the corresponding scalable resolution ratio section of scaling, by terminal resolution ratio It is compared with scalable resolution ratio section.
First auto-building html files module 440, for when terminal resolution ratio is not at scalable resolution ratio section, obtaining and access Address, display the ratio of width to height and the corresponding web page template of scaling, Web page module and modules exhibit information, believe according to modules exhibit Web page template and Web page module are carried out assembling and generate the first adaptation webpage by breath.
First webpage return module 450, for the first adaptation webpage to be returned to terminal.
In one embodiment, device can also include:
Standard web page searching module, for searching access address when terminal resolution ratio is located at scalable resolution ratio section Standard web page corresponding with display the ratio of width to height.
Second auto-building html files module generates the second adaptation net for carrying out ratio adjustment to standard web page according to scaling Second adaptation webpage is returned to terminal by page.
In one embodiment, the first webpage return module 450 may include:
Label information searching module, for obtaining access when scaling is less than or equal to the first preset ratio threshold value Location the first web page template corresponding with display the ratio of width to height, the label model obtained in the first web page template show information.
Label model searching module is searched and user tag phase for reading the user tag in web access requests The label Web page module matched.
First assembling module will be adjusted for showing that information carries out size adjusting to label Web page module according to label model Label Web page module after whole carries out assembling generation first with the first web page template and is adapted to webpage.
In one embodiment, the first webpage return module 450 may include:
Operation information obtains module, for obtaining and access when scaling is more than or equal to the second preset ratio threshold value Address the second web page template corresponding with display the ratio of width to height, the fixed module obtained in the second web page template show information and operation Modules exhibit information.
It runs module and obtains module, for searching the corresponding fixed Web page module of the second web page template and access address pair The operation Web page module answered.
Second assembling module, for showing that information carries out size adjusting to fixed Web page module according to fixed module, according to It runs modules exhibit information and size adjusting is carried out to operation Web page module, by fixed Web page module adjusted, fortune adjusted Battalion's Web page module carries out assembling generation first with the second web page template and is adapted to webpage.
In one embodiment, the first webpage return module 450 may include:
Standard information obtains module, for being greater than the first preset ratio threshold value and less than the second preset ratio when scaling When threshold value, third web page template corresponding with access address and display the ratio of width to height is obtained, the standard in third web page template is obtained Modules exhibit information.
Standard module searching module, for searching the corresponding standard web page module of third web page template.
Third assembles module, for showing that information carries out size adjusting to standard web page module according to standard module, will adjust Standard web page module after whole carries out assembling generation first with third web page template and is adapted to webpage.
In one embodiment, device can also include:
Judgment module can be held, for obtaining the terminal models of terminal, judges whether terminal is that can hold end according to terminal models End.
It is inverted than obtaining module, for obtaining being inverted the ratio of width to height according to display the ratio of width to height when terminal, which is, to hold terminal.
It is inverted auto-building html files module, for obtaining inversion net corresponding with access address, inversion the ratio of width to height and scaling Page template, inversion Web page module and inversion module show information, show that information will be inverted web page template and fall according to inversion module It sets Web page module and carries out assembling generation inversion adaptation webpage.
It is inverted webpage return module, for inversion adaptation webpage to be returned to the terminal.
Specific about auto-building html files device limits the restriction that may refer to above for webpage generating method, herein not It repeats again.Modules in above-mentioned auto-building html files device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 5.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is used to store the data such as web page template, the Web page module of auto-building html files needs.The net of the computer equipment Network interface is used to communicate with external terminal by network connection.To realize a kind of net when the computer program is executed by processor Page generation method.
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with Computer program, the processor realize following steps when executing computer program:Receive the web access requests that terminal is sent, net Access to web page request carries display the ratio of width to height, terminal resolution ratio, terminal display size and access address;It searches and display the ratio of width to height pair The standard shows size answered obtains scaling according to terminal display size and standard shows size;It is corresponding to search scaling Scalable resolution ratio section, terminal resolution ratio is compared with scalable resolution ratio section;When terminal resolution ratio is not can When scaling resolution ratio section, obtain with access address, show the ratio of width to height and the corresponding web page template of scaling, Web page module and Web page template and Web page module are carried out assembling according to modules exhibit information and generate the first adaptation webpage by modules exhibit information;It will First adaptation webpage returns to terminal.
In one embodiment, following steps are also realized when processor executes computer program:When terminal resolution ratio is located at When scalable resolution ratio section, access address standard web page corresponding with display the ratio of width to height is searched;According to scaling to standard Webpage carries out ratio adjustment and generates the second adaptation webpage, and the second adaptation webpage is returned to terminal.
In one embodiment, processor executes computer program and realizes acquisition and access address, display the ratio of width to height and contracting The corresponding web page template of ratio, Web page module and modules exhibit information are put, according to modules exhibit information by web page template and webpage Module carries out when assembling generates the first adaptation webpage also to realize following steps:When scaling is less than or equal to the first default ratio When example threshold value, access address the first web page template corresponding with display the ratio of width to height is obtained, the label in the first web page template is obtained Modules exhibit information;The user tag in web access requests is read, the label Web page module to match with user tag is searched; Show that information carries out size adjusting to label Web page module according to label model, by label Web page module adjusted and the first net Page template carries out assembling and generates the first adaptation webpage.
In one embodiment, processor executes computer program and realizes acquisition and access address, display the ratio of width to height and contracting The corresponding web page template of ratio, Web page module and modules exhibit information are put, according to modules exhibit information by web page template and webpage Module carries out when assembling generates the first adaptation webpage also to realize following steps:When scaling is more than or equal to the second default ratio When example threshold value, the second web page template corresponding with access address and display the ratio of width to height is obtained, consolidating in the second web page template is obtained Determine modules exhibit information and operation modules exhibit information;Search the corresponding fixed Web page module of the second web page template and access The corresponding operation Web page module in location;Show that information carries out size adjusting to fixed Web page module according to fixed module, according to operation Modules exhibit information carries out size adjusting to operation Web page module, by fixed Web page module adjusted, operation network adjusted Page module carries out assembling generation first with the second web page template and is adapted to webpage.
In one embodiment, processor executes computer program and realizes acquisition and access address, display the ratio of width to height and contracting The corresponding web page template of ratio, Web page module and modules exhibit information are put, according to modules exhibit information by web page template and webpage Module carries out when assembling generates the first adaptation webpage also to realize following steps:When scaling is greater than the first preset ratio threshold Value and when less than the second preset ratio threshold value obtains and access address and shows the corresponding third web page template of the ratio of width to height, acquisition Standard module in third web page template shows information;Search the corresponding standard web page module of third web page template;According to standard Modules exhibit information carries out size adjusting to standard web page module, by standard web page module adjusted and third web page template into Row assembling generates the first adaptation webpage.
In one embodiment, following steps are also realized when processor executes computer program:Obtain the terminal type of terminal Number, judge whether terminal is that can hold terminal according to terminal models;When terminal, which is, to hold terminal, fallen according to display the ratio of width to height Set the ratio of width to height;Obtain with access address, be inverted the ratio of width to height and the corresponding inversion web page template of scaling, inversion Web page module and Inversion module shows information, shows that information will be inverted web page template and be inverted Web page module according to inversion module and carries out assembling generation It is inverted adaptation webpage;Adaptation webpage will be inverted and return to terminal.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program realizes following steps when being executed by processor:The web access requests that terminal is sent are received, web access requests carry Show the ratio of width to height, terminal resolution ratio, terminal display size and access address;Search standard shows ruler corresponding with display the ratio of width to height It is very little, scaling is obtained according to terminal display size and standard shows size;Search the corresponding scalable resolution ratio of scaling Terminal resolution ratio is compared by section with scalable resolution ratio section;When terminal resolution ratio is not or not scalable resolution ratio section When, web page template corresponding with access address, display the ratio of width to height and scaling, Web page module and modules exhibit information are obtained, Web page template and Web page module are subjected to assembling according to modules exhibit information and generate the first adaptation webpage;First adaptation webpage is returned Back to terminal.
In one embodiment, following steps are also realized when computer program is executed by processor:When terminal resolution ratio position When scalable resolution ratio section, access address standard web page corresponding with display the ratio of width to height is searched;According to scaling to mark Quasi- webpage carries out ratio adjustment and generates the second adaptation webpage, and the second adaptation webpage is returned to terminal.
In one embodiment, computer program is executed by processor acquisition and access address, display the ratio of width to height and scaling The corresponding web page template of ratio, Web page module and modules exhibit information, according to modules exhibit information by web page template and webpage mould Block carries out when assembling generates the first adaptation webpage also to realize following steps:When scaling is less than or equal to the first preset ratio When threshold value, access address the first web page template corresponding with display the ratio of width to height is obtained, the label mould in the first web page template is obtained Block shows information;The user tag in web access requests is read, the label Web page module to match with user tag is searched;Root Show that information carries out size adjusting to label Web page module according to label model, by label Web page module adjusted and the first webpage Template carries out assembling and generates the first adaptation webpage.
In one embodiment, computer program is executed by processor acquisition and access address, display the ratio of width to height and scaling The corresponding web page template of ratio, Web page module and modules exhibit information, according to modules exhibit information by web page template and webpage mould Block carries out when assembling generates the first adaptation webpage also to realize following steps:When scaling is more than or equal to the second preset ratio When threshold value, the second web page template corresponding with access address and display the ratio of width to height is obtained, the fixation in the second web page template is obtained Modules exhibit information and operation modules exhibit information;Search the corresponding fixed Web page module of the second web page template and access address Corresponding operation Web page module;Show that information carries out size adjusting to fixed Web page module according to fixed module, according to operation mould Block shows that information carries out size adjusting to operation Web page module, by fixed Web page module adjusted, operation webpage adjusted Module carries out assembling generation first with the second web page template and is adapted to webpage.
In one embodiment, computer program is executed by processor acquisition and access address, display the ratio of width to height and scaling The corresponding web page template of ratio, Web page module and modules exhibit information, according to modules exhibit information by web page template and webpage mould Block carries out when assembling generates the first adaptation webpage also to realize following steps:When scaling is greater than the first preset ratio threshold value And when less than the second preset ratio threshold value, obtains and access address and show the corresponding third web page template of the ratio of width to height, acquisition the Standard module in three web page templates shows information;Search the corresponding standard web page module of third web page template;According to master die Block shows that information carries out size adjusting to standard web page module, and standard web page module adjusted and third web page template are carried out Assembling generates the first adaptation webpage.
In one embodiment, following steps are also realized when computer program is executed by processor:Obtain the terminal of terminal Model judges whether terminal is that can hold terminal according to terminal models;When terminal, which is, to hold terminal, obtained according to display the ratio of width to height It is inverted the ratio of width to height;It obtains inversion web page template corresponding with access address, inversion the ratio of width to height and scaling, be inverted Web page module Information is shown with inversion module, is shown that information will be inverted web page template and be inverted Web page module according to inversion module and is carried out assembling life Webpage is adapted at being inverted;Adaptation webpage will be inverted and return to terminal.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of webpage generating method, the method includes:
The web access requests that terminal is sent are received, the web access requests carry display the ratio of width to height, terminal resolution ratio, terminal Display size and access address;
Standard shows size corresponding with described display the ratio of width to height is searched, according to the terminal display size and the standard shows Size obtains scaling;
The corresponding scalable resolution ratio section of the scaling is searched, by the terminal resolution ratio and the scalable resolution ratio Section is compared;
When the terminal resolution ratio is not at the scalable resolution ratio section, acquisition and the access address, the display are wide Height is than web page template corresponding with the scaling, Web page module and modules exhibit information, according to the modules exhibit information The web page template and the Web page module are subjected to assembling and generate the first adaptation webpage;
The first adaptation webpage is returned into the terminal.
2. the method according to claim 1, wherein the method also includes:
When the terminal resolution ratio is located at the scalable resolution ratio section, searches the access address and the display is wide high Than corresponding standard web page;
Ratio adjustment is carried out to the standard web page according to the scaling and generates the second adaptation webpage, described second is adapted to Webpage returns to the terminal.
3. the method according to claim 1, wherein the acquisition and the access address, the display are wide high It, will according to the modules exhibit information than web page template corresponding with the scaling, Web page module and modules exhibit information The Web page module and the Web page module carry out assembling and generate the first adaptation webpage, including:
When the scaling is less than or equal to the first preset ratio threshold value, the access address and described display the ratio of width to height are obtained Corresponding first web page template, the label model obtained in first web page template show information;
The user tag in the web access requests is read, the label Web page module to match with the user tag is searched;
Show that information carries out size adjusting to the label Web page module according to the label model, by label webpage adjusted Module carries out assembling generation first with first web page template and is adapted to webpage.
4. the method according to claim 1, wherein the acquisition and the access address, the display are wide high It, will according to the modules exhibit information than web page template corresponding with the scaling, Web page module and modules exhibit information The Web page module and the Web page module carry out assembling and generate the first adaptation webpage, including:
When the scaling is more than or equal to the second preset ratio threshold value, obtain wide high with the access address and the display Than corresponding second web page template, obtains the fixed module in second web page template and show information and operation modules exhibit letter Breath;
Search the corresponding fixed Web page module of second web page template and the corresponding operation Web page module of the access address;
Show that information carries out size adjusting to the fixed Web page module according to the fixed module, according to the operation module exhibition Show that information carries out size adjusting to the operation Web page module, by fixed Web page module adjusted, operation webpage adjusted Module carries out assembling generation first with second web page template and is adapted to webpage.
5. the method according to claim 1, wherein the acquisition and the access address, the display are wide high It, will according to the modules exhibit information than web page template corresponding with the scaling, Web page module and modules exhibit information The Web page module and the Web page module carry out assembling and generate the first adaptation webpage, including:
When the scaling is greater than the first preset ratio threshold value and when less than the second preset ratio threshold value, obtain and the access Address and the corresponding third web page template of described display the ratio of width to height, the standard module obtained in the third web page template show letter Breath;
Search the corresponding standard web page module of the third web page template;
Show that information carries out size adjusting to the standard web page module according to the standard module, by standard web page adjusted Module carries out assembling generation first with the third web page template and is adapted to webpage.
6. the method according to claim 1, wherein the method also includes:
The terminal models for obtaining the terminal judge whether the terminal is that can hold terminal according to the terminal models;
When the terminal, which is, to hold terminal, obtained being inverted the ratio of width to height according to described display the ratio of width to height;
It obtains inversion web page template corresponding with the access address, described inversion the ratio of width to height and the scaling, be inverted net Page module and inversion module show information, show information by the inversion web page template and the inversion according to the inversion module Web page module carries out assembling and generates inversion adaptation webpage;
Inversion adaptation webpage is returned into the terminal.
7. a kind of auto-building html files device, which is characterized in that described device includes:
Request receiving module, for receiving the web access requests of terminal transmission, it is wide high that the web access requests carry display Than, terminal resolution ratio, terminal display size and access address;
Parameter acquisition module is shown for searching standard shows size corresponding with described display the ratio of width to height according to the terminal Size and the standard shows size obtain scaling;
Resolution ratio comparison module differentiates the terminal for searching the corresponding scalable resolution ratio section of the scaling Rate is compared with the scalable resolution ratio section;
First auto-building html files module, for when the terminal resolution ratio is not at the scalable resolution ratio section, obtaining and institute Access address, described display the ratio of width to height and the corresponding web page template of the scaling, Web page module and modules exhibit information are stated, The web page template and the Web page module are subjected to assembling according to the modules exhibit information and generate the first adaptation webpage;
First webpage return module, for the first adaptation webpage to be returned to the terminal.
8. device according to claim 7, which is characterized in that described device further includes:
Standard web page searching module is used for when the terminal resolution ratio is located at the scalable resolution ratio section, described in lookup Access address and the corresponding standard web page of described display the ratio of width to height;
Second auto-building html files module, it is suitable for carrying out ratio adjustment generation second to the standard web page according to the scaling With webpage, the second adaptation webpage is returned into the terminal.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
CN201810427811.8A 2018-05-07 2018-05-07 Webpage generating method, device, computer equipment and storage medium Pending CN108897755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810427811.8A CN108897755A (en) 2018-05-07 2018-05-07 Webpage generating method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810427811.8A CN108897755A (en) 2018-05-07 2018-05-07 Webpage generating method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN108897755A true CN108897755A (en) 2018-11-27

Family

ID=64342642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810427811.8A Pending CN108897755A (en) 2018-05-07 2018-05-07 Webpage generating method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108897755A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032352A (en) * 2019-03-18 2019-07-19 阿里巴巴集团控股有限公司 A kind of displaying content generating method and device
CN111797933A (en) * 2020-07-10 2020-10-20 百度在线网络技术(北京)有限公司 Template matching method and device, electronic equipment and storage medium
CN113407888A (en) * 2021-07-14 2021-09-17 广州博冠信息科技有限公司 Browser size adjusting method and device, storage medium and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930475A (en) * 2010-09-14 2010-12-29 中兴通讯股份有限公司 Web page display method and browser
US20130159841A1 (en) * 2011-12-20 2013-06-20 Akira Yokoyama Display control device, display control system, and computer program product
CN103412928A (en) * 2013-08-16 2013-11-27 北京乐动卓越科技有限公司 Method and device for realizing browser page intelligent response-type layout on mobile terminal
CN106484883A (en) * 2016-10-17 2017-03-08 北京邮电大学 webpage loading method and device
CN106648511A (en) * 2016-12-16 2017-05-10 竞技世界(北京)网络技术有限公司 Self-adaptive display method and device of display resolutions
CN106874271A (en) * 2015-12-10 2017-06-20 上海新工式网络科技有限公司 A kind of method and system that PC webpages are converted to mobile terminal webpage

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930475A (en) * 2010-09-14 2010-12-29 中兴通讯股份有限公司 Web page display method and browser
US20130159841A1 (en) * 2011-12-20 2013-06-20 Akira Yokoyama Display control device, display control system, and computer program product
CN103412928A (en) * 2013-08-16 2013-11-27 北京乐动卓越科技有限公司 Method and device for realizing browser page intelligent response-type layout on mobile terminal
CN106874271A (en) * 2015-12-10 2017-06-20 上海新工式网络科技有限公司 A kind of method and system that PC webpages are converted to mobile terminal webpage
CN106484883A (en) * 2016-10-17 2017-03-08 北京邮电大学 webpage loading method and device
CN106648511A (en) * 2016-12-16 2017-05-10 竞技世界(北京)网络技术有限公司 Self-adaptive display method and device of display resolutions

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032352A (en) * 2019-03-18 2019-07-19 阿里巴巴集团控股有限公司 A kind of displaying content generating method and device
CN111797933A (en) * 2020-07-10 2020-10-20 百度在线网络技术(北京)有限公司 Template matching method and device, electronic equipment and storage medium
CN113407888A (en) * 2021-07-14 2021-09-17 广州博冠信息科技有限公司 Browser size adjusting method and device, storage medium and computer equipment

Similar Documents

Publication Publication Date Title
EP2521050A2 (en) Handheld electronic device and method for accessing bookmark
CN103546498B (en) It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal
US9177341B2 (en) Determining search relevance from user feedback
CN108897755A (en) Webpage generating method, device, computer equipment and storage medium
CN106503224B (en) A kind of method and device for recommending application according to keyword
CN104572668B (en) Method and apparatus based on multiple pattern file generated Merge Styles files
KR101519879B1 (en) Apparatus for recommanding contents using hierachical context model and method thereof
CN109753421B (en) Service system optimization method and device, computer equipment and storage medium
CN108573515A (en) A kind of conjunction drawing generating method and device close figure template generation method and device
CN103577544B (en) A kind of method and device for providing information to be sent
CN106446048B (en) A kind of song recommendations method and mobile terminal
CN104281359A (en) Layout method and layout device for objects with different sizes
JP6185379B2 (en) RECOMMENDATION DEVICE AND RECOMMENDATION METHOD
CN107704560A (en) The method, apparatus and equipment of a kind of information recommendation
CN110799971A (en) Generation and presentation of media content
CN106503059A (en) Displayed page method for pushing and device
WO2021098310A1 (en) Video generation method and device, and terminal and storage medium
CN106528136A (en) Widget-based display method and apparatus, and terminal device
EP2638484B1 (en) Dynamic image result stitching
US20090220165A1 (en) Efficient image displaying
JP2007148517A (en) Image processor, image processing method and image processing program
CN104933099A (en) Method and device for providing target search result for user
JP6433270B2 (en) Content search result providing system and content search result providing method
CN116193159A (en) Image data adjustment method and device, electronic equipment and storage medium
CN114938458B (en) Object information display method and device, electronic equipment and storage medium

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181127