CN104268152B - A kind of webpage exhibiting method and device - Google Patents
A kind of webpage exhibiting method and device Download PDFInfo
- Publication number
- CN104268152B CN104268152B CN201410439860.5A CN201410439860A CN104268152B CN 104268152 B CN104268152 B CN 104268152B CN 201410439860 A CN201410439860 A CN 201410439860A CN 104268152 B CN104268152 B CN 104268152B
- Authority
- CN
- China
- Prior art keywords
- page elements
- night
- browser
- modification
- background colour
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 230000001747 exhibiting effect Effects 0.000 title claims abstract description 11
- 230000004048 modification Effects 0.000 claims abstract description 70
- 238000012986 modification Methods 0.000 claims abstract description 70
- 238000009877 rendering Methods 0.000 claims abstract description 44
- 230000008569 process Effects 0.000 claims description 14
- 239000003086 colorant Substances 0.000 claims description 8
- 230000008859 change Effects 0.000 abstract description 19
- 230000006870 function Effects 0.000 description 34
- 238000010586 diagram Methods 0.000 description 7
- 239000003973 paint Substances 0.000 description 6
- 230000008439 repair process Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000008901 benefit Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
Abstract
The present invention proposes a kind of webpage exhibiting method and device, and this method includes obtaining the page elements in the webpage of browser loading;During the page elements are rendered, judge whether the background colour of the page elements belongs to pre-set color, and when the background colour is the pre-set color, change the background colour, page elements after being changed, and the background colour of page elements deepens before compared to modification after the modification;Show the webpage for including page elements after the modification.This method can improve rendering efficiency when browser provides Night, reduce size of code.
Description
Technical field
The present invention relates to browser technology field more particularly to a kind of webpage exhibiting method and devices.
Background technology
Universal with mobile equipment, a large number of users can be surfed the web webpage at night using mobile device browser.Net
Most contents are all white backgrounds in page, very dazzling at night, are unfavorable for user and are cosily read.In order to promote use
Family is experienced, and browser can provide Night, the web page contents showed is made to become shade.
It is by being inserted into script (javascript) code and Cascading Style Sheet (Cascading Style in the relevant technologies
Sheet, CSS) background of the element in webpage becomes dark by the mode of code from light color.
But this mode needs to change the background colour of each element before rendering, required size of code is larger, renders effect
Rate is poor.
Invention content
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, an object of the present invention is to provide a kind of webpage exhibiting method, this method can be provided in browser
Rendering efficiency is improved during Night, reduces size of code.
It is another object of the present invention to propose a kind of webpage demonstration device.
In order to achieve the above objectives, the webpage exhibiting method that first aspect present invention embodiment proposes, including:Obtain browser
Page elements in the webpage of loading;During the page elements are rendered, judging the background colour of the page elements is
It is no to belong to pre-set color, and when the background colour is the pre-set color, the background colour is changed, page member after being changed
Element, and the background colour of page elements deepens before compared to modification after the modification;Show comprising page elements after the modification
Webpage.
The webpage exhibiting method that first aspect present invention embodiment proposes, by the way that the color of web page element is revised as depth
Color can realize the Night of browser;Change the background colour of respective page element when rendering page elements, do not need to be slotting
Enter scripted code and CSS codes, improve rendering efficiency.
Optionally, the process for rendering the page elements includes the drawing modification to the page elements, described to repair
Change the background colour, including:
The color value that drafting function indicates used by the determining drawing modification to the page elements, the face of the instruction
Color value is the color value of modified background colour;
The drafting function is called to carry out drawing modification to the element.
Optionally, the pre-set color all colours more shallow than pre-set color value for color value;Or the pre-set color
Including white.
Optionally, the modification background colour, including:
The background colour is revised as black.
Optionally, before whether the background colour for judging the page elements belongs to pre-set color, the method further includes:
Judge whether the browser has currently enabled Night, and judging result is has enabled Night.
Optionally, night module is enabled to the browser in the following way:
After receiving the instruction input by user for enabling Night, Night is enabled to the browser;
When current time belongs to preset time period, Night is enabled to the browser;
When current environment brightness value is less than predetermined luminance value, Night is enabled to the browser.
In order to achieve the above objectives, the webpage demonstration device that second aspect of the present invention embodiment proposes, including:Acquisition module,
For obtaining the page elements in the webpage of browser loading;Processing module, for during the page elements are rendered,
Judge whether the background colour of the page elements belongs to pre-set color, and when the background colour is the pre-set color, change
The background colour, page elements after being changed, and the background colour of page elements deepens before compared to modification after the modification;Exhibition
Existing module, for showing the webpage for including page elements after the modification.
Optionally, the process for rendering the page elements includes the drawing modification to the page elements, the place
Reason module is specifically used for:
The color value that drafting function indicates used by the determining drawing modification to the page elements, the face of the instruction
Color value is the color value of modified background colour;
The drafting function is called to carry out drawing modification to the element.
Optionally, the pre-set color all colours more shallow than pre-set color value for color value;Or the pre-set color
Including white.
Optionally, the processing module is specifically used for:
The background colour is revised as black.
Optionally, described device further includes:
Judgment module, for judging whether the browser has currently enabled Night, and judging result is has enabled
Night.
Optionally, night module is enabled to the browser in the following way:
After receiving the instruction input by user for enabling Night, Night is enabled to the browser;
When current time belongs to preset time period, Night is enabled to the browser;
When current environment brightness is less than predetermined luminance value, Night is enabled to the browser.
The webpage demonstration device that second aspect of the present invention embodiment proposes, by the way that the color of web page element is revised as depth
Color can realize the Night of browser;Change the background colour of respective page element when rendering page elements, do not need to be slotting
Enter scripted code and CSS codes, improve rendering efficiency.
In order to achieve the above objectives, the client device that third aspect present invention embodiment proposes, including:Housing, processor,
Memory, circuit board and power circuit, wherein, circuit board is placed in the space interior that housing surrounds, and processor and memory are set
It puts on circuit boards;Power circuit, for powering for each circuit or device of client device;Memory is used to store and can hold
Line program code;Processor is run and executable program code pair by reading the executable program code stored in memory
The program answered, for performing:Obtain the page elements in the webpage of browser loading;In the process for rendering the page elements
In, judge whether the background colour of the page elements belongs to pre-set color, and when the background colour is the pre-set color, repair
Change the background colour, page elements after being changed, and the background colour of page elements deepens before compared to modification after the modification;
Show the webpage for including page elements after the modification.
Optionally, the process for rendering the page elements includes the drawing modification to the page elements, described to repair
Change the background colour, including:
The color value that drafting function indicates used by the determining drawing modification to the page elements, the face of the instruction
Color value is the color value of modified background colour;
The drafting function is called to carry out drawing modification to the element.
Optionally, the pre-set color all colours more shallow than pre-set color value for color value;Or the pre-set color
Including white.
Optionally, the modification background colour, including:
The background colour is revised as black.
Optionally, before whether the background colour for judging the page elements belongs to pre-set color, the method further includes:
Judge whether the browser has currently enabled Night, and judging result is has enabled Night.
Optionally, night module is enabled to the browser in the following way:
After receiving the instruction input by user for enabling Night, Night is enabled to the browser;
When current time belongs to preset time period, Night is enabled to the browser;
When current environment brightness value is less than predetermined luminance value, Night is enabled to the browser.
The client device that third aspect present invention embodiment proposes, by the way that the color of web page element is revised as dark color,
It can realize the Night of browser;Change the background colour of respective page element when rendering page elements, do not need to be inserted into
Scripted code and CSS codes improve rendering efficiency.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
It obtains significantly or is recognized by the practice of the present invention.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Significantly and it is readily appreciated that, wherein:
Fig. 1 is the flow diagram for the webpage exhibiting method that one embodiment of the invention proposes;
Fig. 2 is the schematic diagram that flow is rendered in the embodiment of the present invention;
Fig. 3 is the flow diagram for the webpage exhibiting method that another embodiment of the present invention proposes;
Fig. 4 is the structure diagram for the webpage demonstration device that another embodiment of the present invention proposes;
Fig. 5 is the structure diagram for the webpage demonstration device that another embodiment of the present invention proposes.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not considered as limiting the invention.On the contrary, this
The embodiment of invention includes falling into all changes in the range of the spirit and intension of attached claims, modification and equivalent
Object.
Fig. 1 is the flow diagram for the webpage exhibiting method that one embodiment of the invention proposes, this method includes:
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 of browser kernel
Module.
When browser loads webpage, browser can obtain the page elements (element) in the webpage from server.
S12:During the page elements are rendered, judge whether the background colour of the page elements belongs to default face
Color, and when the background colour is the pre-set color, change the background colour, page elements after being changed, and described repair
The background colour for changing rear page elements deepens before compared to modification.
Wherein, when rendering, referring to Fig. 2, a page elements (element) corresponds to a document node (dom
Node), in general, a dom node corresponds to a rendering objects (RenderObject).Browser kernel is to screen drawing
It is preceding all to call drafting (paint) function that a rendering layer (RenderLayer) is signed in the corresponding regions of RenderObject
In.
Specifically, the process for rendering the page elements includes the drawing modification to the page elements, it is described to repair
Change the background colour, including:
The color value that drafting function indicates used by the determining drawing modification to the page elements, the face of the instruction
Color value is the color value of modified background colour;
The drafting function is called to carry out drawing modification to the element.
Preset color can include a kind of color or at least two colors.The present embodiment is white with preset color
For.Therefore, it is possible to judge that whether the background colour of page elements is white.
Similar, modified color value can be preset, when changing background colour, the color value for changing back scenery is set
For preset modified color value.Preset modified color can specifically refer to black.
S13:Show the webpage for including page elements after the modification.
Page elements after modification background colour can be plotted to the page by browser kernel by calling paint functions
Position where element can be presented in webpage later.
Optionally, the present embodiment can carry out after Night is enabled, that is, referring to Fig. 3, may be used also before S11
To include:
S10:Judge whether to enable Night, if so, performing S11 and its subsequent step, otherwise, perform S14.
When the present embodiment can be particularly applicable in Night, thus can with it is first determined whether enable Night, with
Just processing shown in FIG. 1 is carried out when starting Night.
User is browser is used when in night, can be very dazzling since most of page is all white background, for
Night, browser often provide that a function is dimmed white background, this function is commonly referred to as Night.
Specifically, whether browser kernel can be triggered to judge whether to enable night according to the function of providing Night
Between pattern.
Wherein, the Night that enables includes at least one in following item:
After receiving the instruction input by user for enabling Night, Night is enabled to the browser;It is for example, right
The function setting switch of Night should be provided, when user's selection is opened, enable Night;
When current time belongs to preset time period, Night is enabled to the browser;Night is enabled for example, pre-setting
Between pattern period, browser enable after can detect current time, if current time opens within the preset period
Use Night;
When current environment brightness is less than predetermined luminance value, Night is enabled to the browser;For example, default setting is bright
Angle value, browser can detect current environment brightness value after enabling, if current environment brightness value is less than predetermined luminance value, open
Dynamic Night.
S14:Normal processing.
Specifically, when user does not select Night, webpage loading is carried out according to the scene of normal day mode
With show, do not need to modification background color value.
In the present embodiment, the color of web page element is revised as dark color, can realize the Night of browser;It is rendering
Change the background colour of web page element during page elements, do not need to be inserted into scripted code and CSS codes, size of code can be reduced, carried
High rendering efficiency;In addition, the present embodiment can be specifically to the background of page elements in the drawing modification included in render process
Color is modified, due to just needing specific context color originally when drawing, when drawing, change background colour may not need specially
The background colour of each page elements of additional modifications can further reduce workload and improve rendering efficiency.
Fig. 4 is the structure diagram for the webpage demonstration device that another embodiment of the present invention proposes, which includes obtaining
Module 41, processing module 42 and display module 43.
Specifically, the device 40 can be located at browser kernel, can be specifically the rendering module of browser kernel.
Acquisition module 41 is used for the page elements in the webpage for obtaining browser loading;
When browser loads webpage, browser can obtain the page elements (element) in the webpage from server.
Processing module 42 be used to during the page elements are rendered, judging the page elements background colour whether
Belong to pre-set color, and when the background colour is the pre-set color, change the background colour, page member after being changed
Element, and the background colour of page elements deepens before compared to modification after the modification;
Wherein, when rendering, referring to Fig. 2, a page elements (element) corresponds to a document node (dom
Node), in general, a dom node corresponds to a rendering objects (RenderObject).Browser kernel is to screen drawing
It is preceding all to call drafting (paint) function that a rendering layer (RenderLayer) is signed in the corresponding regions of RenderObject
In.
Optionally, the process for rendering the page elements includes the drawing modification to the page elements, the place
Reason module 42 is specifically used for:
The color value that drafting function indicates used by the determining drawing modification to the page elements, the face of the instruction
Color value is the color value of modified background colour;
The drafting function is called to carry out drawing modification to the element.
Optionally, preset color can include a kind of color or at least two colors.The present embodiment is with preset face
For color is white.Therefore, processing module may determine that whether the background colour of page elements is white.
Similar, the color value for belonging to dark can be preset, when changing background colour, the color value of back scenery will be changed
It is set as preset modified color value.Preset modified color can specifically refer to black.
Display module 43 is used to show the webpage for including page elements after the modification.
Page elements after modification background colour can be plotted to the page by browser kernel by calling paint functions
Position where element can be presented in webpage later.
Optionally, the present embodiment can carry out after user selects Night, i.e., referring to Fig. 5, the present embodiment is also
It can include judgment module 44, it is shown in Fig. 4 to be used after Night is enabled for judging whether to enable Night
Module performs respective handling.On the other hand, it when not having to enable Night, can normally handle.Specifically, when user does not have
When selecting Night, carry out webpage loading according to the scene of normal day mode and show, do not need to the face of modification background
Color value.
Wherein, the Night that enables includes at least one in following item:
After receiving the instruction input by user for enabling Night, Night is enabled to the browser;It is for example, right
The function setting switch of Night should be provided, when user's selection is opened, enable Night;
When current time belongs to preset time period, Night is enabled to the browser;Night is enabled for example, pre-setting
Between pattern period, browser enable after can detect current time, if current time opens within the preset period
Use Night;
When current environment brightness is less than predetermined luminance value, Night is enabled to the browser;For example, default setting is bright
Angle value, browser can detect current environment brightness value after enabling, if current environment brightness value is less than predetermined luminance value, open
Dynamic Night.
In the present embodiment, the color of web page element is revised as dark color, can realize the Night of browser;It is rendering
Change the background colour of web page element during page elements, do not need to be inserted into scripted code and CSS codes, size of code can be reduced, carried
High rendering efficiency;In addition, the present embodiment can be specifically to the background of page elements in the drawing modification included in render process
Color is modified, due to just needing specific context color originally when drawing, when drawing, change background colour may not need specially
The background colour of each page elements of additional modifications can further reduce workload and improve rendering efficiency.
The embodiment of the present invention additionally provides a kind of client device, which includes housing, processor, storage
Device, circuit board and power circuit, wherein, circuit board is placed in the space interior that housing surrounds, and processor and memory are arranged on
On circuit board;Power circuit, for powering for each circuit or device of client device;Memory is used to store executable journey
Sequence code;Processor is corresponding with executable program code to run by reading the executable program code stored in memory
Program, for performing:
S11’:Obtain the page elements in the webpage of browser loading.
When browser loads webpage, browser can obtain the page elements (element) in the webpage from server.
S12’:During the page elements are rendered, judge whether the background colour of the page elements belongs to default
Color, and when the background colour is the pre-set color, the background colour is changed, page elements after being changed, and it is described
The background colour of page elements deepens before compared to modification after modification.
Wherein, when rendering, referring to Fig. 2, a page elements (element) corresponds to a document node (dom
Node), in general, a dom node corresponds to a rendering objects (RenderObject).Browser kernel is to screen drawing
It is preceding all to call drafting (paint) function that a rendering layer (RenderLayer) is signed in the corresponding regions of RenderObject
In.
Specifically, the process for rendering the page elements includes the drawing modification to the page elements, it is described to repair
Change the background colour, including:
The color value that drafting function indicates used by the determining drawing modification to the page elements, the face of the instruction
Color value is the color value of modified background colour;
The drafting function is called to carry out drawing modification to the element.
Preset color can include a kind of color or at least two colors.The present embodiment is white with preset color
For.Therefore, it is possible to judge that whether the background colour of page elements is white.
Similar, modified color value can be preset, when changing background colour, the color value for changing back scenery is set
For preset modified color value.Preset modified color can specifically refer to black.
S13’:Show the webpage for including page elements after the modification.
Page elements after modification background colour can be plotted to the page by browser kernel by calling paint functions
Position where element can be presented in webpage later.
Optionally, the present embodiment can carry out after Night is enabled, that is, can also include before S11 ':
S10’:Judge whether to enable Night, if so, performing S11 ' and its subsequent step, otherwise, perform S14 '.
When the present embodiment can be particularly applicable in Night, thus can with it is first determined whether enable Night, with
Just processing shown in FIG. 1 is carried out when enabling Night.
User is browser is used when in night, can be very dazzling since most of page is all white background, for
Night, browser often provide that a function is dimmed white background, this function is commonly referred to as Night.
Specifically, whether browser kernel can be triggered to judge whether to enable night according to the function of providing Night
Between pattern.
Wherein, the Night that enables includes at least one in following item:
After receiving the instruction input by user for enabling Night, Night is enabled to the browser;It is for example, right
The function setting switch of Night should be provided, when user's selection is opened, enable Night;
When current time belongs to preset time period, Night is enabled to the browser;Night is enabled for example, pre-setting
Between pattern period, browser enable after can detect current time, if current time opens within the preset period
Use Night;
When current environment brightness is less than predetermined luminance value, Night is enabled to the browser;For example, default setting is bright
Angle value, browser can detect current environment brightness value after enabling, if current environment brightness value is less than predetermined luminance value, open
Dynamic Night.
S14’:Normal processing.
Specifically, when user does not select Night, webpage loading is carried out according to the scene of normal day mode
With show, do not need to modification background color value.
In the present embodiment, the color of web page element is revised as dark color, can realize the Night of browser;It is rendering
Change the background colour of web page element during page elements, do not need to be inserted into scripted code and CSS codes, size of code can be reduced, carried
High rendering efficiency;In addition, the present embodiment can be specifically to the background of page elements in the drawing modification included in render process
Color is modified, due to just needing specific context color originally when drawing, when drawing, change background colour may not need specially
The background colour of each page elements of additional modifications can further reduce workload and improve rendering efficiency.
It should be noted that in the description of the present invention, term " first ", " second " etc. are only used for description purpose, without
It is understood that indicate or implying relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple "
It is two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include
Module, segment or the portion of the code of the executable instruction of one or more the step of being used to implement specific logical function or process
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, to perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage
Or firmware is realized.If for example, with hardware come realize in another embodiment, can be under well known in the art
Any one of row technology or their combination are realized:With for the logic gates to data-signal realization logic function
Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, the program when being executed, one or a combination set of the step of including embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also
That each unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and is independent product sale or in use, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " example ", " is specifically shown " some embodiments "
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiments or example in combine in an appropriate manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is impossible to limitation of the present invention is interpreted as, those of ordinary skill in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, changes, replacing and modification.
Claims (8)
1. a kind of webpage exhibiting method, which is characterized in that including:
Judge whether browser has currently enabled Night;
If it is not, then carrying out webpage loading according to the scene of normal day mode and showing, the color value of modification background is not needed to;
If so, the page elements in obtaining the webpage that browser loads;
During the page elements are rendered, judge whether the background colour of the page elements belongs to pre-set color, and
When the background colour is the pre-set color, the background colour is changed, page elements after being changed, and the page after the modification
The background colour of element deepens before compared to modification;
Show the webpage for including page elements after the modification;
Wherein, the process for rendering the page elements includes the drawing modification to the page elements, described in the modification
Background colour, including:The color value that drafting function indicates used by the determining drawing modification to the page elements, the instruction
Color value be modified background colour color value;The drafting function is called to carry out drawing modification to the element, wherein,
Each page elements correspond to a document node, and each document node corresponds to a rendering objects, the browser
Kernel before screen drawing in calling drafting function that the corresponding region of the rendering objects is signed in a rendering layer.
2. according to the method described in claim 1, it is characterized in that, the pre-set color is more shallow than pre-set color value for color value
All colours;Or the pre-set color includes white.
3. according to the method described in claim 1, it is characterized in that, the modification background colour, including:
The background colour is revised as black.
4. according to the method described in claim 1, it is characterized in that, night mould is enabled to the browser in the following way
Block:
After receiving the instruction input by user for enabling Night, Night is enabled to the browser;
When current time belongs to preset time period, Night is enabled to the browser;
When current environment brightness value is less than predetermined luminance value, Night is enabled to the browser.
5. a kind of webpage demonstration device, which is characterized in that including:
Judgment module, for judging whether browser has currently enabled Night;
Acquisition module, for when judging to have enabled Night, obtaining the page elements in the webpage of browser loading;
Processing module, for during the page elements are rendered, judging whether the background colour of the page elements belongs to
Pre-set color, and when the background colour is the pre-set color, the background colour is changed, page elements after being changed, and
The background colour of page elements deepens before compared to modification after the modification;
Display module, for showing the webpage for including page elements after the modification;
The display module is additionally operable to when judging not enabled Night, shows net according to the scene of normal day mode
Page does not need to the color value of modification background;
Wherein, the process for rendering the page elements includes the drawing modification to the page elements, the processing module
It is specifically used for:The color value that drafting function indicates used by the determining drawing modification to the page elements, the instruction
Color value is the color value of modified background colour;The drafting function is called to carry out drawing modification to the element, wherein, often
A page elements correspond to a document node, and each document node corresponds to a rendering objects, the processing module
In calling drafting function that the corresponding region of the rendering objects is signed in a rendering layer before screen drawing.
6. device according to claim 5, which is characterized in that the pre-set color is more shallow than pre-set color value for color value
All colours;Or the pre-set color includes white.
7. device according to claim 5, which is characterized in that the processing module is specifically used for:
The background colour is revised as black.
8. device according to claim 5, which is characterized in that night mould is enabled to the browser in the following way
Block:
After receiving the instruction input by user for enabling Night, Night is enabled to the browser;
When current time belongs to preset time period, Night is enabled to the browser;
When current environment brightness is less than predetermined luminance value, Night is enabled to the browser.
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 CN104268152A (en) | 2015-01-07 |
CN104268152B true 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) |
Families Citing this family (9)
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 |
US20170295276A1 (en) * | 2016-04-11 | 2017-10-12 | Futurewei Technologies, Inc. | Method for dynamically changing user interface elements |
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 |
CN115606189A (en) | 2018-07-12 | 2023-01-13 | 三星电子株式会社(Kr) | Method and apparatus for rendering content for visual accessibility |
CN110297636B (en) * | 2019-07-03 | 2023-06-27 | 广州鲁邦通物联网科技股份有限公司 | Page automatic generation and parameter management method, system and device based on page configuration file |
CN111610847B (en) * | 2020-05-29 | 2022-05-17 | Oppo广东移动通信有限公司 | Page display method and device of third-party application program and electronic equipment |
CN117315172B (en) * | 2023-09-22 | 2024-04-12 | 鲸数科技(北京)有限公司 | Map page configuration method, map page configuration device, electronic equipment and computer readable medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004784A (en) * | 2010-11-25 | 2011-04-06 | 北京播思软件技术有限公司 | Electricity-saving method of handheld terminal browser |
CN103488646B (en) * | 2012-06-13 | 2017-11-14 | 腾讯科技(深圳)有限公司 | The method and device of webpage is browsed under a kind of browser of mobile terminal weak light source |
CN103577171B (en) * | 2012-07-30 | 2018-11-13 | 腾讯科技(深圳)有限公司 | A kind of method and mobile terminal of display web page contents |
CN103310763B (en) * | 2013-05-30 | 2016-05-18 | 小米科技有限责任公司 | Method, device and a kind of equipment that a kind of mobile device show state switches |
CN103309578A (en) * | 2013-06-25 | 2013-09-18 | 北京小米科技有限责任公司 | Web page display method and terminal |
CN103631581B (en) * | 2013-11-01 | 2017-11-24 | 北京奇虎科技有限公司 | The method and device of highlight color is set |
-
2014
- 2014-09-01 CN CN201410439860.5A patent/CN104268152B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104268152A (en) | 2015-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104268152B (en) | A kind of webpage exhibiting method and device | |
US10467776B2 (en) | Information processing method and apparatus, terminal, and storage medium | |
US9542907B2 (en) | Content adjustment in graphical user interface based on background content | |
CN106484396B (en) | Night mode switching method and device and terminal equipment | |
CA2823170C (en) | Immersive mode for a web browser | |
CN105302418A (en) | Information processing method and electronic device | |
CN102662839A (en) | Testing method and device for software interface state change time | |
CN109542376B (en) | Screen display adjustment method, device and medium | |
CN104537021B (en) | The method and browser client of browser background are set | |
CN104978186A (en) | Interface skin rendering method and apparatus | |
CN104252362B (en) | Webpage exhibiting method and device | |
CN104462516A (en) | Information prompt method and mobile terminal | |
CN105224187A (en) | Menu execution control method and terminal equipment | |
CN104461614A (en) | Method for processing theme resource and electronic device | |
CN105955754B (en) | A kind of user interface character displaying method and device | |
CN104298423A (en) | Method and device for displaying media file on terminal through page | |
CN107908452A (en) | Multi-page starts method and device | |
US20170094500A1 (en) | Subscriber identity module card managing method and electronic device | |
WO2019063495A2 (en) | Method, device and computer program for overlaying a graphical image | |
Blankenbach et al. | Optimizing and evaluating new automotive HMI image enhancement algorithms under bright light conditions using display reflectance characteristics | |
US9772983B2 (en) | Automatic color selection | |
CN113835793B (en) | Switch display method and device in setting interface, electronic equipment and storage medium | |
CN104461251A (en) | Application program label display method and device | |
CN106055229B (en) | Display interface adjusting method and display interface adjusting module based on screen reading | |
CN103885687A (en) | Information processing method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |