WO2017096967A1 - 自适应显示网页的方法及装置 - Google Patents
自适应显示网页的方法及装置 Download PDFInfo
- Publication number
- WO2017096967A1 WO2017096967A1 PCT/CN2016/097221 CN2016097221W WO2017096967A1 WO 2017096967 A1 WO2017096967 A1 WO 2017096967A1 CN 2016097221 W CN2016097221 W CN 2016097221W WO 2017096967 A1 WO2017096967 A1 WO 2017096967A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- browser
- identifiable
- string
- device 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
Definitions
- the embodiments of the present application relate to the field of computer technologies, for example, to a method and an apparatus for adaptively displaying a webpage.
- the User Agent is part of the HyperText Transfer Protocol (HTTP) protocol and is part of the header domain.
- HTTP HyperText Transfer Protocol
- UA is a special string header that enables the server to identify the operating system and version used by the client, the Central Processing Unit (CPU) type, browser and version, browser rendering engine, browser language, browser plugin, etc. .
- CPU Central Processing Unit
- Some websites can send different pages to different operating systems and different browsers by judging UA, so some pages may not be displayed properly in a specific browser. For example, there are differences between using a mobile phone and using a computer to access Google. These differences are determined by Google based on the UA of the visitor (browser).
- the UA in the same version of the browser used is fixed. That is to say, the browser displays the same mode in any webpage, and the webpage display mode cannot be changed according to the platform. Its display mode to achieve a better display. For example, a browser that displays a web page on a computer is excellent, but the same web page may not be displayed or the displayed font is small and inconvenient to view because the browser is used in a mobile phone. To this end, many browser manufacturers will choose different versions of the browser kernel to create different versions of the browser to meet the display requirements of different platforms according to the needs of different platforms. This approach not only increases the cost of development and maintenance of browser manufacturers, but more importantly, for users to use the same browser that they like or use in different platforms, it needs to be carefully searched for this.
- the browser version of the platform is downloaded and installed. If the browser does not have an adapted version of the platform, only other brands of browsers can be used.
- the embodiment of the present invention provides a method and an apparatus for adaptively displaying a webpage, which improves the adaptability of the browser to different platforms, thereby improving the stickiness of the browser to the user.
- an embodiment of the present application provides a method for adaptively displaying a webpage, which is applied to an electronic device, and the method includes:
- the user agent UA string of the browser is modified according to the device information, so that the browser obtains a page that adapts to the display effect of the device.
- the method for adaptively displaying a webpage further includes:
- the page is obtained by using the default UA string of the browser, and the standard display effect of the browser is displayed in the device.
- the obtaining device information of the browser using the device includes:
- the method before determining, according to the device information, whether the device is an identifiable device, the method further includes:
- a list of identifiable devices is created, in which device information identifying the device is recorded.
- determining whether the device is an identifiable device according to the device information includes:
- the match is successful, it is determined that the device is an identifiable device.
- modifying the user agent UA string of the browser according to the device information includes:
- Extracting operating system information, device name information, and device model information in the device information Extracting operating system information, device name information, and device model information in the device information
- the UA string of the identifiable device is replaced with the default UA string of the browser.
- an embodiment of the present application provides an apparatus for adaptively displaying a webpage, where the apparatus includes:
- the obtaining unit is configured to obtain device information of the device used by the browser;
- the determining unit is configured to determine, according to the device information acquired by the acquiring unit, whether the device is an identifiable device, and the identifiable device is a known device having a special page display effect;
- a modifying unit configured to: when the determining unit determines that the device is an identifiable device, modify a user agent UA string of the browser according to the device information, so that the browser obtains a display effect adapted to the device page.
- the obtaining unit is further configured to: when the determining unit determines, according to the device information, that the device is an unrecognizable device, obtain a page by using a default UA string of the browser, and browse the page The standard display effect of the device is shown in the device.
- the obtaining unit includes:
- Determining a module configured to determine a standard function interface provided by the device
- the acquiring module is configured to acquire device information of the device according to the standard function interface determined by the determining module, where the device information includes: a device name, a device model, and an operating system version information.
- the device further includes:
- a creating unit configured to: before the determining unit determines, according to the device information, whether the device is an identifiable device, create an identifiable device list, where the device information of the identifiable device is recorded in the list.
- the determining unit includes:
- a matching module configured to match the device information with device information in the identifiable device list
- the determining module is configured to determine that the device is an identifiable device when the matching module matches the device information.
- the modifying unit includes:
- An extraction module configured to extract operating system information and device name information in the device information to And equipment model information
- a generating module configured to add operating system information, device name information, and device model information extracted by the extracting module to the UA string template according to the UA string template of the identifiable device, to generate an identifiable device UA string;
- a replacement module configured to replace the UA string of the identifiable device generated by the generating module with the browser default UA string.
- the embodiment of the present application further provides a non-transitory computer storage medium storing computer executable instructions for causing the computer to execute the foregoing method.
- an electronic device including:
- At least one processor and,
- the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method as described above.
- an embodiment of the present application provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instruction When executed by a computer, the computer is caused to perform the method described above.
- the method and device for adaptively displaying a webpage provided by the embodiment of the present application can enable the same browser to be applied to different intelligent platforms.
- the adaptive mode adopted by the embodiment of the present application can be used by the browser manufacturer.
- the adaptive method adopted by the embodiment of the present application can use the same browser in different intelligent platforms, and does not need to adapt to the usage rules and features of the new browser, thereby increasing the user's use.
- FIG. 1 is a flowchart 1 of a method for adaptively displaying a webpage according to an embodiment of the present application
- FIG. 2 is a second flowchart of a method for adaptively displaying a webpage according to an embodiment of the present application
- FIG. 3 is a structural block diagram of an apparatus for adaptively displaying a webpage according to an embodiment of the present application
- FIG. 4 is a block diagram showing the structure of a live video uploading apparatus according to an embodiment of the present application.
- FIG. 5 is a schematic diagram of a hardware structure of an apparatus for performing a method for adaptively displaying a webpage according to an embodiment of the present application.
- the embodiment of the present application provides a method for adaptively displaying a webpage. As shown in FIG. 1, the method is applied to a browser for browsing a webpage by using a smart device.
- step 110 device information of the browser using the device is obtained.
- a smart device displays the content of a web page obtained by a browser when displaying a web page. Since the website will send different pages to the browser according to the UA string of the browser, the UA string of the browser determines the content of the webpage that the smart device can obtain. And the browser's UA string is also the root According to different operating systems and the way the interactive interface is displayed. Different smart devices correspond to different browsers, that is, different smart devices have different UA strings. Therefore, in order to adapt the browser to smart devices on different platforms, it is necessary to have the UA string automatically modified according to the changes of the smart device.
- the browser obtains the information of the smart device currently using the browser, and the implementation process may be through a standard device when the browser is installed by the smart device.
- the function interface acquires related information of the smart device, so that the browser identifies the smart device by using the device information of the smart device.
- step 120 it is determined whether the device is an identifiable device based on the device information.
- the device information is identified to determine whether the smart device needs a special display effect when performing page display, that is, whether the smart device is an identifiable device. For example, by judging the device information of the device, it can be determined whether the device is a computer or a mobile phone, or another smart device such as a television or a watch. Since different smart devices display different effects or methods on the same web page, such as viewing the same web page on a mobile phone and a computer, due to different display ranges and flow control needs, the page layout of the two is often different. Therefore, browsers in different smart devices will have different UA string formats.
- the device information of multiple smart devices and the corresponding UA string content are stored in the browser.
- the browser determines whether the smart device is a known smart device by identifying the device information of the smart device, that is, whether it is a smart device stored in the browser.
- step 130 if it is an identifiable device, the user agent UA string of the browser is modified according to the device information.
- the browser can determine the UA string required by the device, and the browser can modify the content of the original UA string to the UA string corresponding to the device.
- the server obtains the content of the page suitable for display by the smart device.
- the first embodiment provides a UA string of a plurality of known devices in the browser, and the device information of the current smart device is matched with the device information of the known device. If the current smart device is one of the known devices, the current default UA string is replaced with the UA string of one of the known devices that matches the current smart device.
- the second modification is to save multiple types of UA string templates in the browser. When the current smart device is a known type of smart device, the UA string template of the class is retrieved and the smart device is obtained. The necessary information of the device is added to the UA string template to generate a UA string suitable for the smart device, and then replace the default UA string of the browser.
- the method for adaptively displaying a webpage used in the embodiment of the present application enables the same browser to be applied to different intelligent platforms, and obtains device information using the browser device, and the known device.
- the device information is compared to determine the current device using the browser.
- the corresponding information parameter is modified in the preset UA string template to obtain a UA string suitable for display by the device.
- the default UA string in the current browser is modified accordingly to enable the browser to obtain a web page suitable for display by the device.
- the adaptive method adopted by the embodiment of the present application can complete the development of the browser and the subsequent maintenance for the browser manufacturer, and use the resources of the original development browser for the version.
- the adaptive method adopted by the embodiment of the present application can use the same browser in different intelligent platforms, and does not need to adapt to the usage rules and features of the new browser, thereby increasing the user's use.
- the stickiness of the browser can be used for the user of the browser.
- the embodiment further provides a method for adaptively displaying a webpage, and the method includes the steps shown in FIG. 2.
- step 210 device information of the browser using the device is obtained.
- the device information of the smart device is obtained according to the standard function interface provided by the smart device when the smart device is installed.
- the corresponding function interface is also different, and the obtained standard functions are also different.
- a plurality of standard function interfaces are provided to obtain device information of the smart device by calling a suitable standard function interface on different operating system platforms.
- the device information includes basic information such as the device name and model of the smart device and the version information of the operating system used in the device. Through these basic device information, the browser can recognize the type of the smart device and determine whether the UA string of the browser to be used needs to be modified.
- step 220 a list of identifiable devices is created.
- a list of identifiable devices is created in the browser.
- the device information of different types of smart devices is recorded in the list, wherein the smart device is classified according to the content of the UA string used by the smart device when acquiring the webpage page, and the webpage page is obtained.
- the smart devices with the same content of the UA string are treated as the same type of smart device.
- the computer of the same IOS system or the mobile phone of the same Android system can be regarded as the same type of smart device.
- Devices in this list are known because the UA strings used are known, so devices in the list can also be referred to as identifiable devices.
- the device information recorded in the list also includes the name of the device, the device model, and the version information of the operating system.
- the device information corresponds to the device information acquired by the browser in step 110 above.
- the device information in the list can be updated by upgrading the browser, thereby improving the adaptation range of the browser to different smart devices.
- step 230 it is determined whether the device is an identifiable device based on the device information.
- the device information obtained by the browser is traversed in the identifiable device list in step 220, and the device information acquired by the browser is matched with the device information of the identifiable device in the list. If the device information obtained by the browser can match the same device information, the smart device is also considered to be an identifiable smart device. If the device information obtained by the browser does not match the same device information, it is determined that the smart device is an unrecognizable device.
- step 240 if the device is an identifiable device, the user agent UA string of the browser is modified according to the device information.
- the browser extracts the device information of the smart device, including the device name and model of the smart device, and the information of the operating system is added to the UA character of the identifiable device.
- the UA string template records information corresponding to the identifiable device in the identifiable device list.
- the UA string template can also represent a UA string used by a type of smart device to obtain a webpage.
- the UA string template corresponding to the Apple system computer 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 string template for Apple's mobile phone can be: Mozilla/5.0 (Linux; os type; devices name; devices type) AppleWebKit/535.13 (KHTML ,like Gecko)Version/4.0 Mobile Safari/535.13.
- the os type, the device name, and the devices type respectively correspond to the operating system version information, the device name, and the device model of the smart device.
- step 250 if the device is an unrecognizable device, the browser uses the default UA string of the browser to obtain the page, and displays the standard display effect of the browser in the device.
- step 230 when the smart device is an unrecognizable device, it means that there is no UA string suitable for the device in the browser, and the browser can only use the default UA string to obtain the page, the standard of the browser.
- the display effect is displayed to the user who is using the device.
- the browser can feed back the device information of the unrecognizable device to the system administrator, and the administrator can align the device information of the unrecognizable device by the administrator to adapt the UA to the unrecognizable device.
- a string template and add the template and device information to the list of identifiable devices to update the browser's scope of adaptation.
- the embodiment of the present application installs an application, that is, a browser with an adaptive function, in the smart device used by the user.
- the browser identifies the UA string suitable for the device by obtaining the device information of the smart device, and modifies the default UA string of the browser.
- the browser has modified the UA string. .
- the user can directly use the browser to browse the webpage without worrying about the problem that the browser does not adapt to the device due to different versions.
- the embodiment of the present application further provides an apparatus for adaptively displaying a webpage, where the method for adaptively displaying a webpage is implemented, and the apparatus is disposed in a browser of a smart device, as shown in FIG.
- the method includes an acquisition unit 31, a determination unit 32, and a modification unit 33.
- the obtaining unit 31 is configured to acquire device information of the device used by the browser.
- the determining unit 32 is configured to determine, according to the device information acquired by the acquiring unit 31, whether the device is an identifiable device, and the identifiable device is a known device having a special page display effect.
- the modifying unit 33 is configured to, when the determining unit 32 determines that the device is an identifiable device, modify a user agent UA string of the browser according to the device information, so that the browser obtains the device display The page of the effect.
- the obtaining unit 31 is further configured to: when the determining unit 32 determines that the device is an unrecognizable device according to the device information, obtain a page by using a default UA string of the browser, and browse the page. The standard display effect of the device is shown in the device.
- the obtaining unit 31 includes: a determining module 311 and an obtaining module 312.
- the determining module 311 is configured to determine a standard function interface provided by the device.
- the obtaining module 312 is configured to acquire device information of the device according to the standard function interface determined by the determining module 311, where the device information includes: a device name, a device model, and operating system version information.
- the apparatus further includes: a creating unit 34.
- the creating unit 34 is configured to: before the determining unit 32 determines whether the device information is an identifiable device, create an identifiable device list, where the device information of the identifiable device is recorded in the list.
- the determining unit 32 includes:
- the matching module 321 is configured to match the device information with the device information in the identifiable device list.
- the determining module 322 is configured to determine that the device is an identifiable device when the matching module 321 matches device information.
- the modifying unit 33 includes: an extracting module 331, a generating module 332, and a replacing module 333.
- the extracting module 331 is configured to extract operating system information, device name information, and device model information in the device information.
- the generating module 332 is configured to add the operating system information, the device name information, and the device model information extracted by the extracting module 331 to the UA string template according to the UA string template of the identifiable device, to generate an identifiable The UA string of the device.
- the replacement module 333 is configured to replace the UA string of the identifiable device generated by the generating module 332 with the browser default UA string.
- the embodiment of the present application further provides a non-transitory computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions can perform the method for adaptively displaying a webpage in any of the foregoing method embodiments.
- FIG. 5 is a schematic diagram of a hardware structure of a device for performing a method for adaptively displaying a webpage according to an embodiment of the present disclosure. As shown in FIG. 5, the device includes:
- One or more processors 51 and a memory 52 are exemplified by a processor 51 in FIG.
- the apparatus may also include an input device 53 and an output device 54.
- the processor 51, the memory 52, the input device 53, and the output device 54 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
- the memory 52 is used as a non-transitory computer readable storage medium, and can be used for storing a non-transitory software program, a non-transitory computer executable program, and a module, such as a program instruction corresponding to the control method of the terminal window display in the embodiment of the present application. / module.
- the processor 51 executes various functional applications and data processing of the server by running non-transitory software programs, instructions, and modules stored in the memory 52, that is, a control method for displaying the terminal window display of the above method embodiment.
- the memory 52 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the device for adaptively displaying the webpage, etc. .
- memory 52 can include high speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
- the memory 52 can optionally include a memory remotely located relative to the processor 51 that can be connected via a network to a device that adaptively displays the web page. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- the input device 53 can receive the input numeric or character information and generate a key signal input related to user settings and function control of the device that adaptively displays the web page.
- Output device 54 may include a display device such as a display screen.
- the one or more modules are stored in the memory 52, and when executed by the one or more processors 51, perform a method of adaptively displaying a web page in any of the above method embodiments.
- Embodiments of the present application provide a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer Having the computer perform the method of any of the above embodiments.
- the method and device for adaptively displaying a webpage used in the embodiments of the present application enable the same browser to be applied to different intelligent platforms, and obtain device information using the browser device.
- the current device using the browser is determined by comparison with the device information of the known device.
- the corresponding information parameter is modified in the preset UA string template to obtain a UA string suitable for display by the device.
- the default UA string in the current browser is modified accordingly to enable the browser to obtain a web page suitable for display by the device.
- the adaptive method adopted by the embodiment of the present application can complete the development of the browser and the subsequent maintenance for the browser manufacturer, and use the resources of the original development browser for the version.
- the adaptive method adopted by the embodiment of the present application can use the same browser in different intelligent platforms, and does not need to adapt to the usage rules and features of the new browser, thereby increasing user usage.
- the browser is sticky.
- the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of the embodiment.
- the method and device for adaptively displaying a webpage provided by the embodiment of the present invention improve the adaptability of the browser to different platforms, and improve the stickiness of the browser to the user.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请实施例提供一种自适应显示网页的方法及装置,所述方法包括:获取浏览器使用设备的设备信息;根据所述设备信息判断所述设备是否为可识别设备,所述可识别设备为已知的具有特殊页面显示效果的设备;以及若所述设备为可识别设备,则根据所述设备信息修改所述浏览器的用户代理UA字符串,以便所述浏览器获取适应所述设备显示效果的页面。
Description
本申请要求在2015年12月10日提交中国专利局、申请号为201510917166.4、发明名称为“一种自适应显示网页的方法及装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
本申请实施例涉及计算机技术领域,例如涉及一种自适应显示网页的方法及装置。
用户代理(User Agent,UA)是超文本传输协议(HyperText Transfer Protocol,HTTP)协议中的一部分,属于头域的组成部分。UA是一个特殊字符串头,使得服务器能够识别客户使用的操作系统及版本、中央处理器(Central Processing Unit,CPU)类型、浏览器及版本、浏览器渲染引擎、浏览器语言、浏览器插件等。一些网站能够通过判断UA来给不同的操作系统、不同的浏览器发送不同的页面,因此可能造成一些页面无法在特定浏览器中正常显示。例如,使用手机和使用电脑访问谷歌是有差异的,这些差异是谷歌根据访问者(浏览器)的UA来判断的。
所使用的同一版本的浏览器中的UA是固定的,也就是说,该浏览器无论是安装在任何平台中,其网页显示的模式都是相同,网页显示的模式不能根据平台的不同而改变其显示模式以达到较好的显示效果。例如,一款浏览器在电脑上显示网页的效果优异,但该浏览器使用在手机中由于显示比例的改变,相同的网页就可能无法显示或者是显示的字体很小,不便于查看。为此,许多浏览器厂家都会根据不同平台的需要,选择不同版本的浏览器内核制作出不同版本的浏览器以适应不同平台的显示需求。这样的做法不仅加大了浏览器厂家的开发、维护的成本,更重要的是,对于用户来说要在不同平台中使用同一款自己喜欢或使用习惯的浏览器就需要仔细的查找适用于本平台的浏览器版本,进行下载安装,若该浏览器没有对该平台的适配版本则只能使用其它品牌的浏览器。
发明内容
本申请实施例提供一种自适应显示网页的方法及装置,提高了浏览器对不同平台的自适应能力,从而提高浏览器对使用用户的粘性。
第一方面,本申请实施例提供了一种自适应显示网页的方法,应用于电子设备,该方法包括:
获取浏览器使用设备的设备信息;
根据所述设备信息判断所述设备是否为可识别设备,所述可识别设备为已知的具有特殊页面显示效果的设备;以及
若所述设备为可识别设备,则根据所述设备信息修改所述浏览器的用户代理UA字符串,以便所述浏览器获取适应所述设备显示效果的页面。
可选的,所述自适应显示网页的方法还包括:
根据所述设备信息若判断所述设备为不可识别设备,则使用所述浏览器默认的UA字符串获取页面,并将所述浏览器的标准显示效果展示在所述设备中。
可选的,所述获取浏览器使用设备的设备信息包括:
确定所述设备提供的标准函数接口;以及
根据所述标准函数接口获取所述设备的设备信息,所述设备信息包括:设备名称、设备型号和操作系统版本信息。
可选的,在根据所述设备信息判断所述设备是否为可识别设备之前,所述方法还包括:
创建可识别设备列表,所述列表中记录有可识别设备的设备信息。
可选的,根据所述设备信息判断所述设备是否为可识别设备包括:
匹配所述设备信息与所述可识别设备列表中的设备信息;以及
若匹配成功,则确定所述设备为可识别设备。
可选的,根据所述设备信息修改所述浏览器的用户代理UA字符串包括:
提取所述设备信息中的操作系统信息、设备名称信息以及设备型号信息;
根据所述可识别设备的UA字符串模板,将所述操作系统信息、设备名称信息以及设备型号信息添加到所述UA字符串模板中,生成可识别设备的UA字
符串;以及
将所述可识别设备的UA字符串替换所述浏览器默认的UA字符串。
第二方面,本申请实施例提供了一种自适应显示网页的装置,该装置包括:
获取单元,设置为获取浏览器使用设备的设备信息;
判断单元,设置为根据所述获取单元获取的设备信息判断所述设备是否为可识别设备,所述可识别设备为已知的具有特殊页面显示效果的设备;以及
修改单元,设置为当所述判断单元判断所述设备为可识别设备时,根据所述设备信息修改所述浏览器的用户代理UA字符串,以便所述浏览器获取适应所述设备显示效果的页面。
可选的,所述获取单元还设置为,当所述判断单元根据所述设备信息判断所述设备为不可识别设备时,使用所述浏览器默认的UA字符串获取页面,并将所述浏览器的标准显示效果展示在所述设备中。
可选的,所述获取单元包括:
确定模块,设置为确定所述设备提供的标准函数接口;以及
获取模块,设置为根据所述确定模块确定的标准函数接口获取所述设备的设备信息,所述设备信息包括:设备名称、设备型号和操作系统版本信息。
可选的,所述装置还包括:
创建单元,设置为在所述判断单元根据所述设备信息判断所述设备是否为可识别设备之前,创建可识别设备列表,所述列表中记录有可识别设备的设备信息。
可选的,所述判断单元包括:
匹配模块,设置为匹配所述设备信息与所述可识别设备列表中的设备信息;以及
确定模块,设置为当所述匹配模块匹配设备信息成功时,确定所述设备为可识别设备。
可选的,所述修改单元包括:
提取模块,设置为提取所述设备信息中的操作系统信息、设备名称信息以
及设备型号信息;
生成模块,设置为根据所述可识别设备的UA字符串模板,将所述提取模块提取的操作系统信息、设备名称信息以及设备型号信息添加到所述UA字符串模板中,生成可识别设备的UA字符串;以及
替换模块,设置为将所述生成模块生成的可识别设备的UA字符串替换所述浏览器默认的UA字符串。
第三方面,本申请实施例还提供了一种非暂态计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令用于使所述计算机执行上述的方法。
第四方面,本申请实施例提供了一种电子设备,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行如上述的方法。
第五方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述的方法。
本申请实施例提供的一种自适应显示网页的方法及装置,能够使同一浏览器适用于不同的智能平台,本申请实施例所采用的自适应方式,对于浏览器的厂家而言,能够以更低的成本完成浏览器的开发以及后续的维护,将原有开发多个版本浏览器的资源用于对该浏览器的深度开发以及升级维护中,以提高浏览器产品的自身价值和核心竞争力。对于浏览器的用户而言,本申请实施例所采用的自适应方式能够在不同的智能平台中都使用同一种浏览器,不需要重新适应新浏览器的使用规则和特点,从而增加用户使用该浏览器的粘性。
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作以简单地介绍,显而易见地,下面描述中的附图是本申请的一部分实施例,对于本领域普通技术人员来讲,还可以根
据这些附图获得其他的附图。在不冲突的情况下,本申请实施例中的特征可以任意组合。
图1为本申请实施例提供的一种自适应显示网页的方法流程图一;
图2为本申请实施例提供的一种自适应显示网页的方法流程图二;
图3为本申请实施例提供的一种自适应显示网页的装置的结构组成框图;
图4为本申请实施例提供的一种直播视频的上传装置的结构组成框图;以及
图5是本申请实施例提供的执行自适应显示网页的方法的设备的硬件结构示意图。
为使本申请实施例的技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。。
本申请实施例提供了一种自适应显示网页的方法,如图1所示,该方法应用于使用智能设备浏览网页的浏览器。
在步骤110中,获取浏览器使用设备的设备信息。
能够使用浏览器进行网页浏览的智能设备越来越多,最常用的就是电脑与手机,而随着智能电视,智能手表以及智能眼镜等可穿戴智能设备的兴起以及网络的普及,具有智能操作系统的设备都具备基础的网页浏览功能,而要进行网页浏览,浏览器就是最基本的应用软件。而不同的智能设备所采用的操作系统也有所区别。例如,手机所采用的操作系统就分为谷歌的安卓(Android)系统、苹果的ios系统以及微软的Windows mobile系统。而对于不同的智能设备,所使用的操作系统的种类就更加多样,操作系统的版本更是不计其数。
一款智能设备在进行网页展示时,展示浏览器获取的网页页面内容。由于网站会根据浏览器的UA字符串来发送不同的页面给浏览器,因此,浏览器的UA字符串决定了智能设备所能获取的网页内容。而浏览器的UA字符串也是根
据不同的操作系统以及交互界面的展示方式来确定的。不同的智能设备对应不同的浏览器,即不同的智能设备具有不同的UA字符串。因此,为了让浏览器适应于不同平台的智能设备,就需要让UA字符串能够根据智能设备的变化而自动修改。
为了能够自适应的改变浏览器的UA字符串,在本申请实施例中,浏览器获取当前使用该浏览器的智能设备的信息,实现过程可以是通过智能设备在安装浏览器时,通过标准的函数接口来获取智能设备的相关信息,以便浏览器通过该智能设备的设备信息来识别该智能设备。
在步骤120中,根据设备信息判断设备是否为可识别设备。
识别获取到的设备信息,判断该智能设备在进行页面展示时是否需要特殊的显示效果,即判断该智能设备是否为可识别设备。例如,通过判断该设备的设备信息,可以确定该设备是电脑还是手机,再或者是电视、手表等其他智能设备。由于不同的智能设备对相同网页的展示效果或方式并不相同,如在手机和电脑上看同一个网页,由于显示范围的不同以及流量控制的需要,往往两者的页面排版是不同的。因此,不同的智能设备中的浏览器会有不同的UA字符串格式。而浏览器中会存储有多个智能设备的设备信息以及对应的UA字符串内容。
本步骤中,浏览器就是通过识别智能设备的设备信息来判断该智能设备是否为已知的智能设备,即是否为存储在浏览器中的智能设备。
在步骤130中,若为可识别设备,则根据该设备信息修改浏览器的用户代理UA字符串。
浏览器通过判断智能设备的种类以及型号,就可以确定该设备所需要的UA字符串,而浏览器通过将原有的UA字符串的内容修改成对应该设备的UA字符串,就可以向网页服务器获取适合该智能设备显示的页面内容。
其中,本实施例提供两种修改方式,第一种修改方式是:在浏览器中保存多个已知设备的UA字符串,将当前智能设备的设备信息与已知设备的设备信息进行匹配,如果当前智能设备为已知设备中的一个,就将当前默认的UA字符串替换为与当前智能设备匹配的该已知设备中的一个设备的UA字符串。第二种修改方式是:在浏览器中保存多个种类的UA字符串模板,当判断当前智能设备为已知的一类智能设备时,调取该类的UA字符串模板,并获取该智能
设备的必要信息添加到该UA字符串模板中,生成适合该智能设备的UA字符串,再替换浏览器默认的UA字符串。
结合上述的实现方式可以看出,本申请实施例所采用的自适应显示网页的方法,能够使同一浏览器适用于不同的智能平台,通过获取使用浏览器设备的设备信息,通过和已知设备的设备信息比对来确定使用该浏览器当前的设备。进而根据该设备的设备信息,在预置的UA字符串模板中修改相应的信息参数,得到适用于该设备显示的UA字符串。据此来修改当前浏览器中默认的UA字符串,从而使得浏览器能够获得适合于该设备显示的网页页面。本申请实施例所采用的自适应方式,对于浏览器的厂家而言,能够以更低的成本完成浏览器的开发以及后续的维护,将原有开发多个版本浏览器的资源用于对该浏览器的深度开发以及升级维护中,以提高浏览器产品的自身价值和核心竞争力。对于浏览器的用户而言,本申请实施例所采用的自适应方式能够在不同的智能平台中都使用同一种浏览器,不需要重新适应新浏览器的使用规则和特点,从而增加用户使用该浏览器的粘性。
为了更加详细地说明本申请实施例所提出的自适应显示网页的方法,本方实施例还提供了一种自适应显示网页的方法,该方法所包括的步骤如图2所示。
在步骤210中,获取浏览器使用设备的设备信息。
浏览器在识别智能设备时,是根据该智能设备在安装该浏览器时通过智能设备所提供的标准函数接口来获取智能设备的设备信息。根据智能设备中操作系统的不同,对应的函数接口也不相同,获取的标准函数也不同。在本申请实施例中的浏览器中设置有多种的标准函数接口,用以在不同操作系统平台上,通过调用适合的标准函数接口来获取该智能设备的设备信息。
其中,该设备信息中包括有该智能设备的设备名称、型号以及该设备中使用的操作系统的版本信息等基本内容。通过这些基本的设备信息,浏览器就能够识别出该智能设备的种类以及判断所需要使用的浏览器的UA字符串是否需要修改。
在步骤220中,创建可识别设备列表。
在智能设备安装浏览器时,会在浏览器中创建一个可识别设备列表。该列表中记录有不同种类智能设备的设备信息,其中,对智能设备的分类方式是根据智能设备在获取网页页面时所使用的UA字符串的内容,获取网页页面时所
使用的UA字符串的内容相同的智能设备就视为同一类智能设备,如同时IOS系统的电脑或同是Android系统手机都可以被看作是同一类智能设备。在该列表中的设备由于所使用的UA字符串是已知的,因此,列表中的设备也可以被称为可识别设备。列表中所记录的设备信息也包括这些设备的名称,设备型号以及操作系统的版本信息等,设备信息与上述步骤110中浏览器所获取的设备信息相对应。
需要说明的是,该列表中的设备信息可以通过对浏览器的升级进行更新,从而提高浏览器对不同智能设备的适配范围。
在步骤230中,根据设备信息判断设备是否为可识别设备。
将浏览器获取到的设备信息在步骤220中的可识别设备列表中进行遍历,将浏览器获取到的设备信息与该列表中可识别设备的设备信息进行匹配。如果浏览器获取到的设备信息能够匹配到相同的设备信息,则认为该智能设备也为可识别智能设备。而如果浏览器获取到的设备信息没有相同的设备信息与之匹配,则确定该智能设备为不可识别设备。
在步骤240中,若为设备为可识别设备,则根据该设备信息修改浏览器的用户代理UA字符串。
根据步骤230中的判断,若当前智能设备是可识别设备,浏览器将提取该智能设备的设备信息,包括该智能设备的设备名称、型号,以及操作系统的信息添加到可识别设备的UA字符串模板中。其中,UA字符串模板记录有在可识别设备列表中与可识别设备相对应的信息。该UA字符串模板还可以表示一类智能设备获取网页时所使用的UA字符串,例如,使用苹果系统电脑所对应的UA字符串模板为:Mozilla/5.0(os type;devices name;devices type)AppleWebKit/534.24(KHTML,like Gecko)Chrome/11.0.696.34Safari/534.24;苹果系统的手机的UA字符串模板可以为:Mozilla/5.0(Linux;os type;devices name;devices type)AppleWebKit/535.13(KHTML,like Gecko)Version/4.0 Mobile Safari/535.13。其中,os type、devices name以及devices type分别对应于智能设备的操作系统版本信息,设备名称,以及设备型号。将模板中的这些信息替换成本设备的信息后就能够得到浏览器用于获取适合该设备页面的UA字符串。最后,将得到的UA字符串替换掉该浏览器中原有默认的UA字符串,用户就可以在该智能设备上使用浏览器浏览网页了。
在步骤250中,若设备为不可识别设备,则使用浏览器默认的UA字符串获取页面,并将该浏览器的标准显示效果展示在该设备中。
根据步骤230中的判断,当该智能设备是不可识别设备时,说明浏览器中没有适合于该设备的UA字符串,浏览器只能使用默认的UA字符串获取页面,将该浏览器的标准显示效果通过该设备展示给使用的用户。
需要指出的是,在本步骤中,浏览器可以通过将该不可识别设备的设备信息反馈给系统管理员,由管理员通过统计整理不可识别设备的设备信息为该不可识别设备适配适合的UA字符串模板,并将该模板与设备信息添加到可识别设备列表中,用于更新该浏览器的适配范围。
本申请实施例在用户的视角来看,是在用户使用的智能设备中安装一个应用程序,即具有自适应功能的浏览器。在安装过程中,浏览器通过获取该智能设备的设备信息来识别适合该设备的UA字符串,并修改浏览器默认的UA字符串,在安装过程完成时,浏览器已经将UA字符串修改完成。用户可以直接使用该浏览器进行网页浏览,无需担心该浏览器由于版本不同导致的与该设备不适配的问题。
可选的,本申请实施例还提供了一种自适应显示网页的装置,用于实现上述自适应显示网页的方法,该装置设置在智能设备的浏览器中,如图3所示,该装置包括:获取单元31、判断单元32以及修改单元33。
其中,获取单元31,设置为获取浏览器使用设备的设备信息。
判断单元32,设置为根据所述获取单元31获取的设备信息判断所述设备是否为可识别设备,所述可识别设备为已知的具有特殊页面显示效果的设备。
修改单元33,设置为当所述判断单元32判断所述设备为可识别设备时,根据所述设备信息修改所述浏览器的用户代理UA字符串,以便所述浏览器获取适应所述设备显示效果的页面。
可选的,获取单元31还设置为,当所述判断单元32根据所述设备信息判断所述设备为不可识别设备时,使用所述浏览器默认的UA字符串获取页面,并将所述浏览器的标准显示效果展示在所述设备中。
可选的,如图4所示,所述获取单元31包括:确定模块311和获取模块312。
其中,确定模块311,设置为确定所述设备提供的标准函数接口。
获取模块312,设置为根据所述确定模块311确定的标准函数接口获取所述设备的设备信息,所述设备信息包括:设备名称、设备型号和操作系统版本信息。
可选的,如图4所示,所述装置还包括:创建单元34。
其中,创建单元34,设置为在所述判断单元32判断所述设备信息是否为可识别设备之前,创建可识别设备列表,所述列表中记录有可识别设备的设备信息。
可选的,如图4所示,所述判断单元32包括:
匹配模块321,设置为匹配所述设备信息与所述可识别设备列表中的设备信息。
确定模块322,设置为当所述匹配模块321匹配设备信息成功时,确定所述设备为可识别设备。
可选的,如图4所示,所述修改单元33包括:提取模块331、生成模块332和替换模块333。
提取模块331,设置为提取所述设备信息中的操作系统信息、设备名称信息以及设备型号信息。
生成模块332,设置为根据所述可识别设备的UA字符串模板,将所述提取模块331提取的操作系统信息、设备名称信息以及设备型号信息添加到所述UA字符串模板中,生成可识别设备的UA字符串。
替换模块333,设置为将所述生成模块332生成的可识别设备的UA字符串替换所述浏览器默认的UA字符串。
本申请实施例还提供了一种非暂态计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的自适应显示网页的方法。
图5是本申请实施例提供的执行自适应显示网页的方法的设备的硬件结构示意图,如图5所示,该设备包括:
一个或多个处理器51以及存储器52,图5中以一个处理器51为例。
该设备还可以包括:输入装置53和输出装置54。
处理器51、存储器52、输入装置53和输出装置54可以通过总线或者其他方式连接,图5中以通过总线连接为例。
存储器52作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本申请实施例中的终端窗口显示的控制方法对应的程序指令/模块。处理器51通过运行存储在存储器52中的非暂态软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例终端窗口显示的控制方法。
存储器52可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据自适应显示网页的装置的使用所创建的数据等。此外,存储器52可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器52可选包括相对于处理器51远程设置的存储器,这些远程存储器可以通过网络连接至自适应显示网页的装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置53可接收输入的数字或字符信息,以及产生与自适应显示网页的装置的用户设置以及功能控制有关的键信号输入。输出装置54可包括显示屏等显示设备。
所述一个或者多个模块存储在所述存储器52中,当被所述一个或者多个处理器51执行时,执行上述任意方法实施例中的自适应显示网页的方法。
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果,未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。
本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一实施例中的方法。
综上所述,本申请实施例所采用的一种自适应显示网页的方法及装置,能够使同一浏览器适用于不同的智能平台,通过获取使用浏览器设备的设备信息,
通过和已知设备的设备信息比对来确定使用该浏览器当前的设备。进而根据该设备的设备信息,在预置的UA字符串模板中修改相应的信息参数,得到适用于该设备显示的UA字符串。据此来修改当前浏览器中默认的UA字符串,从而使得浏览器能够获得适合于该设备显示的网页页面。本申请实施例所采用的自适应方式,对于浏览器的厂家而言,能够以更低的成本完成浏览器的开发以及后续的维护,将原有开发多个版本浏览器的资源用于对该浏览器的深度开发以及升级维护中,以提高浏览器产品的自身价值和核心竞争力。对于浏览器的用户而言,本申请实施例所采用的自适应方式,能够在不同的智能平台中都使用同一种浏览器,不需要重新适应新浏览器的使用规则和特点,从而增加用户使用该浏览器的粘性。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例的方案。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行实施例或者实施例的部分方法。
最后应说明的是:在不冲突的情况下,以上实施例中的特征可以任意组合;以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。
本申请实施例提供的自适应显示网页的方法及装置,提高了浏览器对不同平台的自适应能力,提高浏览器对使用用户的粘性。
Claims (15)
- 一种自适应显示网页的方法,应用于电子设备,包括:获取浏览器使用设备的设备信息;根据所述设备信息判断所述设备是否为可识别设备,所述可识别设备为已知的具有特殊页面显示效果的设备;以及若所述设备为可识别设备,则根据所述设备信息修改所述浏览器的用户代理UA字符串,以便所述浏览器获取适应所述设备显示效果的页面。
- 根据权利要求1所述的方法,所述方法还包括:根据所述设备信息若判断所述设备为不可识别设备,则使用所述浏览器默认的UA字符串获取页面,并将所述浏览器的标准显示效果展示在所述设备中。
- 根据权利要求1所述的方法,其中,所述获取浏览器使用设备的设备信息包括:确定所述设备提供的标准函数接口;以及根据所述标准函数接口获取所述设备的设备信息,所述设备信息包括:设备名称、设备型号和操作系统版本信息。
- 根据权利要求1-3中任一项所述的方法,在根据所述设备信息判断所述设备是否为可识别设备之前,所述方法还包括:创建可识别设备列表,所述列表中记录有可识别设备的设备信息。
- 根据权利要求4所述的方法,其中,根据所述设备信息判断所述设备是否为可识别设备包括:匹配所述设备信息与所述可识别设备列表中的设备信息;以及若匹配成功,则确定所述设备为可识别设备。
- 根据权利要求5所述的方法,其中,根据所述设备信息修改所述浏览器的用户代理UA字符串包括:提取所述设备信息中的操作系统信息、设备名称信息以及设备型号信息;根据所述可识别设备的UA字符串模板,将所述操作系统信息、设备名称信息以及设备型号信息添加到所述UA字符串模板中,生成可识别设备的UA字符串;以及将所述可识别设备的UA字符串替换所述浏览器默认的UA字符串。
- 一种自适应显示网页的装置,包括:获取单元,设置为获取浏览器使用设备的设备信息;判断单元,设置为根据所述获取单元获取的设备信息判断所述设备是否为可识别设备,所述可识别设备为已知的具有特殊页面显示效果的设备;以及修改单元,设置为当所述判断单元判断所述设备为可识别设备时,根据所述设备信息修改所述浏览器的用户代理UA字符串,以便所述浏览器获取适应所述设备显示效果的页面。
- 根据权利要求7所述的装置,其中,所述获取单元还设置为,当所述判断单元根据所述设备信息判断所述设备为不可识别设备时,使用所述浏览器默认的UA字符串获取页面,并将所述浏览器的标准显示效果展示在所述设备中。
- 根据权利要求7所述的装置,其中,所述获取单元包括:确定模块,设置为确定所述设备提供的标准函数接口;以及获取模块,设置为根据所述确定模块确定的标准函数接口获取所述设备的设备信息,所述设备信息包括:设备名称、设备型号和操作系统版本信息。
- 根据权利要求7-9中任一项所述的装置,所述装置还包括:创建单元,设置为在所述判断单元根据所述设备信息判断所述设备是否为可识别设备之前,创建可识别设备列表,所述列表中记录有可识别设备的设备信息。
- 根据权利要求10所述的装置,其中,所述判断单元包括:匹配模块,设置为匹配所述设备信息与所述可识别设备列表中的设备信息;以及确定模块,设置为当所述匹配模块匹配设备信息成功时,确定所述设备为可识别设备。
- 根据权利要求11所述的装置,其中,所述修改单元包括:提取模块,设置为提取所述设备信息中的操作系统信息、设备名称信息以及设备型号信息;生成模块,设置为根据所述可识别设备的UA字符串模板,将所述提取模块提取的操作系统信息、设备名称信息以及设备型号信息添加到所述UA字符串模板中,生成可识别设备的UA字符串;以及替换模块,设置为将所述生成模块生成的可识别设备的UA字符串替换所述浏览器默认的UA字符串。
- 一种非暂态计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令用于使所述计算机执行如权利要求1-6任一项所述的方法。
- 一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行如权利要求1-6任一项所述的方法。
- 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-6所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510917166.4A CN105868240A (zh) | 2015-12-10 | 2015-12-10 | 一种自适应显示网页的方法及装置 |
| CN201510917166.4 | 2015-12-10 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017096967A1 true WO2017096967A1 (zh) | 2017-06-15 |
Family
ID=56624466
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/097221 Ceased WO2017096967A1 (zh) | 2015-12-10 | 2016-08-29 | 自适应显示网页的方法及装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105868240A (zh) |
| WO (1) | WO2017096967A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109766531A (zh) * | 2018-12-14 | 2019-05-17 | 深圳壹账通智能科技有限公司 | 模板生成方法、装置、计算机设备和存储介质 |
| CN109815477A (zh) * | 2018-12-04 | 2019-05-28 | 精硕科技(北京)股份有限公司 | 识别浏览器信息的方法和装置 |
| CN115600027A (zh) * | 2022-10-20 | 2023-01-13 | 维沃移动通信有限公司(Cn) | 页面显示方法、装置、设备及介质 |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105868240A (zh) * | 2015-12-10 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | 一种自适应显示网页的方法及装置 |
| CN106888405B (zh) * | 2017-01-03 | 2020-06-16 | 海信视像科技股份有限公司 | 电视浏览器中的网页调整方法、浏览器客户端及系统 |
| CN109691023B (zh) * | 2017-05-25 | 2021-11-30 | 微软技术许可有限责任公司 | 解析器 |
| CN109656625A (zh) * | 2018-11-15 | 2019-04-19 | 平安科技(深圳)有限公司 | 移动设备型号的识别方法、装置、计算机设备和存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101778168A (zh) * | 2010-02-05 | 2010-07-14 | 中国电信股份有限公司 | 一种移动终端浏览器上网页优化显示方法和系统 |
| CN102937979A (zh) * | 2011-10-18 | 2013-02-20 | 微软公司 | 网页的自定义优化 |
| CN104781808A (zh) * | 2012-08-16 | 2015-07-15 | 摩托罗拉移动公司 | 用于调整网站显示的系统和方法 |
| CN105868240A (zh) * | 2015-12-10 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | 一种自适应显示网页的方法及装置 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9235646B2 (en) * | 2009-05-28 | 2016-01-12 | Tip Top Technologies, Inc. | Method and system for a search engine for user generated content (UGC) |
| CN101964813B (zh) * | 2010-09-21 | 2012-12-12 | 北京网康科技有限公司 | 一种在gprs网络中检测终端信息的方法及系统 |
| CN103327411B (zh) * | 2013-06-03 | 2017-02-01 | 贝壳网际(北京)安全技术有限公司 | 用于移动终端浏览器中的视频播放方法、装置和系统 |
| CN103347069A (zh) * | 2013-06-27 | 2013-10-09 | 贝壳网际(北京)安全技术有限公司 | 网络访问的实现方法及装置 |
-
2015
- 2015-12-10 CN CN201510917166.4A patent/CN105868240A/zh active Pending
-
2016
- 2016-08-29 WO PCT/CN2016/097221 patent/WO2017096967A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101778168A (zh) * | 2010-02-05 | 2010-07-14 | 中国电信股份有限公司 | 一种移动终端浏览器上网页优化显示方法和系统 |
| CN102937979A (zh) * | 2011-10-18 | 2013-02-20 | 微软公司 | 网页的自定义优化 |
| CN104781808A (zh) * | 2012-08-16 | 2015-07-15 | 摩托罗拉移动公司 | 用于调整网站显示的系统和方法 |
| CN105868240A (zh) * | 2015-12-10 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | 一种自适应显示网页的方法及装置 |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109815477A (zh) * | 2018-12-04 | 2019-05-28 | 精硕科技(北京)股份有限公司 | 识别浏览器信息的方法和装置 |
| CN109815477B (zh) * | 2018-12-04 | 2023-10-17 | 北京明略昭辉科技有限公司 | 识别浏览器信息的方法和装置 |
| CN109766531A (zh) * | 2018-12-14 | 2019-05-17 | 深圳壹账通智能科技有限公司 | 模板生成方法、装置、计算机设备和存储介质 |
| CN115600027A (zh) * | 2022-10-20 | 2023-01-13 | 维沃移动通信有限公司(Cn) | 页面显示方法、装置、设备及介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105868240A (zh) | 2016-08-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017096967A1 (zh) | 自适应显示网页的方法及装置 | |
| US10180833B2 (en) | Cooperative web-assisted deep link redirection | |
| WO2015127882A1 (en) | Method, apparatus and system for extracting webpage content | |
| WO2021017735A1 (zh) | 一种智能合约的形式化验证方法、电子装置及存储介质 | |
| US20180091546A1 (en) | Browser Extension for Contemporaneous in-Browser Tagging and Harvesting of Internet Content | |
| EP3273362A1 (en) | Webpage access method, apparatus, device and non-volatile computer storage medium | |
| US9934206B2 (en) | Method and apparatus for extracting web page content | |
| US20170192941A1 (en) | Computer-Automated Generation of Application Deep Links | |
| US20170277703A1 (en) | Method for Displaying Webpage and Server | |
| TWI584149B (zh) | Web page access request response method and device | |
| US20170083495A1 (en) | Method for Modifying Webpage and Apparatus for Modifying Webpage | |
| US20150278173A1 (en) | Method, apparatus, terminal, and storage medium for image processing | |
| CN104361004B (zh) | 浏览器收藏夹数据的处理方法与浏览器 | |
| CN102662837A (zh) | 一种浏览器的测试方法和系统 | |
| CN113076165A (zh) | 一种页面校验方法和装置 | |
| WO2016082696A1 (zh) | 一种ua识别方法、装置 | |
| CN107943997A (zh) | 一种基于谷歌浏览器的远程网站取证方法、终端设备及存储介质 | |
| US8700992B1 (en) | Method for determining position and dimensions of webpage elements by wireframe injection | |
| CN104932910A (zh) | 应用程序接口扩展的方法及系统 | |
| CN114356330A (zh) | 页面配置方法、装置、电子设备和存储介质 | |
| CN107122402A (zh) | 网页图片的提取方法、装置、客户端装置和电子设备 | |
| US11853685B2 (en) | Transformation of resource files using mapped keys for tracking content location | |
| CN105808727A (zh) | 基于html5的网站跨屏适配技术架构和适配方法 | |
| US10261979B2 (en) | Method and apparatus for rendering a screen-representation of an electronic document | |
| CN104363237A (zh) | 一种互联网媒体资源元数据的处理方法及其系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16872163 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16872163 Country of ref document: EP Kind code of ref document: A1 |