CN104268152A - Method and device for displaying webpage - Google Patents

Method and device for displaying webpage Download PDF

Info

Publication number
CN104268152A
CN104268152A CN201410439860.5A CN201410439860A CN104268152A CN 104268152 A CN104268152 A CN 104268152A CN 201410439860 A CN201410439860 A CN 201410439860A CN 104268152 A CN104268152 A CN 104268152A
Authority
CN
China
Prior art keywords
page elements
night
background colour
browser
webpage
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.)
Granted
Application number
CN201410439860.5A
Other languages
Chinese (zh)
Other versions
CN104268152B (en
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.)
Conew Network Technology Beijing Co Ltd
Original Assignee
Conew Network Technology Beijing 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 Conew Network Technology Beijing Co Ltd filed Critical Conew Network Technology Beijing Co Ltd
Priority to CN201410439860.5A priority Critical patent/CN104268152B/en
Publication of CN104268152A publication Critical patent/CN104268152A/en
Application granted granted Critical
Publication of CN104268152B publication Critical patent/CN104268152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and device for displaying a webpage. The method includes the steps that page elements in the webpage loaded by a browser are acquired; in the page element rendering process, whether the background color of the page elements belongs to preset colors or not is judged, and when the background color of the page elements is a preset color, the background color is modified, modified page elements are acquired, and the background color of the modified page elements is darker than that of the page elements before modification; the webpage containing the modified page elements is displayed. According to the method, when a night mode is provided by the browser, the rendering efficiency can be improved and the code number is reduced.

Description

A kind of webpage exhibiting method and device
Technical field
The present invention relates to browser technology field, particularly relate to a kind of webpage exhibiting method and device.
Background technology
Universal along with mobile device, a large number of users can use mobile device browser to surf the web webpage at night.In webpage, most contents is all white background, very dazzling at night, is unfavorable for that user cosily reads.In order to promote Consumer's Experience, browser can provide Night, makes the web page contents represented become shade.
, by the mode of insertion script (javascript) code and Cascading Style Sheet (Cascading Style Sheet, CSS) code, the background of the element in webpage is become dark color from light color in correlation technique.
But this mode needs the background colour revising each element before rendering, required size of code is comparatively large, and rendering efficiency is poor.
Summary of the invention
The present invention is intended to solve one of technical matters in correlation technique at least to a certain extent.
For this reason, one object of the present invention is to propose a kind of webpage exhibiting method, and the method can improve rendering efficiency when browser provides Night, reduces size of code.
Another object of the present invention is to propose a kind of webpage demonstration device.
For achieving the above object, the webpage exhibiting method that first aspect present invention embodiment proposes, comprising: obtain the page elements in the webpage of browser loading; In the process playing up described page elements, judge whether the background colour of described page elements belongs to pre-set color, and when described background colour is described pre-set color, revise described background colour, obtain revising rear page elements, and after described amendment, the background colour of page elements deepens before comparing amendment; Represent the webpage comprising page elements after described amendment.
The webpage exhibiting method that first aspect present invention embodiment proposes, by the color of web page element is revised as dark color, can realize the Night of browser; Changing the background colour of respective page element when playing up page elements, not needing to insert scripted code and CSS code, improving rendering efficiency.
Optionally, described in play up described page elements process comprise drawing modification to described page elements, the described background colour of described amendment, comprising:
Determine the color value to the drafting function instruction that the drawing modification of described page elements adopts, the color value of described instruction is the color value of amended background colour;
Call described drafting function and drawing modification is carried out to described element.
Optionally, described pre-set color is all colours that color value is more shallow than pre-set color value; Or described pre-set color comprises white.
Optionally, the described background colour of described amendment, comprising:
Described background colour is revised as black.
Optionally, before judging whether the background colour of described page elements belongs to pre-set color, described method also comprises:
Judge that described browser is current and whether enable Night, and judged result is for enable Night.
Optionally, in the following way module at night is enabled to described browser:
Receive user input enable the instruction of Night after, Night is enabled to described browser;
When current time belongs to preset time period, Night is enabled to described browser;
When current environment brightness value is less than predetermined luminance value, Night is enabled to described browser.
For achieving the above object, the webpage demonstration device that second aspect present invention embodiment proposes, comprising: acquisition module, for obtaining the page elements in the webpage of browser loading; Processing module, for in the process playing up described page elements, judge whether the background colour of described page elements belongs to pre-set color, and when described background colour is described pre-set color, revise described background colour, obtain revising rear page elements, and after described amendment, the background colour of page elements deepens before comparing amendment; Represent module, for representing the webpage comprising page elements after described amendment.
Optionally, described in play up described page elements process comprise drawing modification to described page elements, described processing module specifically for:
Determine the color value to the drafting function instruction that the drawing modification of described page elements adopts, the color value of described instruction is the color value of amended background colour;
Call described drafting function and drawing modification is carried out to described element.
Optionally, described pre-set color is all colours that color value is more shallow than pre-set color value; Or described pre-set color comprises white.
Optionally, described processing module specifically for:
Described background colour is revised as black.
Optionally, described device also comprises:
Judge module, whether enable Night, and judged result is for enable Night for judging that described browser is current.
Optionally, in the following way module at night is enabled to described browser:
Receive user input enable the instruction of Night after, Night is enabled to described browser;
When current time belongs to preset time period, Night is enabled to described browser;
When current environment brightness is less than predetermined luminance value, Night is enabled to described browser.
The webpage demonstration device that second aspect present invention embodiment proposes, by the color of web page element is revised as dark color, can realize the Night of browser; Changing the background colour of respective page element when playing up page elements, not needing to insert scripted code and CSS code, improving rendering efficiency.
For achieving the above object, the client device that third aspect present invention embodiment proposes, comprising: housing, processor, storer, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, and processor and storer are arranged on circuit boards; Power circuit, for powering for each circuit of client device or device; Storer is used for stores executable programs code; Processor runs the program corresponding with executable program code, for execution by reading the executable program code stored in storer: obtain the page elements in the webpage of browser loading; In the process playing up described page elements, judge whether the background colour of described page elements belongs to pre-set color, and when described background colour is described pre-set color, revise described background colour, obtain revising rear page elements, and after described amendment, the background colour of page elements deepens before comparing amendment; Represent the webpage comprising page elements after described amendment.
Optionally, described in play up described page elements process comprise drawing modification to described page elements, the described background colour of described amendment, comprising:
Determine the color value to the drafting function instruction that the drawing modification of described page elements adopts, the color value of described instruction is the color value of amended background colour;
Call described drafting function and drawing modification is carried out to described element.
Optionally, described pre-set color is all colours that color value is more shallow than pre-set color value; Or described pre-set color comprises white.
Optionally, the described background colour of described amendment, comprising:
Described background colour is revised as black.
Optionally, before judging whether the background colour of described page elements belongs to pre-set color, described method also comprises:
Judge that described browser is current and whether enable Night, and judged result is for enable Night.
Optionally, in the following way module at night is enabled to described browser:
Receive user input enable the instruction of Night after, Night is enabled to described browser;
When current time belongs to preset time period, Night is enabled to described browser;
When current environment brightness value is less than predetermined luminance value, Night is enabled to described browser.
The client device that third aspect present invention embodiment proposes, by the color of web page element is revised as dark color, can realize the Night of browser; Changing the background colour of respective page element when playing up page elements, not needing to insert scripted code and CSS code, improving rendering efficiency.
The aspect that the present invention adds and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein:
Fig. 1 is the schematic flow sheet of the webpage exhibiting method that one embodiment of the invention proposes;
Fig. 2 is the schematic diagram playing up flow process in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the webpage exhibiting method that another embodiment of the present invention proposes;
Fig. 4 is the structural representation of the webpage demonstration device that another embodiment of the present invention proposes;
Fig. 5 is the structural representation of the webpage demonstration device that another embodiment of the present invention proposes.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining the present invention, and can not limitation of the present invention being interpreted as.On the contrary, embodiments of the invention comprise fall into attached claims spirit and intension within the scope of all changes, amendment and equivalent.
Fig. 1 is the schematic flow sheet of the webpage exhibiting method that one embodiment of the invention proposes, and the method comprises:
S11: obtain the page elements in the webpage of browser loading.
Wherein, the executive agent of the present embodiment can refer to browser kernel, can be specifically the rendering module of browser kernel.
During browser Web page loading, browser can obtain the page elements (element) this webpage from server.
S12: in the process playing up described page elements, judge whether the background colour of described page elements belongs to pre-set color, and when described background colour is described pre-set color, revise described background colour, obtain revising rear page elements, and after described amendment, the background colour of page elements deepens before comparing amendment.
Wherein, when playing up, see Fig. 2, a corresponding document node (dom node) of page elements (element), usually, a corresponding rendering objects (RenderObject) of dom node.Browser kernel is signed in a rendering layer (RenderLayer) all calling drafting (paint) the function region that RenderObject is corresponding before screen drawing.
Concrete, described in play up described page elements process comprise drawing modification to described page elements, the described background colour of described amendment, comprising:
Determine the color value to the drafting function instruction that the drawing modification of described page elements adopts, the color value of described instruction is the color value of amended background colour;
Call described drafting function and drawing modification is carried out to described element.
The color preset can comprise a kind of color or at least two kinds of colors.The present embodiment is white for the color preset.Therefore, can judge that whether the background colour of page elements is white.
Similar, amended color value can being preset, when revising background colour, the color value of amendment back scenery being set to default amended color value.The amended color preset specifically can refer to black.
S13: represent the webpage comprising page elements after described amendment.
Page elements after amendment background colour, by calling paint function, can be plotted to the position at this page elements place, can be presented in afterwards in webpage by browser kernel.
Optionally, the present embodiment can carry out after enabling Night, that is, see Fig. 3, can also comprise before S11:
S10: judge whether to enable Night, if so, performs S11 and subsequent step thereof, otherwise, perform S14.
When the present embodiment can be particularly applicable in Night, therefore can first judge whether to enable Night, to carry out the process shown in Fig. 1 when starting Night.
User is when night uses browser, and because most of page is all white background, meeting is very dazzling, and for night, browser often provides a function that white background is dimmed, and this function is commonly referred to as Night.
Concrete, whether browser kernel can judge whether to enable Night according to providing the function of Night to be triggered.
Wherein, enable Night described in and comprise at least one item in following item:
Receive user input enable the instruction of Night after, Night is enabled to described browser; Such as, correspondence provides the function setting switch of Night, when user selects to open, enables Night;
When current time belongs to preset time period, Night is enabled to described browser; Such as, pre-set the time period of enabling Night, browser can detect current time after enabling, if current time is within the time period of presetting, then enables Night;
When current environment brightness is less than predetermined luminance value, Night is enabled to described browser; Such as, arrange brightness value, browser can detect current environment brightness value after enabling, if current environment brightness value is less than predetermined luminance value, then starts Night.
S14: normal process.
Concrete, when user does not select Night, carry out webpage loading according to the scene of normal day mode and represent, not needing the color value revising background.
In the present embodiment, the color of web page element is revised as dark color, the Night of browser can be realized; Changing the background colour of web page element when playing up page elements, not needing to insert scripted code and CSS code, can size of code be reduced, improving rendering efficiency; In addition, in the drawing modification that the present embodiment can specifically comprise in render process, the background colour of page elements is modified, owing to originally just needing specific context look when drawing, therefore, change background colour without the need to the background colour of each page elements of special additional modifications, can to reduce workload further and improve rendering efficiency when drawing.
Fig. 4 is the structural representation of the webpage demonstration device that another embodiment of the present invention proposes, and this device 40 comprises acquisition module 41, processing module 42 and represents module 43.
Concrete, this device 40 can be positioned at browser kernel, can be specifically the rendering module of browser kernel.
Acquisition module 41 is for obtaining the page elements in the webpage of browser loading;
During browser Web page loading, browser can obtain the page elements (element) this webpage from server.
Processing module 42 is in the process playing up described page elements, judge whether the background colour of described page elements belongs to pre-set color, and when described background colour is described pre-set color, revise described background colour, obtain revising rear page elements, and after described amendment, the background colour of page elements deepens before comparing amendment;
Wherein, when playing up, see Fig. 2, a corresponding document node (dom node) of page elements (element), usually, a corresponding rendering objects (RenderObject) of dom node.Browser kernel is signed in a rendering layer (RenderLayer) all calling drafting (paint) the function region that RenderObject is corresponding before screen drawing.
Optionally, described in play up described page elements process comprise drawing modification to described page elements, described processing module 42 specifically for:
Determine the color value to the drafting function instruction that the drawing modification of described page elements adopts, the color value of described instruction is the color value of amended background colour;
Call described drafting function and drawing modification is carried out to described element.
Optionally, the color preset can comprise a kind of color or at least two kinds of colors.The present embodiment is white for the color preset.Therefore, processing module can judge whether the background colour of page elements is white.
Similar, can presetting and belong to dark color value, when revising background colour, the color value of amendment back scenery being set to default amended color value.The amended color preset specifically can refer to black.
Represent module 43 for representing the webpage comprising page elements after described amendment.
Page elements after amendment background colour, by calling paint function, can be plotted to the position at this page elements place, can be presented in afterwards in webpage by browser kernel.
Optionally, the present embodiment can carry out after user selects Night, and namely see Fig. 5, the present embodiment can also comprise judge module 44, Night is enabled, to adopt the module shown in Fig. 4 to perform respective handling after enabling Night for judging whether.On the other hand, when not enabling Night, can normal process.Concrete, when user does not select Night, carry out webpage loading according to the scene of normal day mode and represent, not needing the color value revising background.
Wherein, enable Night described in and comprise at least one item in following item:
Receive user input enable the instruction of Night after, Night is enabled to described browser; Such as, correspondence provides the function setting switch of Night, when user selects to open, enables Night;
When current time belongs to preset time period, Night is enabled to described browser; Such as, pre-set the time period of enabling Night, browser can detect current time after enabling, if current time is within the time period of presetting, then enables Night;
When current environment brightness is less than predetermined luminance value, Night is enabled to described browser; Such as, arrange brightness value, browser can detect current environment brightness value after enabling, if current environment brightness value is less than predetermined luminance value, then starts Night.
In the present embodiment, the color of web page element is revised as dark color, the Night of browser can be realized; Changing the background colour of web page element when playing up page elements, not needing to insert scripted code and CSS code, can size of code be reduced, improving rendering efficiency; In addition, in the drawing modification that the present embodiment can specifically comprise in render process, the background colour of page elements is modified, owing to originally just needing specific context look when drawing, therefore, change background colour without the need to the background colour of each page elements of special additional modifications, can to reduce workload further and improve rendering efficiency when drawing.
The embodiment of the present invention additionally provides a kind of client device, and this client device comprises housing, processor, storer, circuit board and power circuit, and wherein, circuit board is placed in the interior volume that housing surrounds, and processor and storer are arranged on circuit boards; Power circuit, for powering for each circuit of client device or device; Storer is used for stores executable programs code; Processor runs the program corresponding with executable program code, for execution by reading the executable program code stored in storer:
S11 ': obtain the page elements in the webpage of browser loading.
During browser Web page loading, browser can obtain the page elements (element) this webpage from server.
S12 ': in the process playing up described page elements, judge whether the background colour of described page elements belongs to pre-set color, and when described background colour is described pre-set color, revise described background colour, obtain revising rear page elements, and after described amendment, the background colour of page elements deepens before comparing amendment.
Wherein, when playing up, see Fig. 2, a corresponding document node (dom node) of page elements (element), usually, a corresponding rendering objects (RenderObject) of dom node.Browser kernel is signed in a rendering layer (RenderLayer) all calling drafting (paint) the function region that RenderObject is corresponding before screen drawing.
Concrete, described in play up described page elements process comprise drawing modification to described page elements, the described background colour of described amendment, comprising:
Determine the color value to the drafting function instruction that the drawing modification of described page elements adopts, the color value of described instruction is the color value of amended background colour;
Call described drafting function and drawing modification is carried out to described element.
The color preset can comprise a kind of color or at least two kinds of colors.The present embodiment is white for the color preset.Therefore, can judge that whether the background colour of page elements is white.
Similar, amended color value can being preset, when revising background colour, the color value of amendment back scenery being set to default amended color value.The amended color preset specifically can refer to black.
S13 ': represent the webpage comprising page elements after described amendment.
Page elements after amendment background colour, by calling paint function, can be plotted to the position at this page elements place, can be presented in afterwards in webpage by browser kernel.
Optionally, the present embodiment can carry out after enabling Night, that is, can also comprise before S11 ':
S10 ': judge whether to enable Night, if so, performs S11 ' and subsequent step thereof, otherwise, perform S14 '.
When the present embodiment can be particularly applicable in Night, therefore can first judge whether to enable Night, to carry out the process shown in Fig. 1 when enabling Night.
User is when night uses browser, and because most of page is all white background, meeting is very dazzling, and for night, browser often provides a function that white background is dimmed, and this function is commonly referred to as Night.
Concrete, whether browser kernel can judge whether to enable Night according to providing the function of Night to be triggered.
Wherein, enable Night described in and comprise at least one item in following item:
Receive user input enable the instruction of Night after, Night is enabled to described browser; Such as, correspondence provides the function setting switch of Night, when user selects to open, enables Night;
When current time belongs to preset time period, Night is enabled to described browser; Such as, pre-set the time period of enabling Night, browser can detect current time after enabling, if current time is within the time period of presetting, then enables Night;
When current environment brightness is less than predetermined luminance value, Night is enabled to described browser; Such as, arrange brightness value, browser can detect current environment brightness value after enabling, if current environment brightness value is less than predetermined luminance value, then starts Night.
S14 ': normal process.
Concrete, when user does not select Night, carry out webpage loading according to the scene of normal day mode and represent, not needing the color value revising background.
In the present embodiment, the color of web page element is revised as dark color, the Night of browser can be realized; Changing the background colour of web page element when playing up page elements, not needing to insert scripted code and CSS code, can size of code be reduced, improving rendering efficiency; In addition, in the drawing modification that the present embodiment can specifically comprise in render process, the background colour of page elements is modified, owing to originally just needing specific context look when drawing, therefore, change background colour without the need to the background colour of each page elements of special additional modifications, can to reduce workload further and improve rendering efficiency when drawing.
It should be noted that, in describing the invention, term " first ", " second " etc. only for describing object, and can not be interpreted as instruction or hint relative importance.In addition, in describing the invention, except as otherwise noted, the implication of " multiple " is two or more.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, identical embodiment or example are not necessarily referred to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in an appropriate manner in any one or more embodiment or example.
Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.

Claims (12)

1. a webpage exhibiting method, is characterized in that, comprising:
Obtain the page elements in the webpage of browser loading;
In the process playing up described page elements, judge whether the background colour of described page elements belongs to pre-set color, and when described background colour is described pre-set color, revise described background colour, obtain revising rear page elements, and after described amendment, the background colour of page elements deepens before comparing amendment;
Represent the webpage comprising page elements after described amendment.
2. method according to claim 1, is characterized in that, described in play up described page elements process comprise drawing modification to described page elements, the described background colour of described amendment, comprising:
Determine the color value to the drafting function instruction that the drawing modification of described page elements adopts, the color value of described instruction is the color value of amended background colour;
Call described drafting function and drawing modification is carried out to described element.
3. method according to claim 1, is characterized in that, described pre-set color is all colours that color value is more shallow than pre-set color value; Or described pre-set color comprises white.
4. method according to claim 1, is characterized in that, the described background colour of described amendment, comprising:
Described background colour is revised as black.
5. the method according to any one of claim 1-4, is characterized in that, before judging whether the background colour of described page elements belongs to pre-set color, also comprises:
Judge that described browser is current and whether enable Night, and judged result is for enable Night.
6. method according to claim 5, is characterized in that, enables module at night in the following way to described browser:
Receive user input enable the instruction of Night after, Night is enabled to described browser;
When current time belongs to preset time period, Night is enabled to described browser;
When current environment brightness value is less than predetermined luminance value, Night is enabled to described browser.
7. a webpage demonstration device, is characterized in that, comprising:
Acquisition module, for obtaining the page elements in the webpage of browser loading;
Processing module, for in the process playing up described page elements, judge whether the background colour of described page elements belongs to pre-set color, and when described background colour is described pre-set color, revise described background colour, obtain revising rear page elements, and after described amendment, the background colour of page elements deepens before comparing amendment;
Represent module, for representing the webpage comprising page elements after described amendment.
8. device according to claim 7, is characterized in that, described in play up described page elements process comprise drawing modification to described page elements, described processing module specifically for:
Determine the color value to the drafting function instruction that the drawing modification of described page elements adopts, the color value of described instruction is the color value of amended background colour;
Call described drafting function and drawing modification is carried out to described element.
9. device according to claim 7, is characterized in that, described pre-set color is all colours that color value is more shallow than pre-set color value; Or described pre-set color comprises white.
10. device according to claim 7, is characterized in that, described processing module specifically for:
Described background colour is revised as black.
11. devices according to any one of claim 7-10, is characterized in that, also comprise:
Judge module, whether enable Night, and judged result is for enable Night for judging that described browser is current.
12. devices according to claim 11, is characterized in that, enable module at night in the following way to described browser:
Receive user input enable the instruction of Night after, Night is enabled to described browser;
When current time belongs to preset time period, Night is enabled to described browser;
When current environment brightness is less than predetermined luminance value, Night is enabled to described browser.
CN201410439860.5A 2014-09-01 2014-09-01 A kind of webpage exhibiting method and device Active CN104268152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410439860.5A CN104268152B (en) 2014-09-01 2014-09-01 A kind of webpage exhibiting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410439860.5A CN104268152B (en) 2014-09-01 2014-09-01 A kind of webpage exhibiting method and device

Publications (2)

Publication Number Publication Date
CN104268152A true CN104268152A (en) 2015-01-07
CN104268152B CN104268152B (en) 2018-07-10

Family

ID=52159674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410439860.5A Active CN104268152B (en) 2014-09-01 2014-09-01 A kind of webpage exhibiting method and device

Country Status (1)

Country Link
CN (1) CN104268152B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912511A (en) * 2016-03-31 2016-08-31 宇龙计算机通信科技(深圳)有限公司 E-book page display method and e-book page display device
CN106021432A (en) * 2016-05-16 2016-10-12 杭州本构科技有限公司 Interactive content transformation method based on color recognition
CN106469439A (en) * 2016-08-30 2017-03-01 乐视控股(北京)有限公司 The processing method and processing device of picture in a kind of Night
CN106774782A (en) * 2015-11-24 2017-05-31 中兴通讯股份有限公司 Interface display method, device and terminal
CN109074220A (en) * 2016-04-11 2018-12-21 华为技术有限公司 The method that dynamic changes user interface element
CN110297636A (en) * 2019-07-03 2019-10-01 广州鲁邦通物联网科技有限公司 A kind of automatic production of HTML page and parameter management method based on page configuration file, system and device
CN111610847A (en) * 2020-05-29 2020-09-01 Oppo广东移动通信有限公司 Page display method and device of third-party application program and electronic equipment
US11217205B2 (en) 2018-07-12 2022-01-04 Samsung Electronics Co., Ltd. Method and apparatus for rendering contents for vision accessibility
CN117315172A (en) * 2023-09-22 2023-12-29 鲸数科技(北京)有限公司 Map page configuration method, map page configuration device, electronic equipment and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004784A (en) * 2010-11-25 2011-04-06 北京播思软件技术有限公司 Electricity-saving method of handheld terminal browser
CN103309578A (en) * 2013-06-25 2013-09-18 北京小米科技有限责任公司 Web page display method and terminal
CN103310763A (en) * 2013-05-30 2013-09-18 北京小米科技有限责任公司 Method for switching display state of mobile equipment, device and equipment
WO2013185565A1 (en) * 2012-06-13 2013-12-19 腾讯科技(深圳)有限公司 Method and device for browsing web under weak light with mobile terminal browser
CN103577171A (en) * 2012-07-30 2014-02-12 腾讯科技(深圳)有限公司 Webpage content displaying method and mobile terminal
CN103631581A (en) * 2013-11-01 2014-03-12 北京奇虎科技有限公司 Method and device for setting highlight color

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004784A (en) * 2010-11-25 2011-04-06 北京播思软件技术有限公司 Electricity-saving method of handheld terminal browser
WO2013185565A1 (en) * 2012-06-13 2013-12-19 腾讯科技(深圳)有限公司 Method and device for browsing web under weak light with mobile terminal browser
CN103577171A (en) * 2012-07-30 2014-02-12 腾讯科技(深圳)有限公司 Webpage content displaying method and mobile terminal
CN103310763A (en) * 2013-05-30 2013-09-18 北京小米科技有限责任公司 Method for switching display state of mobile equipment, device and equipment
CN103309578A (en) * 2013-06-25 2013-09-18 北京小米科技有限责任公司 Web page display method and terminal
CN103631581A (en) * 2013-11-01 2014-03-12 北京奇虎科技有限公司 Method and device for setting highlight color

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106774782A (en) * 2015-11-24 2017-05-31 中兴通讯股份有限公司 Interface display method, device and terminal
CN105912511A (en) * 2016-03-31 2016-08-31 宇龙计算机通信科技(深圳)有限公司 E-book page display method and e-book page display device
CN109074220A (en) * 2016-04-11 2018-12-21 华为技术有限公司 The method that dynamic changes user interface element
CN106021432A (en) * 2016-05-16 2016-10-12 杭州本构科技有限公司 Interactive content transformation method based on color recognition
CN106021432B (en) * 2016-05-16 2019-01-25 杭州本构科技有限公司 Interaction content method for transformation based on color identification
CN106469439A (en) * 2016-08-30 2017-03-01 乐视控股(北京)有限公司 The processing method and processing device of picture in a kind of Night
US11217205B2 (en) 2018-07-12 2022-01-04 Samsung Electronics Co., Ltd. Method and apparatus for rendering contents for vision accessibility
CN110297636A (en) * 2019-07-03 2019-10-01 广州鲁邦通物联网科技有限公司 A kind of automatic production of HTML page and parameter management method based on page configuration file, system and device
CN110297636B (en) * 2019-07-03 2023-06-27 广州鲁邦通物联网科技股份有限公司 Page automatic generation and parameter management method, system and device based on page configuration file
CN111610847A (en) * 2020-05-29 2020-09-01 Oppo广东移动通信有限公司 Page display method and device of third-party application program and electronic equipment
CN117315172A (en) * 2023-09-22 2023-12-29 鲸数科技(北京)有限公司 Map page configuration method, map page configuration device, electronic equipment and computer readable medium
CN117315172B (en) * 2023-09-22 2024-04-12 鲸数科技(北京)有限公司 Map page configuration method, map page configuration device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN104268152B (en) 2018-07-10

Similar Documents

Publication Publication Date Title
CN104268152A (en) Method and device for displaying webpage
CN106484396B (en) Night mode switching method and device and terminal equipment
EP2871560B1 (en) Image processing method and apparatus
CN109542376B (en) Screen display adjustment method, device and medium
US9613397B2 (en) Display method and electronic apparatus
CN103092551B (en) The method of adjustment display effect and device
CN115480852A (en) Page display method and device of application program and electronic equipment
CN104267996A (en) Image resource processing method, device and terminal
CN104537021A (en) Method for setting browser background and browser client
US20220254319A1 (en) Screen brightness adjustment method and mobile terminal
CN106990962B (en) Dynamic screen locking wallpaper switching method and device and terminal
CN104252362A (en) Web page showing method and web page showing device
CN107908452A (en) Multi-page starts method and device
WO2014082541A1 (en) Method for switching pictures of picture galleries and browser
CN108519894B (en) Music box loading initialization method
CN111090384B (en) Soft keyboard display method and device
CN103729051A (en) Display control method and terminal
CN115309516A (en) Application life cycle detection method and device and computer equipment
CN108108367B (en) Webpage display method and device
CN108334349B (en) Mobile terminal, display image switching method thereof and computer-readable storage medium
CN113064687A (en) Color adaptation processing method, device and equipment for user interface component
CN104793937A (en) Start-up control method and device
CN107608589B (en) Video production method and mobile terminal
US10522108B2 (en) Optimized histogram reads for efficient display post processing and improved power gains
CN107578753B (en) Mobile terminal, display screen brightness adjusting method and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant