CN106610824B - Page height self-adaption method and device - Google Patents
Page height self-adaption method and device Download PDFInfo
- Publication number
- CN106610824B CN106610824B CN201510695925.7A CN201510695925A CN106610824B CN 106610824 B CN106610824 B CN 106610824B CN 201510695925 A CN201510695925 A CN 201510695925A CN 106610824 B CN106610824 B CN 106610824B
- Authority
- CN
- China
- Prior art keywords
- height
- object model
- document object
- attribute
- model element
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000003044 adaptive effect Effects 0.000 claims description 37
- 230000006978 adaptation Effects 0.000 claims description 24
- 238000003860 storage Methods 0.000 claims description 10
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000009826 distribution Methods 0.000 claims description 4
- 230000000007 visual effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 11
- 238000004590 computer program Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 230000007547 defect Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method and a device for self-adapting page height, relates to the field of computer views, and solves the problem that the self-adapting page height cannot be realized in various browsers. The method of the invention comprises the following steps: setting custom attributes for document object model elements needing high self-adaptation; distributing corresponding attribute values for the custom attributes; and calculating the height of the height self-adaptive document object model element according to the attribute value. The method is mainly used for adaptively adjusting the page height in various browsers.
Description
Technical Field
The invention relates to the field of computer views, in particular to a page height self-adaption method and device.
Background
With the increasing popularity of mobile terminals, it is necessary to make the original internet web page for desktop computer suitable for the screens of various sizes of mobile terminals, so as to automatically fill the height and width of the browser for visually displaying the web page. In order to achieve the above purpose, many web page highly adaptive techniques have been proposed, and there are two main implementation modes: 1. realizing webpage height self-adaptation by using CSS height percentage; 2. web page height adaptation is achieved using CSS absolute layout.
Although the two methods can meet the requirement of highly adapting the web page to the screen size to some extent, there are some defects. For example: in a mode of realizing webpage height self-adaption by using CSS height percentage, the set webpage height can only adapt to a mobile terminal with one screen size by setting the percentage of each part in a page occupying the visual area of a browser, and when the height of part of elements in the webpage is fixed and the height of part of elements is not fixed, the mobile terminal with various screen sizes cannot be adapted by setting the height percentage; however, in the method of implementing the web page height adaptation using the CSS absolute layout, although the problem of the method of using the CSS height percentage can be solved, the method is only compatible with Chrome browser, Firefox browser, and browser above IE 9.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for page height adaptation, and mainly aims to solve the problem that page height adaptation cannot be implemented in various browsers.
According to a first aspect of the present invention, the present invention provides a method for page height adaptation, comprising:
setting custom attributes for document object model elements needing high self-adaptation;
distributing corresponding attribute values for the custom attributes;
the height of the highly adaptive document object model element is calculated from the attribute values.
According to a second aspect of the present invention, the present invention provides a page height adaptive apparatus, comprising:
the setting unit is used for setting custom attributes for the document object model elements needing high self-adaptation;
the distribution unit is used for distributing corresponding attribute values for the custom attributes set by the setting unit;
and the calculation unit is used for calculating the height of the height-adaptive document object model element according to the attribute values distributed by the distribution unit.
By means of the technical scheme, the page height self-adaption method and the page height self-adaption device provided by the embodiment of the invention can set the custom attribute for the document object model element needing height self-adaption, the custom attribute is different from the fixed height attribute of the document object model element in the prior art, the corresponding attribute value representing the height of the document object model element is distributed to the custom attribute according to the height of the page visual area, and the height of the document object model element needing height self-adaption is dynamically calculated according to the attribute value. Compared with the compatibility defect existing in the mode of realizing the height self-adaption of the webpage by using the CSS absolute layout in the prior art, the method can dynamically distribute and calculate the height of the document object model element needing the height self-adaption through the custom attribute, is suitable for various resolutions and various browsers, and solves the problem that the height percentage of the other part of the document object model element needing the height self-adaption cannot be determined when the height of the other part of the document object model element is fixed.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a method for page height adaptation according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a page layout provided by an embodiment of the invention;
FIG. 3 is a block diagram illustrating an apparatus for page height adaptation according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating another apparatus for page height adaptation according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
At present, chart display is mainly used when a page is displayed at the front end of a large screen, in order to achieve a good display effect, the height and the width of a browser can be automatically occupied under various screens when the page is displayed, all contents can be visually displayed, and a scroll bar does not appear. At present, there are two implementation modes, one of which is to use cs height percentage to realize height self-adaptation; and secondly, the cs absolute layout is used for realizing high self-adaptation. Although the two methods can meet the requirement of highly adapting the web page to the screen size to some extent, there are some defects. For example: in a mode of realizing webpage height self-adaption by using CSS height percentage, when the heights of partial elements in a webpage are fixed and the heights of partial elements are not fixed, mobile terminals with various screen sizes cannot be adapted by setting the height percentage; however, in the method of implementing the web page height adaptation using the CSS absolute layout, although the problem of the method of using the CSS height percentage can be solved, the method is only compatible with Chrome browser, Firefox browser, and browser above IE 9.
In order to solve the problem that page height adaptation cannot be realized in various browsers, an embodiment of the present invention provides a page height adaptation method, as shown in fig. 1, where the method includes:
101. custom attributes are set for document object model elements that need to be highly adaptive.
Usually, when a web page is displayed, a document object model is mostly used to manage web page data, the document object model has a form set for managing a plurality of forms, and in order to implement functions of monitoring, operating, dynamically extracting user input, dynamically modifying and the like of a web page opened by a browser, form fields (also called document object model elements) in the web page form need to be traversed and attributes of the form fields need to be read. There is a height attribute for setting the height of the document object model element (i.e., the height of the paragraph in the web page), which is supported by all mainstream browsers. This height attribute defines the height of the element content area. Typically, the height attribute may define the height of a highly fixed document object model element or may specify the value of its inherited parent element height attribute. However, for the document object model element with the changed screen size or the need of page height adaptation, the height of the browser can not be automatically occupied under various screens when the page is displayed. Because the document object model element needing high self-adaptation cannot have the same fixed height attribute as the document object model element needing high self-adaptation, when the document object model element in the page is loaded, the embodiment of the invention can set the custom attribute for the document object model element needing high self-adaptation, the custom attribute is specially defined for the document object model element needing high self-adaptation during coding and is used for defining the height proportion of each document object model element needing high self-adaptation, and the value of the custom attribute can be dynamically set and is used for dynamically representing the height condition of the document object model element needing high self-adaptation.
102. And distributing corresponding attribute values for the custom attributes.
After the custom attribute is set for the document object model element needing height self-adaptation in the page, the height of each document object model element in the page (namely each part in the page) can be specified according to the height of the page visible area, wherein, for the document object model element with fixed height, a specific height value can be specified, and for the document object model element with height self-adaptation, each attribute value needs to be specified for each document object model element with height self-adaptation, but the sum of the heights of all the document object model elements only needs not to exceed the height of the page visible area, and the sum of the heights is equal to the height of the page visible area, so that the height of the browser can be automatically occupied when the page is displayed. For the purpose of height adaptation, therefore, the attribute value of the custom attribute in step 102 of the embodiment of the present invention cannot be set to a specific value as the attribute value of the fixed height attribute, but the attribute value of the custom attribute needs to be set to a value representing the height relationship.
103. The height of the highly adaptive document object model element is calculated from the attribute values.
Since the custom attribute of the document object model element requiring high degree of adaptation is assigned with a corresponding attribute value in step 102, and the attribute value of the custom attribute represents the height relationship between the document object model element requiring high degree of adaptation and the page, the height of the document object model element requiring high degree of adaptation can be calculated according to the attribute value of the custom attribute in step 103.
The page height self-adaptive method provided by the embodiment of the invention can set the custom attribute for the document object model element needing height self-adaptation, the custom attribute is different from the fixed height attribute of the document object model element in the prior art, the corresponding attribute value representing the height of the document object model element is distributed to the custom attribute according to the height of the page visible area, and the height of the document object model element needing height self-adaptation is dynamically calculated according to the attribute value. Compared with the compatibility defect existing in the mode of realizing the height self-adaption of the webpage by using the CSS absolute layout in the prior art, the method can dynamically distribute and calculate the height of the document object model element needing the height self-adaption through the custom attribute, is suitable for various resolutions and various browsers, and solves the problem that the height percentage of the other part of the document object model element needing the height self-adaption cannot be determined when the height of the other part of the document object model element is fixed.
In order to better understand the method shown in fig. 1, the embodiment of the present invention will take a document object model DOM element in an HTML webpage as an example, and will be described in detail with respect to each step in fig. 1.
Because the DOM element represents the tag element in the HTML document, the tag can contain the attribute, and the content and the style of the document can be added, deleted or modified by modifying the attribute of the DOM element and the attribute value thereof. Since it is usually necessary to create an analyzer instance, obtain a document loading state, and load a specified document when loading a document, the attributes of DOM elements can be extended by javascript during the process of loading the document. For example, in the embodiment of the present invention, when a DOM element in a web page is encoded (loaded), the DOM element may be operated by javascript, and an adaptive height attribute may be added to the DOM element that needs height adaptation in a manner of self-defining an attribute, where an attribute value of the adaptive height attribute is different from an attribute value of an original height attribute, but may also be obtained by javascript.
In the process of loading the whole DOM tree, specific numerical values can be given to the DOM elements which are highly fixed; on the other hand, if a specific value is given to a highly adaptive DOM element, the height of a browser that a page can occupy in various browsers cannot be satisfied. Therefore, the embodiment of the present invention needs to set the attribute value of the adaptive height attribute of the highly adaptive DOM element to the height ratio of the DOM element, which can be the height ratio of the DOM element in the whole page, that is, the height ratio of the DOM element to the parent element, but in this way, when the attribute value is assigned to the highly adaptive DOM element, the height of the highly fixed DOM element needs to be further considered, and it is ensured that the sum of the heights of all DOM elements does not exceed the height of the visible area of the page, which makes the calculation process more complicated. Therefore, in the embodiment of the present invention, the attribute value of the adaptive height attribute may be set to a height ratio of the DOM element in the remaining height of the page (i.e., the height that does not include the height-fixed DOM element), specifically, the attribute value of each adaptive height attribute, that is, the height ratio (which may be a percentage), may be assigned according to the number of the height-adaptive DOM elements, and it is ensured that the sum of the ratios of the height ratios of the adaptive height attributes does not exceed 100% of the remaining height of the page (i.e., the height that does not include the height-fixed DOM element). For example, for a total of 3 DOM elements, the height attribute value of one highly fixed DOM element may be 60px, and the adaptive height attribute values of the other two highly adaptive DOM elements may be 40, 60, respectively, where 40, 60 represent that the two highly adaptive DOM elements occupy 40% and 60% of the height of the remaining height of the page, respectively.
After the DOM tree is loaded in the above manner, that is, after the attribute values of the adaptive height attribute are assigned to the height-adaptive document object model elements, the heights of the DOM elements need to be dynamically calculated by traversing the DOM elements. Since the fixed height attribute value of the highly fixed DOM element is a specific height value, the DOM element can be ignored when calculating the height of the highly fixed DOM element; the height of each highly adaptive DOM element needs to be dynamically calculated according to the read height percentage, since the adaptive height attribute value of the highly adaptive DOM element is the height percentage. Specifically, the height h of the visible area of the page can be obtained and set through javascript, then the DOM elements in the visible area of the page are traversed, the highly fixed DOM elements and the highly adaptive DOM elements are determined, and the respective attribute values are read, so that the highly fixed DOM elements can be obtainedHeight h1And height percentage X of highly adaptive DOM elements, and according to the formula (h-h)1) X% yields the height value of the highly adaptive DOM element.
For an intuitive understanding of the above embodiments, fig. 2 and the following codes are used for illustration: wherein, the height of the body element in fig. 2 can be regarded as the height of the visible area of the page, the body element has the sub-elements header and center, the height of the header element is fixed, and the center element is height adaptive. The specific code is as follows,
in the above code, after the DOM tree is loaded, javascript may be used to obtain and set the height of the body element (i.e. the height of the browser visible area) as H px, then traverse the sub-elements of the body element, and find the element containing the auto-height attribute, for example, if the element id ═ center "contains the auto-height attribute, and the element id ═ header" is fixed to 60px, then the height calculation formula of the element id ═ center "is: (H-60) × 100%.
Of course, for convenience of use, JavaScript that dynamically calculates and specifies element heights can be packaged into a component, which automatically calculates and sets the heights of the respective elements after being introduced into the page.
Further, as an application of the method shown in fig. 1, an embodiment of the present invention further provides an apparatus for page height adaptation, as shown in fig. 3, where the apparatus includes: a setting unit 31, an assigning unit 32 and a calculating unit 33, wherein,
a setting unit 31, configured to set a custom attribute for a document object model element that needs to be highly adaptive;
an assigning unit 32, configured to assign corresponding attribute values to the custom attributes set by the setting unit 31;
a calculating unit 33 for calculating the height of the highly adaptive document object model element according to the attribute values assigned by the assigning unit 32.
Further, the setting unit 31 is configured to add an adaptive height attribute to the document object model element requiring high adaptation in a self-defined attribute manner when encoding the document object model element in the visible area of the page.
Further, the assigning unit 32 is configured to determine the attribute value of each custom attribute according to the number of the highly adaptive document object model elements.
Further, as shown in fig. 4, the calculation unit 33 includes:
the obtaining module 331 is configured to obtain the height of the visible area of the page and the height of the document object model element with a fixed height;
and a calculating module 332, configured to calculate the height of the highly adaptive document object model element according to the attribute value and by combining the height of the page visible area acquired by the acquiring module 331 and the height of the highly fixed document object model element.
Further, the calculating unit 33 is configured to traverse the height attribute of the document object model element in the visible area of the page, and read the attribute value of the height attribute of the document object model element having the fixed height attribute.
The page height self-adaptive device provided by the embodiment of the invention can set the custom attribute for the document object model element needing height self-adaptation, the custom attribute is different from the fixed height attribute of the document object model element in the prior art, the corresponding attribute value representing the height of the document object model element is distributed to the custom attribute according to the height of the page visible area, and the height of the document object model element needing height self-adaptation is dynamically calculated according to the attribute value. Compared with the compatibility defect existing in the mode of realizing the height self-adaption of the webpage by using the CSS absolute layout in the prior art, the method can dynamically distribute and calculate the height of the document object model element needing the height self-adaption through the custom attribute, is suitable for various resolutions and various browsers, and solves the problem that the height percentage of the other part of the document object model element needing the height self-adaption cannot be determined when the height of the other part of the document object model element is fixed.
In addition, for convenience of use, the JavaScr i pt for dynamically calculating and specifying element heights can be packaged into a component, and the component automatically calculates and sets the heights of the elements after the elements are introduced into a page.
The page height adaptive device comprises a processor and a memory, wherein the setting unit 31, the allocating unit 32 and the calculating unit 33 are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the purpose of realizing page height self-adaption in various browsers is realized by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: setting custom attributes for document object model elements needing high self-adaptation; distributing corresponding attribute values for the custom attributes; and calculating the height of the height self-adaptive document object model element according to the attribute value.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (12)
1. A method for page height adaptation, the method comprising:
setting a custom attribute for the document object model elements needing high self-adaptation, wherein the custom attribute is specially defined for the document object model elements needing high self-adaptation during coding, is used for defining the height ratio of each high self-adaptation document object model element, and can be dynamically set for dynamically representing the height condition of the high self-adaptation document object model elements;
distributing a corresponding attribute value for the custom attribute, wherein the attribute value is a numerical value representing a height relation;
and calculating the height of the height self-adaptive document object model element according to the attribute value.
2. The method of claim 1, wherein setting custom properties for document object model elements that need to be highly adaptive comprises:
when the document object model element in the visible area of the coding page is coded, the self-adaptive height attribute is added to the document object model element needing high self-adaptation in a self-defined attribute mode.
3. The method of claim 1, wherein assigning the custom attribute with a corresponding attribute value comprises:
and determining the attribute value of each custom attribute according to the number of the highly self-adaptive document object model elements.
4. The method of claim 1, wherein said calculating a height of said highly adaptive document object model element from said attribute values comprises:
acquiring the height of a page visual area and the height of a document object model element with fixed height;
and calculating the height of the height self-adaptive document object model element according to the attribute value and by combining the height of the page visible area and the height of the height-fixed document object model element.
5. The method of claim 4, wherein obtaining a height of a highly fixed document object model element comprises:
traversing the height attribute of the document object model element in the visible area of the page, and reading the attribute value of the height attribute of the document object model element with the fixed height attribute.
6. The method of any of claims 1-5, wherein the attribute value of the custom attribute is a height fraction of the highly adaptive document object model element among all highly adaptive document object model elements.
7. An apparatus for page height adaptation, the apparatus comprising:
the setting unit is used for setting a custom attribute for the document object model element needing the height self-adaptation, wherein the custom attribute is specially defined for the document object model element needing the height self-adaptation during encoding, is used for defining the height ratio of each height self-adaptive document object model element, can be dynamically set and is used for dynamically representing the height condition of the height self-adaptive document object model element;
the distribution unit is used for distributing a corresponding attribute value to the custom attribute set by the setting unit, wherein the attribute value is a numerical value representing a height relation;
and the calculation unit is used for calculating the height of the height-adaptive document object model element according to the attribute values distributed by the distribution unit.
8. The apparatus according to claim 7, wherein said setting unit is configured to add an adaptive height attribute to the document object model element requiring high adaptation in a custom attribute manner when the document object model element in the visible area of the page is encoded.
9. The apparatus of claim 7, wherein the assigning unit is configured to determine the attribute value of each custom attribute according to the number of highly adaptive document object model elements.
10. The apparatus of claim 7, wherein the computing unit comprises:
the acquisition module is used for acquiring the height of a page visible area and the height of a document object model element with fixed height;
and the calculation module is used for calculating the height of the height self-adaptive document object model element according to the attribute value and by combining the height of the page visible area acquired by the acquisition module and the height of the document object model element with fixed height.
11. A storage medium comprising a stored program, wherein the program, when executed, controls a device on which the storage medium is located to perform a method of page height adaptation as claimed in any one of claims 1 to 6.
12. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to perform a method of page height adaptation as claimed in any one of claims 1 to 6 when running.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510695925.7A CN106610824B (en) | 2015-10-23 | 2015-10-23 | Page height self-adaption method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510695925.7A CN106610824B (en) | 2015-10-23 | 2015-10-23 | Page height self-adaption method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106610824A CN106610824A (en) | 2017-05-03 |
CN106610824B true CN106610824B (en) | 2020-10-09 |
Family
ID=58612971
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510695925.7A Expired - Fee Related CN106610824B (en) | 2015-10-23 | 2015-10-23 | Page height self-adaption method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106610824B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109240684A (en) * | 2017-06-29 | 2019-01-18 | 武汉斗鱼网络科技有限公司 | A kind of page service logic realization method and system |
CN110377205A (en) * | 2019-07-09 | 2019-10-25 | 北京亚鸿世纪科技发展有限公司 | Control the method and device of data visualization large-size screen monitors page automatic adaptive frequency |
CN112882775A (en) * | 2019-11-29 | 2021-06-01 | 北京京东尚科信息技术有限公司 | Method and device for self-adaptive adjustment of page template |
CN114296852B (en) * | 2021-12-28 | 2024-08-23 | 挂号网(杭州)科技有限公司 | Method and device for displaying target page, electronic equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005036416A3 (en) * | 2003-10-16 | 2005-07-28 | Michel Rissons | Method and device for automatically adapting a display of internet documents |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102200985A (en) * | 2010-03-23 | 2011-09-28 | 深圳市金蝶中间件有限公司 | Correspondence device and method of webpage and document object model (DOM) |
CN101908076B (en) * | 2010-08-24 | 2012-09-12 | 北京世纪高通科技有限公司 | Page layout self-adaptive method and device |
CN102012787B (en) * | 2010-11-19 | 2012-12-05 | 互动在线(北京)科技有限公司 | Method for realizing self-adaption of nonfixed region with height/width of browser for cascading style sheet |
US8856129B2 (en) * | 2011-09-20 | 2014-10-07 | Microsoft Corporation | Flexible and scalable structured web data extraction |
CN103955366B (en) * | 2014-04-18 | 2017-04-19 | 南威软件股份有限公司 | Producing method of visualized website template |
-
2015
- 2015-10-23 CN CN201510695925.7A patent/CN106610824B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005036416A3 (en) * | 2003-10-16 | 2005-07-28 | Michel Rissons | Method and device for automatically adapting a display of internet documents |
Also Published As
Publication number | Publication date |
---|---|
CN106610824A (en) | 2017-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106610824B (en) | Page height self-adaption method and device | |
TWI700638B (en) | Display method and device of mixed view | |
US9754392B2 (en) | Generating data-mapped visualization of data | |
CN104820589B (en) | A kind of method and its device of dynamic adaptation webpage | |
CN104572967B (en) | A kind of method and apparatus in page graphing | |
CN104572668B (en) | Method and apparatus based on multiple pattern file generated Merge Styles files | |
CN107526592B (en) | Page adaptation method and device | |
CN106933887B (en) | Data visualization method and device | |
CN109460540A (en) | A kind of table paging display methods and device | |
CN105335445A (en) | Layout display method and device | |
CN106485566A (en) | A kind of information recommendation method and device | |
CN107168961B (en) | Data display method and device for chart | |
CN111737618A (en) | Vector diagram display method and device for Web end and computer equipment | |
CN113486280A (en) | Page rendering display method, device, equipment, storage medium and program product | |
CN110019261A (en) | Data query method and apparatus | |
CN107621951B (en) | View level optimization method and device | |
CN110968385A (en) | Proportion display method and device | |
CN109582380A (en) | A kind of Node Processing Method and device, storage medium, processor | |
CN105677674B (en) | Dynamic display method and device for page filling content | |
US9230022B1 (en) | Customizable result sets for application program interfaces | |
CN106649317A (en) | Method and device for displaying graph | |
CN104866359A (en) | Webpage loading method and device | |
CN110968810A (en) | Webpage data processing method and device | |
CN110020285B (en) | Histogram processing method and device | |
CN114254229A (en) | Webpage rendering method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201009 |