CN105868240A - Method and device for self-adaptive display of page - Google Patents

Method and device for self-adaptive display of page Download PDF

Info

Publication number
CN105868240A
CN105868240A CN201510917166.4A CN201510917166A CN105868240A CN 105868240 A CN105868240 A CN 105868240A CN 201510917166 A CN201510917166 A CN 201510917166A CN 105868240 A CN105868240 A CN 105868240A
Authority
CN
China
Prior art keywords
equipment
browser
facility information
recognizable
information
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
CN201510917166.4A
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201510917166.4A priority Critical patent/CN105868240A/en
Publication of CN105868240A publication Critical patent/CN105868240A/en
Priority to PCT/CN2016/097221 priority patent/WO2017096967A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Abstract

An embodiment of the invention provides a method and device for self-adaptive display of a page, relates to the technical field of computers, and mainly aims to solve an adaptive capability of a browser to different platforms, thereby improving viscidity of the browser to a user. The technical scheme adopted by the method includes the steps of: obtaining device information of a browser using device; judging whether the device information is an identifiable device which is a known device having a special page display effect; and if the device is an identifiable device, modifying a user agent (UA) character string of the browser according to the device information, so that the browser obtains a page that adapts to the device display effect. The method for self-adaptive display of a page is mainly used for a browser to access a web page.

Description

A kind of method and device of self adaptation display webpage
Technical field
The present embodiments relate to field of computer technology, particularly relate to the side of a kind of self adaptation display webpage Method and device.
Background technology
The User Agent entitled user agent of Chinese, is the part in http agreement, belongs to the group of header field Becoming part, User Agent is also called for short UA.It is a special string head so that server can be known The operating system of other client use and version, central processing unit (Central Processing Unit, CPU) Type, browser and version, browser renders engine, browser language, browser plug-in etc..Some Website can send the different pages by judging UA to come to different operating system, different browsers, Therefore it is likely to result in some page normally to show in certain browser.Such as, mobile phone access is used Google and use computer to access time different, these are the Google UA according to visitor's (browser) Judge.
UA in the browser of the same version used at present is fixing, say, that this browses Device is either arranged in any platform, and the pattern of its web displaying is all identical, and can not be according to platform Difference and change its display pattern to reach optimum display effect.Such as, a browser is at computer The excellent effect of upper display webpage, but this browser uses in mobile phone due to the change of displaying ratio, phase Same webpage, it is possible to the font that cannot show or show is the least, is not easy to check.To this end, it is many Browser producer all according to the needs of different platform, can select the browser kernel of different editions to produce respectively Plant the browser of different editions to adapt to the display demand of different platform.Such way not only increases clear The exploitation of Lan Qi producer, the cost of maintenance, it is often more important that, for a user will be in different platform Use and oneself like or the browser of use habit is accomplished by careful lookup and is applicable to this platform with a Browser version, is downloaded installation, if this browser not adaptive version to this platform, can only make With the browser of other brand.
Summary of the invention
The embodiment of the present invention provides the method and device of a kind of self adaptation display webpage, and main purpose is to solve The certainly browser adaptive ability to different platform, thus improve the browser viscosity to using user.
For reaching above-mentioned purpose, present invention generally provides following technical scheme:
On the one hand, the embodiment of the present invention provides the method for a kind of self adaptation display webpage, and the method includes:
Obtain browser and use the facility information of equipment;
Judge that whether described facility information is recognizable equipment, described recognizable equipment be known to there is spy The equipment of different page display effect;
If recognizable equipment, then revise the user agent UA of described browser according to described facility information Character string, in order to described browser obtains the page adapting to described equipment display effect.
Optionally, described method also includes:
If judging, described facility information as not can recognize that equipment, then uses the UA word that described browser is given tacit consent to Symbol string obtains the page, and shows in the apparatus with the standard display effect of described browser.
Optionally, described acquisition browser uses the facility information of equipment to include:
Determine the canonical function interface that described equipment provides;
Obtain the facility information of described equipment according to described canonical function interface, described facility information at least wraps Include: device name, unit type and operating system version information.
Optionally, before judging whether described facility information is recognizable equipment, described method also includes:
Creating recognizable list of devices, in described list, record has the facility information of recognizable equipment.
Optionally, it is judged that whether described facility information is that recognizable equipment includes:
Mate described facility information and the facility information in described recognizable list of devices;
If the match is successful, it is determined that described equipment is recognizable equipment.
Optionally, include according to user agent's UA character string of the described facility information described browser of amendment:
Extract the operation system information in described facility information, device name information and unit type information;
UA character string template according to described recognizable equipment, by described operation system information, implementor name Title information and unit type information are added in described UA character string template, generate recognizable equipment UA character string;
The UA character string of described recognizable equipment is replaced the UA character string of described browser acquiescence.
On the other hand, the embodiment of the present invention provides the device of a kind of self adaptation display webpage, and this device includes:
Acquiring unit, uses the facility information of equipment for obtaining browser;
Whether judging unit, be recognizable equipment for judging the facility information that described acquiring unit obtains, Described recognizable equipment has the equipment of specialized page display effect known to being;
Amendment unit, for when the result that described judging unit judges is as recognizable equipment, according to described Facility information revises user agent's UA character string of described browser, in order to described browser obtains and adapts to The page of described equipment display effect.
Optionally, the acquiring unit of described device is additionally operable to, and the result judged when described judging unit is not as During recognizable equipment, the UA character string using described browser to give tacit consent to obtains the page, and browses with described The standard display effect of device is shown in the apparatus.
Optionally, described acquiring unit includes:
Determine module, for determining the canonical function interface that described equipment provides;
Acquisition module, for obtaining described equipment according to the described canonical function interface determining that module determines Facility information, described facility information at least includes: device name, unit type and operating system version letter Breath.
Optionally, described device also includes:
Creating unit, for described judging unit judge described facility information be whether can recognize that equipment it Before, creating recognizable list of devices, in described list, record has the facility information of recognizable equipment.
Optionally, described judging unit includes:
Matching module, for mating described facility information and the facility information in described recognizable list of devices;
Determine module, for when described matching module matching unit information success, determine that described equipment is Recognizable equipment.
Optionally, described amendment unit includes:
Extraction module, for extract operation system information in described facility information, device name information with And unit type information;
Generation module, for the UA character string template according to described recognizable equipment, by described extraction mould Operation system information, device name information and unit type information that block extracts add described UA word to In symbol string template, generate the UA character string of recognizable equipment;
Replacement module, the UA character string of the recognizable equipment for being generated by described generation module replaces institute State the UA character string of browser acquiescence.
The method and device of a kind of self adaptation display webpage that the embodiment of the present invention provides, it is possible to make same Browser is applicable to different intelligent platforms, by obtaining the facility information using browser equipment, logical Cross and the facility information comparison of known device determines the equipment using this browser current.And then according to The facility information of this equipment, revises corresponding information parameter in preset UA character string template, To being applicable to the UA character string that this equipment shows.Revise the UA of acquiescence in current browser accordingly Character string, so that browser is obtained in that is suitable for the Webpage that this equipment shows.Relative to For in prior art being the browser of different platform adaptation different editions, the embodiment of the present invention is used Adaptive mode, browser can be completed with lower cost for the producer of browser Exploitation and follow-up maintenance, be used for the resource of multiple for original exploitation version browser this browser Deep development and upgrade maintenance in, to improve self-value and the core competitive power of navigator product Power.And for the user of browser, it is possible in different intelligent platforms, all use same Browser, it is not necessary to again adapt to use rule and the feature of new browser, thus increase user and use The viscosity of this browser.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to make to introduce simply, it should be apparent that under, Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The method flow diagram of a kind of self adaptation display webpage that Fig. 1 provides for the embodiment of the present invention;
The method flow diagram of the another kind of self adaptation display webpage that Fig. 2 provides for the embodiment of the present invention;
The structure composition frame of the device of a kind of self adaptation display webpage that Fig. 3 provides for the embodiment of the present invention Figure;
The structure composition frame uploading device of the another kind of live video that Fig. 4 provides for the embodiment of the present invention Figure.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise The every other embodiment obtained, broadly falls into the scope of protection of the invention.
The method embodiments providing a kind of self adaptation display webpage, as it is shown in figure 1, the method Being applied to the browser using smart machine to browse webpage, concrete steps include:
101, obtain browser and use the facility information of equipment.
The smart machine being currently able to use browser to carry out web page browsing gets more and more, and the most frequently used is exactly Computer and mobile phone, and along with intelligent television, the wearable smart machine such as intelligent watch and intelligent glasses Rise and network universal, the various equipment with intelligent operating system the most necessarily possess the net on basis Page browsing function, and web page browsing to be carried out, browser is exactly most basic application software.And it is different The operating system that smart machine is used is the most otherwise varied.Such as, logical sample is mobile phone, currently used Operating system is just divided into Android (Android) system of Google, the ios system of Fructus Mali pumilae and Microsoft Windowsmobile system.And for different smart machines, the kind of the operating system used is just More various, its version is the most countless.
A smart machine, when carrying out web page display, is primarily to see in the Webpage acquired in browser Hold.Owing to website can send the different pages to browser according to the UA character string of browser, therefore, The UA character string of browser just determines to have arrived the web page contents that smart machine can obtain.And browser UA character string is also that the exhibition method according to different operating system and interactive interface determines.Existing Browser be all to customize different browsers according to the difference of smart machine, i.e. specify different UA Character string.Therefore, in order to allow browser be adapted to the smart machine of different platform, it is necessary to allow UA word Symbol string can be revised automatically according to the change of smart machine.
In order to the UA character string of adaptive change browser, in embodiments of the present invention, first The smart machine being intended to allow browser know this browser currently used is any, and concrete implementation is permissible Be by smart machine install browser time, obtained smart machine by the function interface of standard Relevant information, in order to browser identifies this smart machine by the facility information of this smart machine.
102, judge whether facility information is recognizable equipment.
Identify the facility information that gets, it is judged that this smart machine when carrying out page presentation the need of spy Different display effect, i.e. judges whether this smart machine is recognizable equipment.Such as, by judging that this sets Standby facility information, it may be determined that this equipment is computer or mobile phone, then or TV, wrist-watch etc. its His smart machine.Owing to different smart machines to the bandwagon effect of same web page or mode and differs, As at the same webpage of mobile phone and computer, due to difference and the needs of flow-control of indication range, Often both page composition are different.Therefore, the different browsers in smart machine has difference UA string format.And browser can store the facility information of smart machine as much as possible with And the UA string content of correspondence.
In this step, browser is through the facility information of identification intelligent equipment to judge this smart machine Whether it is known smart machine, the most whether is storage smart machine in a browser.
If 103 recognizable equipment, then according to user agent's UA word of this facility information amendment browser Symbol string.
Browser is by judging kind and the model of smart machine, it is possible to determine required for this equipment UA character string, and browser is by pairs should equipment by the content modification of original UA character string UA character string, it is possible to get the content of pages that this smart machine applicable shows to web page server.
Wherein, concrete amendment mode the present embodiment provides both of which, and one is to preserve in a browser The UA character string of distinct device, by matching with the facility information of current smart machine, if it is determined that For identical device, just the UA character string entirety of this equipment is replaced the UA character string of current default.Again One is to preserve different types of UA character string template in a browser, when judging that current smart machine is During a known class smart machine, transfer such UA character string template, and obtain this smart machine Necessary information is added in this UA character string template, generates the UA character string being suitable for this smart machine, Replace the UA character string of browser acquiescence again.
In conjunction with above-mentioned implementation it can be seen that the self adaptation that the embodiment of the present invention is used shows webpage Method, it is possible to make same browser be applicable to different intelligent platforms, by obtain use browser set With the facility information comparison of known device, standby facility information, by determining that this browser of use is current Equipment.And then according to the facility information of this equipment, in preset UA character string template, amendment is corresponding Information parameter, obtains being applicable to the UA character string that this equipment shows.Revise accordingly in current browser The UA character string of acquiescence, so that browser is obtained in that is suitable for the Webpage that this equipment shows. For prior art is the browser of different platform adaptation different editions, embodiment of the present invention institute The adaptive mode used, can complete browser with lower cost for the producer of browser Exploitation and follow-up maintenance, the resource of multiple for original exploitation version browser is used for this browser Deep development and upgrade maintenance in, to improve self-value and the core competitiveness of navigator product. And for the user of browser, it is possible in different intelligent platforms, all use same browser, Need not again adapt to the use rule of new browser and feature, thus increase user and use this browser Viscosity.
For the method that self adaptation display webpage that the embodiment of the present invention proposed is explained in more detail, this Side's embodiment additionally provides the method for a kind of self adaptation display webpage, as in figure 2 it is shown, included by the method Concretely comprise the following steps:
201, obtain browser and use the facility information of equipment.
Browser, when identification intelligent equipment, is to pass through intelligence according to this smart machine when installing this browser The canonical function interface that energy equipment is provided is to obtain the facility information of smart machine.According in smart machine The difference of operating system, corresponding function interface also differs, the canonical function of the acquisition of information used Also different.Browser in embodiments of the present invention is provided with multiple canonical function interface, in order to pacify This smart machine is obtained by calling applicable canonical function interface time on dress and different operating system platform Facility information.
Wherein, this facility information at least includes the device name of this smart machine, model and this set The substances such as the version information of the operating system of standby middle use.By the facility information that these are basic, clear Device of looking at just can recognize that the kind of this smart machine and the UA character string of the browser of required use The need of amendment.
202, recognizable list of devices is created.
When smart machine installs browser, a recognizable list of devices can be created in a browser.Should In list, record has the facility information of variety classes smart machine, wherein, the mode classification to smart machine Being the content according to its UA character string used when obtaining Webpage, identical being treated as is same Class smart machine, as while the computer of IOS system or be both android system mobile phone and can be seen as It it is same class smart machine.Equipment in the list is known due to the UA character string used, Therefore, these equipment can also be referred to as recognizable equipment.Facility information recorded in list also includes The version information etc. of the title of these equipment, unit type and operating system, with above-mentioned 101 browse Facility information acquired in device is corresponding.
It should be noted that facility information in this list can by the upgrading of browser is updated, Thus to improve the browser range of fit to different intelligent equipment.
203, judge whether facility information is recognizable equipment.
The facility information that browser is got recognizable list of devices in 202 travels through, Join the facility information of recognizable equipment in this list.If able to match identical facility information, then recognize For this smart machine also for recognizable smart machine.This intelligence is then determined without identical facility information Energy equipment is not for can recognize that equipment.
If 204 recognizable equipment, then according to user agent's UA word of this facility information amendment browser Symbol string.
According to the judgement of 203, when this smart machine is recognizable equipment, browser is by this equipment of extraction Facility information, including device name, the model of this equipment, and the information of operating system add to can In the UA character string template of identification equipment.Wherein, UA character string template is recorded on recognizable equipment row Information corresponding with recognizable equipment in table.This UA character string template is to represent a class intelligence equally Can equipment UA character string of being used when obtaining webpage, such as, use Fructus Mali pumilae system computerized corresponding UA character string template is: Mozilla/5.0 (os type;devices name;devices type) AppleWebKit/534.24(KHTML,like Gecko)Chrome/11.0.696.34Safari/534.24; The UA character string template of the mobile phone of Fructus Mali pumilae system is: Mozilla/5.0 (Linux;os type;devices name; devices type)AppleWebKit/535.13(KHTML,like Gecko)Version/4.0Mobile Safari/535.13.Os type among these;devices name;Devices type corresponds respectively to intelligence The operating system version information of equipment, device name, and unit type.By these information in template Browser just can be obtained for obtaining the UA word of this device page (DPAGE) applicable after the information of alternative costs equipment Symbol string.Finally, the UA character string obtained is replaced the UA character string of original acquiescence in this browser, User just can use browser to browse webpage on this smart machine.
If 205 not can recognize that equipment, then the UA character string of browser acquiescence is used to obtain the page, and Show in the device with the standard display effect of this browser.
According to the judgement of 203, when this smart machine is not can recognize that equipment, illustrate that browser does not has Being suitable for the UA character string of this equipment, browser can only use the UA character string of acquiescence to obtain the page, Showed the user of use by this equipment with the standard display effect of this browser.
It is pointed out that in this step, browser can be by not can recognize that the equipment of equipment by this Information feeds back to system manager, manager not can recognize that the facility information of equipment is by sorting-out in statistics Its adaptive UA character string template being suitable for, and this template and facility information are added to recognizable equipment row In table, for updating the range of fit of this browser.
The embodiment of the present invention, from the point of view of the visual angle of user, is to install one in its smart machine used to answer By program, i.e. there is the browser of adaptation function.In installation process, browser is by obtaining this intelligence The facility information of energy equipment identifies the UA character string of this equipment applicable, and revises the UA of browser acquiescence Character string, when installation process completes, UA character string has been revised by browser.User is permissible Directly use this browser to carry out web page browsing, it is not necessary to worry that this browser causes due to version difference with The problem that this equipment is the most adaptive.
Further, as the realization to said method, embodiments provide a kind of self adaptation and show Showing the device of webpage, this device is arranged in the browser of smart machine, as it is shown on figure 3, this device bag Include:
Acquiring unit 31, uses the facility information of equipment for obtaining browser.
Judging unit 32, for judging whether the facility information that described acquiring unit 31 obtains is recognizable Equipment, described recognizable equipment be known to there is the equipment of specialized page display effect.
Amendment unit 33, is used for when the result that described judging unit 32 judges is as recognizable equipment, root User agent's UA character string of described browser is revised, in order to described browser obtains according to described facility information Take the page adapting to described equipment display effect.
Further, the acquiring unit 31 of described device is additionally operable to, when the judgement of described judging unit 32 When result is not for can recognize that equipment, use the UA character string acquisition page that described browser give tacit consent to, and with The standard display effect of described browser is shown in the apparatus.
Further, as shown in Figure 4, described acquiring unit 31 includes:
Determine module 311, for determining the canonical function interface that described equipment provides.
Acquisition module 312, for obtaining institute according to the described canonical function interface determining that module 311 determines Stating the facility information of equipment, described facility information at least includes: device name, unit type and operation system System version information.
Further, as shown in Figure 4, described device also includes:
At described judging unit 32, creating unit 34, for judging whether described facility information is recognizable Before equipment, creating recognizable list of devices, in described list, record has the facility information of recognizable equipment.
Further, as shown in Figure 4, described judging unit 32 includes:
Matching module 321, for mating described facility information and the equipment in described recognizable list of devices Information.
Determine module 322, for when described matching module 321 matching unit information success, determine institute Equipment of stating is for recognizable equipment.
Further, as shown in Figure 4, described amendment unit 33 includes:
Extraction module 331, is used for operation system information, the device name letter extracting in described facility information Breath and unit type information.
Generation module 332, for the UA character string template according to described recognizable equipment, carries described Operation system information, device name information and unit type information that delivery block 331 extracts add institute to State in UA character string template, generate the UA character string of recognizable equipment.
Replacement module 333, the UA character string of the recognizable equipment for described generation module 332 is generated Replace the UA character string of described browser acquiescence.
In sum, the method and device of a kind of self adaptation display webpage that the embodiment of the present invention is used, Same browser can be made to be applicable to different intelligent platforms, by obtaining the equipment using browser equipment Information, by determining, with the facility information comparison of known device, the equipment using this browser current.Enter And according to the facility information of this equipment, preset UA character string template is revised corresponding information parameter, Obtain being applicable to the UA character string that this equipment shows.Revise the UA of acquiescence in current browser accordingly Character string, so that browser is obtained in that is suitable for the Webpage that this equipment shows.Relative to existing Have in technology for different platform adaptation different editions browser for, the embodiment of the present invention used from Adjustment mechanism, for the producer of browser can with lower cost complete the exploitation of browser with And follow-up maintenance, it is used for the degree of depth of this browser is opened by the resource of multiple for original exploitation version browser Send out and in upgrade maintenance, to improve self-value and the core competitiveness of navigator product.And relative to For the user of browser, it is possible to all use same browser in different intelligent platforms, it is not necessary to Again adapt to use rule and the feature of new browser, thus increase user and use the viscosity of this browser.
Device embodiment described above is only schematically, wherein said illustrates as separating component Unit can be or may not be physically separate, the parts shown as unit can be or Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words Dividing and can embody with the form of software product, this computer software product can be stored in computer can Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (12)

1. the method for a self adaptation display webpage, it is characterised in that including:
Obtain browser and use the facility information of equipment;
Judge that whether described facility information is recognizable equipment, described recognizable equipment be known to there is spy The equipment of different page display effect;
If recognizable equipment, then revise the user agent UA of described browser according to described facility information Character string, in order to described browser obtains the page adapting to described equipment display effect.
Method the most according to claim 1, it is characterised in that described method also includes:
If judging, described facility information as not can recognize that equipment, then uses the UA word that described browser is given tacit consent to Symbol string obtains the page, and shows in the apparatus with the standard display effect of described browser.
Method the most according to claim 1, it is characterised in that described acquisition browser uses equipment Facility information include:
Determine the canonical function interface that described equipment provides;
Obtain the facility information of described equipment according to described canonical function interface, described facility information at least wraps Include: device name, unit type and operating system version information.
4. according to the method according to any one of claim 1-3, it is characterised in that set described in judging Before whether standby information is recognizable equipment, described method also includes:
Creating recognizable list of devices, in described list, record has the facility information of recognizable equipment.
Method the most according to claim 4, it is characterised in that judge that whether described facility information is Recognizable equipment includes:
Mate described facility information and the facility information in described recognizable list of devices;
If the match is successful, it is determined that described equipment is recognizable equipment.
Method the most according to claim 5, it is characterised in that revise institute according to described facility information The user agent's UA character string stating browser includes:
Extract the operation system information in described facility information, device name information and unit type information;
UA character string template according to described recognizable equipment, by described operation system information, implementor name Title information and unit type information are added in described UA character string template, generate recognizable equipment UA character string;
The UA character string of described recognizable equipment is replaced the UA character string of described browser acquiescence.
7. the device of a self adaptation display webpage, it is characterised in that described device includes:
Acquiring unit, uses the facility information of equipment for obtaining browser;
Whether judging unit, be recognizable equipment for judging the facility information that described acquiring unit obtains, Described recognizable equipment has the equipment of specialized page display effect known to being;
Amendment unit, for when the result that described judging unit judges is as recognizable equipment, according to described Facility information revises user agent's UA character string of described browser, in order to described browser obtains and adapts to The page of described equipment display effect.
Device the most according to claim 7, it is characterised in that the acquiring unit of described device is also used In, when the result that described judging unit judges is not as can recognize that equipment, use described browser to give tacit consent to UA character string obtains the page, and shows in the apparatus with the standard display effect of described browser.
Device the most according to claim 7, it is characterised in that described acquiring unit includes:
Determine module, for determining the canonical function interface that described equipment provides;
Acquisition module, for obtaining described equipment according to the described canonical function interface determining that module determines Facility information, described facility information at least includes: device name, unit type and operating system version letter Breath.
10. according to the device according to any one of claim 7-9, it is characterised in that described device is also Including:
Creating unit, for described judging unit judge described facility information be whether can recognize that equipment it Before, creating recognizable list of devices, in described list, record has the facility information of recognizable equipment.
11. devices according to claim 10, it is characterised in that described judging unit includes:
Matching module, for mating described facility information and the facility information in described recognizable list of devices;
Determine module, for when described matching module matching unit information success, determine that described equipment is Recognizable equipment.
12. devices according to claim 11, it is characterised in that described amendment unit includes:
Extraction module, for extract operation system information in described facility information, device name information with And unit type information;
Generation module, for the UA character string template according to described recognizable equipment, by described extraction mould Operation system information, device name information and unit type information that block extracts add described UA word to In symbol string template, generate the UA character string of recognizable equipment;
Replacement module, the UA character string of the recognizable equipment for being generated by described generation module replaces institute State the UA character string of browser acquiescence.
CN201510917166.4A 2015-12-10 2015-12-10 Method and device for self-adaptive display of page Pending CN105868240A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510917166.4A CN105868240A (en) 2015-12-10 2015-12-10 Method and device for self-adaptive display of page
PCT/CN2016/097221 WO2017096967A1 (en) 2015-12-10 2016-08-29 Method and device for self-adaptively displaying web page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510917166.4A CN105868240A (en) 2015-12-10 2015-12-10 Method and device for self-adaptive display of page

Publications (1)

Publication Number Publication Date
CN105868240A true CN105868240A (en) 2016-08-17

Family

ID=56624466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510917166.4A Pending CN105868240A (en) 2015-12-10 2015-12-10 Method and device for self-adaptive display of page

Country Status (2)

Country Link
CN (1) CN105868240A (en)
WO (1) WO2017096967A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017096967A1 (en) * 2015-12-10 2017-06-15 乐视控股(北京)有限公司 Method and device for self-adaptively displaying web page
CN106888405A (en) * 2017-01-03 2017-06-23 青岛海信电器股份有限公司 Webpage method of adjustment, browser client and system in TV browser
CN109656625A (en) * 2018-11-15 2019-04-19 平安科技(深圳)有限公司 Recognition methods, device, computer equipment and the storage medium of mobile device model
CN109691023A (en) * 2017-05-25 2019-04-26 微软技术许可有限责任公司 Resolver

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815477B (en) * 2018-12-04 2023-10-17 北京明略昭辉科技有限公司 Method and device for identifying browser information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778168A (en) * 2010-02-05 2010-07-14 中国电信股份有限公司 Method and system for optimization display of wed pages on browser of mobile terminal
US20100306192A1 (en) * 2009-05-28 2010-12-02 Tip Top Technologies, Inc. Method and system for a search engine for user generated content (ugc)
CN101964813A (en) * 2010-09-21 2011-02-02 北京网康科技有限公司 Method and system for detecting terminal information in GPRS network
CN103327411A (en) * 2013-06-03 2013-09-25 贝壳网际(北京)安全技术有限公司 Video playing method, device and system for mobile terminal browser
CN103347069A (en) * 2013-06-27 2013-10-09 贝壳网际(北京)安全技术有限公司 Method and device for realizing network access

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8627204B2 (en) * 2011-10-18 2014-01-07 Microsoft Corporation Custom optimization of web pages
US20140053065A1 (en) * 2012-08-16 2014-02-20 Motorola Mobility Llc System and method for adjusting website displays
CN105868240A (en) * 2015-12-10 2016-08-17 乐视致新电子科技(天津)有限公司 Method and device for self-adaptive display of page

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100306192A1 (en) * 2009-05-28 2010-12-02 Tip Top Technologies, Inc. Method and system for a search engine for user generated content (ugc)
CN101778168A (en) * 2010-02-05 2010-07-14 中国电信股份有限公司 Method and system for optimization display of wed pages on browser of mobile terminal
CN101964813A (en) * 2010-09-21 2011-02-02 北京网康科技有限公司 Method and system for detecting terminal information in GPRS network
CN103327411A (en) * 2013-06-03 2013-09-25 贝壳网际(北京)安全技术有限公司 Video playing method, device and system for mobile terminal browser
CN103347069A (en) * 2013-06-27 2013-10-09 贝壳网际(北京)安全技术有限公司 Method and device for realizing network access

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017096967A1 (en) * 2015-12-10 2017-06-15 乐视控股(北京)有限公司 Method and device for self-adaptively displaying web page
CN106888405A (en) * 2017-01-03 2017-06-23 青岛海信电器股份有限公司 Webpage method of adjustment, browser client and system in TV browser
CN109691023A (en) * 2017-05-25 2019-04-26 微软技术许可有限责任公司 Resolver
CN109691023B (en) * 2017-05-25 2021-11-30 微软技术许可有限责任公司 Resolver
US11429671B2 (en) 2017-05-25 2022-08-30 Microsoft Technology Licensing, Llc Parser for parsing a user agent string
CN109656625A (en) * 2018-11-15 2019-04-19 平安科技(深圳)有限公司 Recognition methods, device, computer equipment and the storage medium of mobile device model

Also Published As

Publication number Publication date
WO2017096967A1 (en) 2017-06-15

Similar Documents

Publication Publication Date Title
CN105868240A (en) Method and device for self-adaptive display of page
CN107885848B (en) Webpage screen capturing method based on web technology
Zhao et al. Seenomaly: Vision-based linting of gui animation effects against design-don't guidelines
US10542123B2 (en) System and method for generating and monitoring feedback of a published webpage as implemented on a remote client
CN106293365B (en) A kind of method and device obtaining content of pages
US20160283461A1 (en) Method and terminal for extracting webpage content, and non-transitory storage medium
CN110020385B (en) System and method for extracting website characteristics
CN100444163C (en) Configuration method for webpage display
TW201003438A (en) Method and system to selectively secure the display of advertisements on web browsers
CN108366058B (en) Method, device, equipment and storage medium for preventing traffic hijacking of advertisement operator
WO2014153457A1 (en) Merging web page style addresses
CN103902717A (en) System and method for personalizing internal portals of enterprises
CN104881273A (en) Webpage rendering analysis method and terminal device
CN109725965A (en) Cascading style listing maintenance, device, computer equipment and storage medium
CA3044034A1 (en) Electronic form identification using spatial information
CN105979393A (en) Web page display method and device, and intelligent television system
CN105808587A (en) Method and system for embedding information into webpage and gateway device
US10347025B2 (en) Personalized word cloud embedded emblem generation service
CN108984641A (en) A kind of method for page jump based on WEB terminal
CN105550179A (en) Webpage collection method and browser plug-in
CN113297345B (en) Analysis report generation method, electronic equipment and related product
CN103164213A (en) Method, device and system of testing compatibility of Web browser
CN114417226A (en) Page generation method, display method, device, electronic equipment and storage medium
CN105279076B (en) A kind of webpage test method and terminal
CN109271607A (en) User Page layout detection method and device, electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160817