CN105320516B - A kind of display methods and device of webpage - Google Patents
A kind of display methods and device of webpage Download PDFInfo
- Publication number
- CN105320516B CN105320516B CN201410380313.4A CN201410380313A CN105320516B CN 105320516 B CN105320516 B CN 105320516B CN 201410380313 A CN201410380313 A CN 201410380313A CN 105320516 B CN105320516 B CN 105320516B
- Authority
- CN
- China
- Prior art keywords
- display pattern
- current web
- web page
- page
- terminal
- 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
Landscapes
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention provides the display methods and device of a kind of webpage.The display methods of the webpage, comprising: receive user to the operational order of the caching page;According to the operational order, the caching page to be operated is searched;Obtain the current web page display pattern of terminal;It searches described wait operate the caching page corresponding source code under the current web page display pattern;According to the source code, the caching page to be operated is shown with the current web page display pattern.The present invention can be such that the caching page shows according to the current web page display pattern of terminal, convenient for users to use.
Description
Technical field
The present invention relates to web displaying fields, particularly relate to the display methods and device of a kind of webpage.
Background technique
Currently, Night function, as a hommization setting, many software vendors all are added this functionality come in,
By the addition at some dark interfaces, screen intensity can be effectively reduced when reading a book at night, eyes are played effectively
Protective effect.
In existing technical solution, only current page realizes the switching of daytime/Night, and current page is caused to cut
When changing to Night, when client is retracted (including advance), the page or day mode are cached.Therefore, no
It can support current page and the caching page while realize the switching of daytime/Night.
Summary of the invention
The technical problem to be solved by the present invention is to provide the display methods and device of a kind of webpage, can make to cache the page
It is shown according to the current web page display pattern of terminal, it is convenient for users to use.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of display methods of webpage, comprising:
User is received to the operational order of the caching page;
According to the operational order, the caching page to be operated is searched;
Obtain the current web page display pattern of terminal;
It searches described wait operate the caching page corresponding source code under the current web page display pattern;
According to the source code, the caching page to be operated is shown with the current web page display pattern.
Before the step of operational order that user is received to the caching page, the method also includes:
Record the current web page display pattern of terminal.
The step of current web page display pattern of the record terminal specifically:
In the Cookie temporary file of terminal, the current web page display pattern of the terminal is recorded.
The operational order includes: webpage back-off instruction or webpage advancement commands.
The display pattern includes at least: daytime display pattern, night display pattern, old man's display pattern or children show
Mode.
The source code includes: described css grades corresponding under the current web page display pattern wait operate the caching page
Join style sheet.
On the other hand, a kind of display device of webpage is provided, comprising:
Receiving unit receives user to the operational order of the caching page;
First searching unit searches the caching page to be operated according to the operational order;
Acquiring unit obtains the current web page display pattern of terminal;
Second searching unit is searched described wait operate the caching page corresponding source generation under the current web page display pattern
Code;
Display unit shows the caching page to be operated according to the source code with the current web page display pattern.
The device, further includes:
Recording unit records the current web page display pattern of terminal.
The operational order includes: webpage back-off instruction or webpage advancement commands.
The display pattern includes at least: daytime display pattern, night display pattern, old man's display pattern or children show
Mode.
The advantageous effects of the above technical solutions of the present invention are as follows:
In the present invention, when the display caching page, calls directly and show mould in the current web page wait operate the caching page
Corresponding source code under formula and shown, therefore, no matter wait be shown before operating the caching page with which kind of mode, currently with
The current web page display pattern of terminal is shown.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the display methods of webpage of the present invention;
Fig. 2 is a kind of structural schematic diagram of the display device of webpage of the present invention;
Fig. 3 is a kind of flow diagram of the application scenarios of the display methods of webpage of the present invention.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool
Body embodiment is described in detail.
As shown in Figure 1, being a kind of display methods of webpage of the present invention, comprising:
Step 11, user is received to the operational order of the caching page;Wherein, the operational order includes: that webpage rollback refers to
Order or webpage advancement commands.
Step 12, according to the operational order, the caching page to be operated is searched;
Step 13, the current web page display pattern of terminal is obtained;The display pattern includes at least: daytime display pattern,
Night display pattern, old man's display pattern or children's display pattern.Daytime display pattern and night display pattern it is opposite, night is aobvious
Show that mode can be by the addition at some dark interfaces, so that screen intensity is effectively reduced when night reading, to eyes
Play the role of being effectively protected.Old man's display pattern can be with are as follows: bigger font etc. is arranged, facilitates the reading of old man.Children
Display pattern can be with are as follows: bigger font is arranged to protect eyesight, and increase some painted background colours etc..Respectively
Kind display pattern can according to need to set, and can be defined by css Cascading Style Sheet.
Step 14, it searches described wait operate the caching page corresponding source code under the current web page display pattern;Institute
Stating source code includes: described wait operate the caching page corresponding css Cascading Style Sheet under the current web page display pattern.
Step 15, according to the source code, the caching page to be operated is shown with the current web page display pattern.
Wherein, before the step of operational order for receiving user to the caching page, the method also includes:
Step 10, the current web page display pattern of terminal is recorded.Wherein, which can be with specifically: in terminal
In Cookie temporary file, the current web page display pattern of the terminal is recorded.
In the present invention, when the display caching page, calls directly and show mould in the current web page wait operate the caching page
Corresponding source code under formula and shown, therefore, no matter wait be shown before operating the caching page with which kind of mode, currently with
The current web page display pattern of terminal is shown.
As shown in Fig. 2, being a kind of display device of webpage of the present invention, comprising:
Receiving unit 21 receives user to the operational order of the caching page;The operational order includes: webpage back-off instruction
Or webpage advancement commands.
First searching unit 22 searches the caching page to be operated according to the operational order;
Acquiring unit 23 obtains the current web page display pattern of terminal;The display pattern includes at least: daytime shows mould
Formula, night display pattern, old man's display pattern or children's display pattern.
Second searching unit 24 is searched described wait operate the caching page corresponding source under the current web page display pattern
Code;
Display unit 25 shows the caching page to be operated according to the source code with the current web page display pattern
Face.
The device, further includes:
Recording unit 26 records the current web page display pattern of terminal.
Application scenarios of the invention are described below.This application scene provides one kind and works as by taking pattern switching in daylight and at night as an example
The method that the preceding page and the caching page realize pattern switching in daylight and at night simultaneously can support current page and the caching page simultaneously
Realize the switching of daytime/Night.As shown in Figure 3, comprising the following steps:
Step 1, user switches present mode to Night in client
Step 2, client is by calling JS Notifications page to switch present mode to Night
Step 3, current page modifies present mode to Night immediately;
Step 4, the page records the present mode (Night) of client by Cookie;
Step 5, retracted (including advance) operation when;
Step 6, the page obtains the present mode (such as Night) of client recorded in Cookie;
Step 7, the caching page of night CSS style is loaded according to the present mode (Night) of acquired client
Face;
Step 8, the caching page is switched to Night.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principles of the present invention, it can also make several improvements and retouch, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (5)
1. a kind of display methods of webpage characterized by comprising
User is received to the operational order of the caching page;
According to the operational order, the caching page to be operated is searched;
Obtain the current web page display pattern of terminal;
It searches described wait operate the caching page corresponding source code under the current web page display pattern;
According to the source code, the caching page to be operated is shown with the current web page display pattern;
Before the step of operational order that user is received to the caching page, the method also includes:
Record the current web page display pattern of terminal;
The step of current web page display pattern of the record terminal specifically:
In the Cookie temporary file of terminal, the current web page display pattern of the terminal is recorded;
The display pattern includes at least: daytime display pattern, night display pattern, old man's display pattern or children show mould
Formula.
2. the method according to claim 1, wherein the operational order includes: webpage back-off instruction or net
Page advancement commands.
3. the method according to claim 1, wherein the source code includes: described to exist wait operate the caching page
Corresponding css Cascading Style Sheet under the current web page display pattern.
4. a kind of display device of webpage characterized by comprising
Receiving unit receives user to the operational order of the caching page;
First searching unit searches the caching page to be operated according to the operational order;
Acquiring unit obtains the current web page display pattern of terminal;
Second searching unit is searched described wait operate the caching page corresponding source code under the current web page display pattern;
Display unit shows the caching page to be operated according to the source code with the current web page display pattern;
Recording unit records the current web page display pattern of terminal;
It is described record terminal current web page display pattern include:
In the Cookie temporary file of terminal, the current web page display pattern of the terminal is recorded;
The display pattern includes at least: daytime display pattern, night display pattern, old man's display pattern or children show mould
Formula.
5. device according to claim 4, which is characterized in that the operational order includes: webpage back-off instruction or net
Page advancement commands.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410380313.4A CN105320516B (en) | 2014-08-04 | 2014-08-04 | A kind of display methods and device of webpage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410380313.4A CN105320516B (en) | 2014-08-04 | 2014-08-04 | A kind of display methods and device of webpage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105320516A CN105320516A (en) | 2016-02-10 |
CN105320516B true CN105320516B (en) | 2019-06-21 |
Family
ID=55247948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410380313.4A Active CN105320516B (en) | 2014-08-04 | 2014-08-04 | A kind of display methods and device of webpage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105320516B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101382958A (en) * | 2008-10-21 | 2009-03-11 | 深圳华为通信技术有限公司 | Web page loading method and device |
CN102902805A (en) * | 2012-10-15 | 2013-01-30 | 东软集团股份有限公司 | Page access method and device |
CN103179453A (en) * | 2011-12-26 | 2013-06-26 | 中国电信股份有限公司 | Method and system for providing content data to terminal |
CN103258038A (en) * | 2013-05-17 | 2013-08-21 | 广州市动景计算机科技有限公司 | Method and device for synchronizing display modes between browser and webpage |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103631472A (en) * | 2012-08-21 | 2014-03-12 | 百度在线网络技术(北京)有限公司 | Same-type page view automatic control method and mobile terminal |
-
2014
- 2014-08-04 CN CN201410380313.4A patent/CN105320516B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101382958A (en) * | 2008-10-21 | 2009-03-11 | 深圳华为通信技术有限公司 | Web page loading method and device |
CN103179453A (en) * | 2011-12-26 | 2013-06-26 | 中国电信股份有限公司 | Method and system for providing content data to terminal |
CN102902805A (en) * | 2012-10-15 | 2013-01-30 | 东软集团股份有限公司 | Page access method and device |
CN103258038A (en) * | 2013-05-17 | 2013-08-21 | 广州市动景计算机科技有限公司 | Method and device for synchronizing display modes between browser and webpage |
Also Published As
Publication number | Publication date |
---|---|
CN105320516A (en) | 2016-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11922005B2 (en) | Screen capture method and related device | |
CN110196675B (en) | Method for adding annotations and electronic equipment | |
US20180239744A1 (en) | Application page quick access | |
CN104978136B (en) | Mobile terminal and control method for mobile terminal | |
KR102660947B1 (en) | Electronic Device Having Double-sided Display and Method for Controlling Application thereon | |
CN104268221A (en) | Page turning method and page turning system based on Ios system WebView | |
CN105874776A (en) | Image processing apparatus and method | |
US20130278777A1 (en) | Camera guided web browsing | |
WO2017107833A1 (en) | Method and apparatus for switching page in browser label | |
WO2016095429A1 (en) | Screenshot method and device for mobile terminal | |
CN104010124A (en) | Method and device for displaying filter effect, and mobile terminal | |
CN104636029A (en) | Display control method and system for control | |
CN113613067B (en) | Video processing method, device, equipment and storage medium | |
CN104731476A (en) | Handheld intelligent electronic equipment electronic information expressing method | |
US20230367464A1 (en) | Multi-Application Interaction Method | |
JP2007048154A5 (en) | ||
WO2017092455A1 (en) | Method for web browsing in mobile terminal, and mobile terminal | |
CN105320516B (en) | A kind of display methods and device of webpage | |
CN104320539A (en) | Method for quickly inputting on mobile equipment through template | |
CN104021215B (en) | Picture sorting method and device | |
CN105022737B (en) | Micro-blog method for information display and device | |
CN102411618A (en) | Fast paging navigation system for digital network newspaper | |
CN105550297A (en) | Method and apparatus for displaying documents entry appendixes | |
CN102135848B (en) | Method for controlling and assisting window and device | |
CN208550284U (en) | A kind of protective case with noctilucence |
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 |