CN109635263A - The fixed methods of exhibiting of col width based on WEB ultra-wide table, device and electronic equipment - Google Patents
The fixed methods of exhibiting of col width based on WEB ultra-wide table, device and electronic equipment Download PDFInfo
- Publication number
- CN109635263A CN109635263A CN201811394542.6A CN201811394542A CN109635263A CN 109635263 A CN109635263 A CN 109635263A CN 201811394542 A CN201811394542 A CN 201811394542A CN 109635263 A CN109635263 A CN 109635263A
- Authority
- CN
- China
- Prior art keywords
- width
- columns
- column
- fixed
- array
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000001747 exhibiting effect Effects 0.000 title abstract 2
- 238000012545 processing Methods 0.000 claims abstract description 19
- 238000012163 sequencing technique Methods 0.000 claims description 3
- 230000000052 comparative effect Effects 0.000 abstract 1
- 238000004590 computer program Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 6
- 238000011156 evaluation Methods 0.000 description 5
- 238000003491 array Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/183—Tabulation, i.e. one-dimensional positioning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of col width fixation methods of exhibiting, device and electronic equipment based on WEB ultra-wide table is provided in the embodiment of the present invention, belong to technical field of data processing, this method comprises: the width summation L2 that fixed width arranges in maximum width L1 and the table to be presented based on the table to be presented got, determines the width summation L3 for being dynamically assigned to on-fixed width columns;The column for not having fixed width attribute in all column are put into array by all column for traversing the table to be presented;It, with the column of minimum widith attribute, will sort according to sequence from big to small in the array;Length is the size of each column and L3/N in the array of N after comparative sorting, and the width assignment of each column is set according to comparison result.By the processing scheme of the application, column width can be dynamically calculated, improves the ease for use of web page form.
Description
Technical Field
The invention relates to the technical field of data processing, in particular to a column width fixed display method and device based on a WEB ultra-wide table and electronic equipment.
Background
In recent years, with the widespread use of internet technology, there has been an increasing demand for more and more users to browse content described by a markup language such as HTML on a computer device such as a computer, a smart device, or the like. Content on the internet needs to meet the needs of different computing devices for both large and small screens. Generally, the screen size of a personal computer is larger than that of a portable smart device. In some cases, table contents targeted for personal computers generally do not present a display problem on large-screen-size computer devices, and for relatively small-screen portable devices, internet contents sometimes cannot be properly displayed on their screens.
In the HTML language, table contents are usually defined by a tag < table >, and a table usually displays contents required to be displayed in the table in a two-dimensional matrix form. The content displayed in each table cell may be text content or picture content, and in order to display the content in the table in a certain style, the layout style of the table is usually set, for example, the minimum width of each column in the table is set.
In the prior art, a form in html of a browser does not support a scene of small-width calculation, which may cause that a WEB-based ultra-wide form exceeds the maximum display width of a screen when being displayed, and cause that the display content of the form cannot be normally viewed.
Disclosure of Invention
In view of this, embodiments of the present invention provide a column width fixed display method and apparatus based on a WEB super-wide table, and an electronic device, which at least partially solve the problems in the prior art.
In a first aspect, an embodiment of the present invention provides a column width fixed display method based on a WEB ultra-wide table, including:
determining a width sum L3 dynamically allocated to a non-fixed width column based on the acquired maximum width L1 of the table to be displayed and the width sum L2 of the fixed width column in the table to be displayed;
traversing all columns of the table to be displayed, and putting columns which do not have fixed width attributes in all the columns into an array;
sequencing the columns with the minimum width attribute in the array from big to small;
and comparing each column in the array with the length N after sorting with the size of L3/N, and setting the width assignment of each column according to the comparison result.
According to a specific implementation manner of the embodiment of the present invention, the determining, based on the obtained maximum width L1 of the table to be displayed and the sum L2 of the widths of the fixed-width columns in the table to be displayed, the sum L3 of the widths dynamically allocated to the columns with non-fixed widths includes:
the difference between the maximum width L1 of the table to be shown and the sum of the widths of the fixed width columns L2 in the table to be shown is calculated as the sum of the widths dynamically allocated to the columns of non-fixed width L3.
According to a specific implementation manner of the embodiment of the present invention, traversing all columns of the table to be displayed, and placing columns that do not have a fixed width attribute in all columns into an array includes:
and judging whether all the columns have columns with fixed width values, and if so, not processing the columns.
According to a specific implementation manner of the embodiment of the present invention, traversing all columns of the table to be displayed, and putting columns that do not have a fixed width attribute in all columns into an array, further includes:
and judging whether the column with the minimum width value exists in all the columns, if so, putting the column into the array, and recording the minimum width value of the column.
According to a specific implementation manner of the embodiment of the present invention, traversing all columns of the table to be displayed, and putting columns that do not have a fixed width attribute in all columns into an array, further includes:
the attribute of a column that has no fixed width value and minimum width value at the same time is defined as auto and placed into the array.
According to a specific implementation manner of the embodiment of the present invention, the determining the width assignment of each column according to the comparison result includes:
no processing is performed for columns that do not have the minimum width value.
According to a specific implementation manner of the embodiment of the present invention, the determining the width assignment of each column according to the comparison result further includes:
for columns with a minimum width value less than L3/N, the width value is assigned as auto.
According to a specific implementation manner of the embodiment of the present invention, the determining the width assignment of each column according to the comparison result further includes:
for a column whose minimum width value is greater than or equal to L3/N, its width value is assigned as the minimum width value, while the value of L3 is reduced by the same value as the width value of the column.
In a second aspect, an embodiment of the present invention provides a column width fixed display device based on a WEB super-wide table, including:
the determining module is used for determining the width sum L3 dynamically allocated to the non-fixed width columns based on the acquired maximum width L1 of the table to be displayed and the width sum L2 of the fixed width columns in the table to be displayed;
the traversal module is used for traversing all columns of the table to be displayed and putting columns which do not have fixed width attributes in all the columns into an array;
the sorting module is used for sorting the columns with the minimum width attribute in the array from big to small;
and the setting module is used for comparing each column in the array with the length of N after sorting with the size of L3/N and setting width assignment of each column according to a comparison result.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the column width fixed presentation method based on the WEB ultra-wide table in any of the foregoing first aspects or any implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions, where the computer instructions are configured to cause the computer to execute the column width fixed display method based on the ultra-wide WEB table in the first aspect or any implementation manner of the first aspect.
In a fifth aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, where the program instructions, when executed by a computer, cause the computer to execute the column width fixed presentation method based on the WEB ultra-wide table in the foregoing first aspect or any implementation manner of the first aspect.
The column width fixed display scheme based on the WEB ultra-wide table in the embodiment of the invention comprises the steps of determining the width sum L3 dynamically allocated to a non-fixed width column based on the acquired maximum width L1 of the table to be displayed and the width sum L2 of the fixed width column in the table to be displayed; traversing all columns of the table to be displayed, and putting columns which do not have fixed width attributes in all the columns into an array; sequencing the columns with the minimum width attribute in the array from big to small; and comparing each column in the array with the length N after sorting with the size of L3/N, and setting the width assignment of each column according to the comparison result. By the processing scheme, the column width can be dynamically calculated, and the usability of the webpage table is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a column width fixed display flow based on a WEB ultra-wide table according to an embodiment of the present invention;
fig. 2 is a schematic view of another column width fixed display flow based on the WEB ultra-wide table according to an embodiment of the present invention;
fig. 3 is a schematic view of another column width fixed display flow based on the WEB ultra-wide table according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a column width fixed display device based on a WEB ultra-wide table according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a column width fixed display method based on a WEB ultra-wide table. The column width fixed display method based on the WEB ultra-wide table provided by this embodiment may be executed by a computing device, where the computing device may be implemented as software, or implemented as a combination of software and hardware, and the computing device may be integrated in a server, a terminal device, and the like.
Referring to fig. 1, a column width fixed display method based on a WEB ultra-wide table according to an embodiment of the present invention includes the following steps:
s101, determining the width sum L3 dynamically allocated to the non-fixed width columns based on the acquired maximum width L1 of the table to be displayed and the width sum L2 of the fixed width columns in the table to be displayed.
Before the WEB table content is displayed, the maximum width of the table and the content in the table are usually stored in the corresponding server, and by querying the server, the attribute content related to the table can be obtained or known, so as to obtain the maximum width L1 of the table to be displayed and the width sum L2 of the fixed width column in the table to be displayed. By calculating the difference between the maximum width L1 of the table to be presented and the sum L2 of the widths of the fixed-width columns in the table to be presented, the difference can be taken as the sum L3 of the widths dynamically assigned to the columns of non-fixed width.
The maximum width L1 of the form to be presented may be a predefined width value or a matching value determined according to the different devices presenting the form. The fixed width columns in the table to be displayed are fixed values set for ensuring that the contents in the table can be effectively displayed.
S102, traversing all columns of the table to be displayed, and putting columns which do not have the fixed width attribute in all the columns into an array.
The table to be displayed usually has default display attributes, the width of each column of the display table also has different width value settings, in order to be able to know the width values of all columns in the table, an array minArray is specially set up, if a certain column has a fixed column width through traversal query, no processing is performed on the column. If the set width value of a certain column has the minimum width through traversal query, the column is placed into the array minArray, and the minimum width value is recorded in the array. If a column from the traversal query has neither a width value set nor a minimum width value set, then the width value of the column is temporarily defined as auto, and the column is placed in the minArray array while the minimum width value of the column is recorded as auto.
S103, sorting the columns with the minimum width attribute in the array from big to small.
The minimum width value of each column in the table can be the same or different, and for the case that the minimum width values of the columns in the table are different, secondary combing can be performed, so that the columns with the column widths capable of being readjusted can be modified within the effective width range of L3. For convenience of modification, the columns with the minimum width attribute in the array are sorted from large to small. In this way, the column having a large minimum width value can be preferentially processed. When the columns with the maximum minimum width value all meet the preset minimum width value requirement, other columns with the minimum width value can be not processed.
S104, comparing each row in the array with the length of N after sorting with the size of L3/N, and setting width assignment of each row according to the comparison result.
After the arrays are sorted from large to small, the column width of the table can be assigned for the second time according to the column width values in the arrays. Specifically, the sorted minArray array may be traversed, with the length of the array being N. If the traversed certain column does not have the minimum width value, the column is determined to be a non-fixed width column, and no processing is carried out on the column; if the minimum width value of a column traversed < L3/N, then the width of the column is assigned as auto. If the minimum width value of a certain column traversed > -L3/N, then the width of the column is assigned to the minimum width value, while the value of L3 becomes [ L3 — the width of the column ].
Through the operation, the width of all the fixed columns can be ensured to be the defined width, the width of the non-fixed columns is the auto, and the width of the column with the minimum width value is the predefined minimum width value or the auto with secondary assignment modification according to the requirement of the total length. Making the width of the table more reasonable.
The total length L3 of the columns with non-fixed width that can be assigned to the table can be different according to different application scenarios, i.e., L3 can be implemented by using various algorithms. For example, the setting may be performed in a manner specified by the user. According to a specific implementation manner of the embodiment of the present invention, the determining, based on the obtained maximum width L1 of the table to be displayed and the sum L2 of the widths of the fixed-width columns in the table to be displayed, the sum L3 of the widths dynamically allocated to the columns with non-fixed widths includes: the difference between the maximum width L1 of the table to be shown and the sum of the widths of the fixed width columns L2 in the table to be shown is calculated as the sum of the widths dynamically allocated to the columns of non-fixed width L3.
Referring to fig. 2, according to a specific implementation manner of the embodiment of the present invention, traversing all columns of the table to be displayed, and placing columns that do not have a fixed-width attribute in an array, includes:
s201, judging whether all the columns have the columns with fixed width values, if so, not processing the columns.
For a column with a fixed width value, the width value is usually required to show a specific content, for example, a certain column in the table displays an image with a width of 50px, and at this time, the width value of the column can be set to 50px to ensure the integrity of the image display.
S202, judging whether the row with the minimum width value exists in all the rows, if so, putting the row into the array, and recording the minimum width value of the row.
The minimum width value is set in the column in the table, so that the minimum display content in the column can be timely displayed, when the column with the minimum width value is found in traversal, the minimum width value of the column can be placed in an array, and whether the setting of the minimum width value is reasonable or not is further judged.
S203, defining the attribute of the column without the fixed width value and the minimum width value as auto, and putting the auto into the array.
For some particular columns, the size of their width value does not have any effect on the presentation of the content in their column, and for such columns, their width value attribute may be set to auto. Specifically, one can see if the column has a fixed width value or minimum width value setting, and if a column has neither a fixed width value nor a minimum width value, then the attribute of the column is defined as auto.
Through the traversal steps in the steps S201 to S203, the width attribute of each column in the table can be obtained in time, and a guarantee is provided for the subsequent resetting of the table width.
Referring to fig. 3, according to a specific implementation manner of the embodiment of the present invention, the determining the width assignment of each column according to the comparison result may include the following steps:
s301, no processing is performed on the columns having no minimum width value.
S302, for the column with the minimum width value smaller than L3/N, the width value is assigned as auto.
S303, for the column with the minimum width value being greater than or equal to L3/N, assigning the width value as the minimum width value, and reducing the value of L3 by the same value as the width value of the column.
In the execution process of steps S301-S303, the sorted minArray array is traversed, and the length of the array is N. If the traversed certain column does not have the minimum width value, the column is determined to be a non-fixed width column, and no processing is carried out on the column; if the minimum width value of a column traversed < L3/N, the width of the column is assigned as auto. If the minimum width value of a certain column traversed > L3/N, then the width of the column is assigned as the minimum width, while the value of L3 becomes L3-the width of the column.
Through the operation, the width of all the fixed columns can be ensured to be the defined width, the width of the non-fixed columns is the auto, and the width of the column with the minimum width value is the predefined minimum width value or the auto with secondary assignment modification according to the requirement of the total length. Making the width of the table more reasonable.
Corresponding to the above method embodiment, referring to fig. 4, an embodiment of the present invention further provides a column width fixed display apparatus 40 based on a WEB ultra-wide table, including:
the determining module 401 is configured to determine a width sum L3 dynamically allocated to a non-fixed width column based on the obtained maximum width L1 of the table to be displayed and a width sum L2 of a fixed width column in the table to be displayed.
Before the WEB table content is displayed, the maximum width of the table and the content in the table are usually stored in the corresponding server, and by querying the server, the attribute content related to the table can be obtained or known, so as to obtain the maximum width L1 of the table to be displayed and the width sum L2 of the fixed width column in the table to be displayed. By calculating the difference between the maximum width L1 of the table to be presented and the sum L2 of the widths of the fixed-width columns in the table to be presented, the difference can be taken as the sum L3 of the widths dynamically assigned to the columns of non-fixed width.
The maximum width L1 of the form to be presented may be a predefined width value or a matching value determined according to the different devices presenting the form. The fixed width columns in the table to be displayed are fixed values set for ensuring that the contents in the table can be effectively displayed.
And a traversing module 402, configured to traverse all columns of the table to be displayed, and place columns, which do not have a fixed-width attribute, in an array.
The table to be displayed usually has default display attributes, the width of each column of the display table also has different width value settings, in order to be able to know the width values of all columns in the table, an array minArray is specially set up, if a certain column has a fixed column width through traversal query, no processing is performed on the column. If the set width value of a certain column has the minimum width through traversal query, the column is placed into the array minArray, and the minimum width value is recorded in the array. If a column from the traversal query has neither a width value set nor a minimum width value set, then the width value of the column is temporarily defined as auto, and the column is placed in the minArray array while the minimum width value of the column is recorded as auto.
And an ordering module 403, configured to order, in an order from large to small, the columns in the array having the minimum width attribute.
The minimum width value of each column in the table can be the same or different, and for the case that the minimum width values of the columns in the table are different, secondary combing can be performed, so that the columns with the column widths capable of being readjusted can be modified within the effective width range of L3. For convenience of modification, the columns with the minimum width attribute in the array are sorted from large to small. In this way, the column having a large minimum width value can be preferentially processed. When the columns with the maximum minimum width value all meet the preset minimum width value requirement, other columns with the minimum width value can be not processed.
And a setting module 404, configured to compare each column in the sorted array with the length N with the size of L3/N, and set a width assignment of each column according to a comparison result.
After the arrays are sorted from large to small, the column width of the table can be assigned for the second time according to the column width values in the arrays. Specifically, the sorted minArray array may be traversed, with the length of the array being N. If the traversed certain column does not have the minimum width value, the column is determined to be a non-fixed width column, and no processing is carried out on the column; if the minimum width value of a column traversed < L3/N, then the width of the column is assigned as auto. If the minimum width value of a certain column traversed > -L3/N, then the width of the column is assigned to the minimum width value, while the value of L3 becomes [ L3 — the width of the column ].
Through the operation, the width of all the fixed columns can be ensured to be the defined width, the width of the non-fixed columns is the auto, and the width of the column with the minimum width value is the predefined minimum width value or the auto with secondary assignment modification according to the requirement of the total length. Making the width of the table more reasonable.
The apparatus shown in fig. 4 can correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described again here.
Referring to fig. 5, an embodiment of the present invention further provides an electronic device 50, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the column width fixed display method based on the WEB ultra-wide table in the method embodiment.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the foregoing method embodiments.
An embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is caused to execute the column width fixed display method based on the WEB ultra-wide table in the foregoing method embodiment.
Referring now to FIG. 5, a schematic diagram of an electronic device 50 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 50 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 50 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 50 to communicate with other devices wirelessly or by wire to exchange data. While the figures illustrate an electronic device 50 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (11)
1. A column width fixed display method based on a WEB ultra-wide table is characterized by comprising the following steps:
determining a width sum L3 dynamically allocated to a non-fixed width column based on the acquired maximum width L1 of the table to be displayed and the width sum L2 of the fixed width column in the table to be displayed;
traversing all columns of the table to be displayed, and putting columns which do not have fixed width attributes in all the columns into an array;
sequencing the columns with the minimum width attribute in the array from big to small;
and comparing each column in the array with the length N after sorting with the size of L3/N, and setting the width assignment of each column according to the comparison result.
2. The method according to claim 1, wherein the determining a width sum L3 dynamically allocated to non-fixed width columns based on the obtained maximum width L1 of the table to be displayed and the width sum L2 of fixed width columns in the table to be displayed comprises:
the difference between the maximum width L1 of the table to be shown and the sum of the widths of the fixed width columns L2 in the table to be shown is calculated as the sum of the widths dynamically allocated to the columns of non-fixed width L3.
3. The method of claim 1, wherein traversing all columns of the table to be presented, placing columns of all columns that do not have a fixed-width attribute into an array, comprises:
and judging whether all the columns have columns with fixed width values, and if so, not processing the columns.
4. The method of claim 3, wherein traversing all columns of the table to be presented, placing columns of all columns that do not have a fixed-width attribute into an array, further comprises:
and judging whether the column with the minimum width value exists in all the columns, if so, putting the column into the array, and recording the minimum width value of the column.
5. The method of claim 4, wherein traversing all columns of the table to be presented, placing columns of all columns that do not have a fixed-width attribute into an array, further comprises:
the attribute of a column that has no fixed width value and minimum width value at the same time is defined as auto and placed into the array.
6. The method of claim 1, wherein determining the width assignment for each column based on the comparison comprises:
no processing is performed for columns that do not have the minimum width value.
7. The method of claim 6, wherein determining the width assignment for each column based on the comparison further comprises:
for columns with a minimum width value less than L3/N, the width value is assigned as auto.
8. The method of claim 7, wherein determining the width assignment for each column based on the comparison further comprises:
for a column whose minimum width value is greater than or equal to L3/N, its width value is assigned as the minimum width value, while the value of L3 is reduced by the same value as the width value of the column.
9. The utility model provides a fixed display device of column width based on WEB super wide table which characterized in that includes:
the determining module is used for determining the width sum L3 dynamically allocated to the non-fixed width columns based on the acquired maximum width L1 of the table to be displayed and the width sum L2 of the fixed width columns in the table to be displayed;
the traversal module is used for traversing all columns of the table to be displayed and putting columns which do not have fixed width attributes in all the columns into an array;
the sorting module is used for sorting the columns with the minimum width attribute in the array from big to small;
and the setting module is used for comparing each column in the array with the length of N after sorting with the size of L3/N and setting width assignment of each column according to a comparison result.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the column width fixed display method based on the WEB ultra wide table according to any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method for column-wide fixed presentation based on the WEB ultra-wide table according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811394542.6A CN109635263B (en) | 2018-11-22 | 2018-11-22 | Column width fixed display method and device based on WEB ultra-wide table and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811394542.6A CN109635263B (en) | 2018-11-22 | 2018-11-22 | Column width fixed display method and device based on WEB ultra-wide table and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109635263A true CN109635263A (en) | 2019-04-16 |
CN109635263B CN109635263B (en) | 2023-04-28 |
Family
ID=66068911
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811394542.6A Active CN109635263B (en) | 2018-11-22 | 2018-11-22 | Column width fixed display method and device based on WEB ultra-wide table and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109635263B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111191162A (en) * | 2019-11-05 | 2020-05-22 | 腾讯科技(深圳)有限公司 | Data processing method and equipment |
CN113268949A (en) * | 2021-06-23 | 2021-08-17 | 深圳平安智汇企业信息管理有限公司 | Form display method and device based on dynamic field, computer equipment and medium |
CN113868266A (en) * | 2021-12-06 | 2021-12-31 | 广州市玄武无线科技股份有限公司 | Method and device for generating star model layout of web front end and electronic equipment |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070136655A1 (en) * | 2005-12-12 | 2007-06-14 | Peters Johan C | Method and system for linearly resizing columns in a table |
US20110107196A1 (en) * | 2009-10-30 | 2011-05-05 | Synopsys, Inc. | Technique for dynamically sizing columns in a table |
US20140237343A1 (en) * | 2013-02-21 | 2014-08-21 | International Business Machines Corporation | Method and system for optimizing rendering of data tables |
CN105094622A (en) * | 2015-09-08 | 2015-11-25 | 上海上讯信息技术股份有限公司 | Method and equipment for regulating column width of table |
US20160364099A1 (en) * | 2015-06-11 | 2016-12-15 | International Business Machines Corporation | Dynamically transforming a tabular object based on actions within a graphical user interface |
CN106681972A (en) * | 2015-11-11 | 2017-05-17 | 北京国双科技有限公司 | Method and device for displaying table |
US20170139874A1 (en) * | 2004-11-26 | 2017-05-18 | Philip K. Chin | Method of displaying data in a table with fixed header |
CN107066439A (en) * | 2017-04-07 | 2017-08-18 | 广州市玄武无线科技股份有限公司 | A kind of method, device and the electronic equipment of custom form control |
CN107220378A (en) * | 2017-06-26 | 2017-09-29 | 福建中金在线信息科技有限公司 | Form sort method and device, WEB page methods of exhibiting and device |
CN107656914A (en) * | 2017-10-16 | 2018-02-02 | 厦门海迈科技股份有限公司 | Form generation method, device, terminal device and the storage medium of configurableization |
CN107943377A (en) * | 2017-11-17 | 2018-04-20 | 深圳乐信软件技术有限公司 | A kind of list is loaded into transition method, device, terminal and the storage medium of displaying |
US20180165254A1 (en) * | 2015-05-29 | 2018-06-14 | Cluster Seven Limited | Method and system for visualizing or interacting with array data using limited-resolution display devices |
-
2018
- 2018-11-22 CN CN201811394542.6A patent/CN109635263B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170139874A1 (en) * | 2004-11-26 | 2017-05-18 | Philip K. Chin | Method of displaying data in a table with fixed header |
US20070136655A1 (en) * | 2005-12-12 | 2007-06-14 | Peters Johan C | Method and system for linearly resizing columns in a table |
US20110107196A1 (en) * | 2009-10-30 | 2011-05-05 | Synopsys, Inc. | Technique for dynamically sizing columns in a table |
US20140237343A1 (en) * | 2013-02-21 | 2014-08-21 | International Business Machines Corporation | Method and system for optimizing rendering of data tables |
US20180165254A1 (en) * | 2015-05-29 | 2018-06-14 | Cluster Seven Limited | Method and system for visualizing or interacting with array data using limited-resolution display devices |
US20160364099A1 (en) * | 2015-06-11 | 2016-12-15 | International Business Machines Corporation | Dynamically transforming a tabular object based on actions within a graphical user interface |
CN105094622A (en) * | 2015-09-08 | 2015-11-25 | 上海上讯信息技术股份有限公司 | Method and equipment for regulating column width of table |
CN106681972A (en) * | 2015-11-11 | 2017-05-17 | 北京国双科技有限公司 | Method and device for displaying table |
CN107066439A (en) * | 2017-04-07 | 2017-08-18 | 广州市玄武无线科技股份有限公司 | A kind of method, device and the electronic equipment of custom form control |
CN107220378A (en) * | 2017-06-26 | 2017-09-29 | 福建中金在线信息科技有限公司 | Form sort method and device, WEB page methods of exhibiting and device |
CN107656914A (en) * | 2017-10-16 | 2018-02-02 | 厦门海迈科技股份有限公司 | Form generation method, device, terminal device and the storage medium of configurableization |
CN107943377A (en) * | 2017-11-17 | 2018-04-20 | 深圳乐信软件技术有限公司 | A kind of list is loaded into transition method, device, terminal and the storage medium of displaying |
Non-Patent Citations (9)
Title |
---|
CSDN: "Drupal 动态表格", 《HTTPS://DOWNLOAD.CSDN.NET/DOWNLOAD/KALIA/5594417》 * |
FORMER MEMBER: "Expand the width of the interactive text field dynamically based the text entered in SAP Adobe interactive forms", 《HTTPS://BLOGS.SAP.COM》 * |
JFROBISHOW: "CSS for dynamic form labels width", 《STACKOVERFLOW》 * |
刘平;: "WEB表格设计攻略" * |
刘钊;: "基于JavaScript的富客户端表格绘制库开发" * |
吴大胜: "基于HTML表格属性标记的网页信息隐藏技术", 《网络安全技术与应用》 * |
张晓彦等: "一种基于表格属性的网页信息隐藏算法", 《北京石油化工学院学报》 * |
潘庆和: "Jaspersoft报表系统Crosstab动态自适应列宽解决方法", 《电脑知识与技术》 * |
齐飞;王宁;张丽方;孙伟娟;: "基于列重合度的网络表格一致性扩展" * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111191162A (en) * | 2019-11-05 | 2020-05-22 | 腾讯科技(深圳)有限公司 | Data processing method and equipment |
CN111191162B (en) * | 2019-11-05 | 2024-05-17 | 腾讯科技(深圳)有限公司 | Data processing method and device |
CN113268949A (en) * | 2021-06-23 | 2021-08-17 | 深圳平安智汇企业信息管理有限公司 | Form display method and device based on dynamic field, computer equipment and medium |
CN113268949B (en) * | 2021-06-23 | 2023-03-07 | 深圳平安智汇企业信息管理有限公司 | Form display method and device based on dynamic fields, computer equipment and medium |
CN113868266A (en) * | 2021-12-06 | 2021-12-31 | 广州市玄武无线科技股份有限公司 | Method and device for generating star model layout of web front end and electronic equipment |
CN113868266B (en) * | 2021-12-06 | 2022-02-25 | 广州市玄武无线科技股份有限公司 | Method and device for generating star model layout of web front end and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109635263B (en) | 2023-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111931472B (en) | Page table rendering method and device, electronic equipment and computer readable medium | |
CN111399956A (en) | Content display method and device applied to display equipment and electronic equipment | |
CN111291244B (en) | House source information display method, device, terminal and storage medium | |
CN109635263B (en) | Column width fixed display method and device based on WEB ultra-wide table and electronic equipment | |
CN110188299B (en) | Response type page processing method and device and electronic equipment | |
CN117194828B (en) | Table rolling paging method and device in reaction and electronic equipment | |
CN110795196A (en) | Window display method, device, terminal and storage medium | |
CN110647369B (en) | Page dynamic display method and device, mobile terminal and storage medium | |
CN109460201A (en) | The methods of exhibiting of information, device, hardware device | |
CN110221892B (en) | Method, device, medium and electronic equipment for scrolling window information | |
CN114416945A (en) | Word cloud picture display method, device, equipment and medium | |
CN111338827B (en) | Method and device for pasting form data and electronic equipment | |
CN111783010B (en) | Webpage blank page monitoring method, device, terminal and storage medium | |
CN112492399B (en) | Information display method and device and electronic equipment | |
CN110427584A (en) | Page generation method, device, electronic equipment and computer readable storage medium | |
CN113204557B (en) | Electronic form importing method, device, equipment and medium | |
CN111274513B (en) | Window display method, device, terminal and storage medium | |
CN110809087A (en) | Screen locking information display method and device and electronic equipment | |
CN112333462A (en) | Live broadcast room page jumping method, returning device and electronic equipment | |
CN109739595B (en) | WEB interaction-based TIP display content processing method and device and electronic equipment | |
CN109710355B (en) | WEB interaction-based TIP display content processing method and device and electronic equipment | |
CN110069570B (en) | Data processing method and device | |
CN114327188B (en) | Form layout method, form layout device, electronic equipment and computer readable medium | |
CN111310031B (en) | House source information display method, device, terminal and storage medium | |
CN111026983B (en) | Method, device, medium and electronic equipment for realizing hyperlink |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |