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
- column
- width
- value
- fixed
- presented
- 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
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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (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 present invention relates to technical field of data processing more particularly to a kind of fixed displayings of col width based on WEB ultra-wide table
Method, apparatus and electronic equipment.
Background technique
In recent years, with the extensive use of Internet technology, more and more users are in computer, smart machine etc
The demand that the content described by the markup language of such as HTML etc is browsed in computer equipment is continuously increased.It is interior on internet
Hold the different needs for calculating equipment for needing while meeting large screen and the small screen.In general, the screen ruler of personal computer
The very little screen size for being greater than portable intelligent device.In some cases, using personal computer as the table content of target, big
There is usually no display problems in the computer equipment of screen size, and for the portable device of relatively small screen,
It then can not suitably show internet content on its screen sometimes.
In html language, usually by marking<table>Lai Dingyi in table content, table is usually with the shape of two-dimensional matrix
Formula needs content to be shown to show in table.The content that shows inside each list cell, can also either word content
It, usually will layout sample to table in order to allow the content in table to be shown with certain pattern to be image content
Formula is set, such as the minimum widith etc. of each column in table is arranged.
In the prior art, the table in browser html is not supported usually to do the scene that small width calculates, this will lead to
Ultra-wide table based on WEB has exceeded the maximum of screen when being shown and shows width, cause table show content without
The case where method is normally checked.
Summary of the invention
In view of this, the embodiment of the present invention provide a kind of fixed methods of exhibiting of col width based on WEB ultra-wide table, device and
Electronic equipment, at least partly solution problems of the prior art.
In a first aspect, the embodiment of the invention provides a kind of, the col width based on WEB ultra-wide table fixes methods of exhibiting, packet
It includes:
The width that fixed width arranges in maximum width L1 and the table to be presented based on the table to be presented got
Summation L2 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
In;
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 sets each column according to comparison result
Width assignment.
A kind of specific implementation according to an embodiment of the present invention, the maximum based on the table to be presented got are wide
The width summation L2 for spending fixed width column in L1 and the table to be presented, determines the width for being dynamically assigned to on-fixed width columns
Summation L3, comprising:
Calculate the width summation of fixed width column in the maximum width L1 and the table to be presented of the table to be presented
The difference of L2 takes the difference as the width summation L3 for being dynamically assigned to on-fixed width columns.
A kind of specific implementation according to an embodiment of the present invention, all column of the traversal table to be presented, will
Column in all column without fixed width attribute are put into array, comprising:
Judge the column that whether there is fixed width value in all column, and if it exists, do not handle the column then.
A kind of specific implementation according to an embodiment of the present invention, all column of the traversal table to be presented, will
Column in all column without fixed width attribute are put into array, further includes:
Judge the column that whether there is minimum width value in all column, and if it exists, then the column are put into the array, and
Record the minimum width value of the column.
A kind of specific implementation according to an embodiment of the present invention, all column of the traversal table to be presented, will
Column in all column without fixed width attribute are put into array, further includes:
It is auto by the attribute definition simultaneously without the column of fixed width value and minimum width value, and puts it into described
In array.
A kind of specific implementation according to an embodiment of the present invention, it is described to determine that the width of each column is assigned according to comparison result
Value, comprising:
For not minimum width value column without any processing.
A kind of specific implementation according to an embodiment of the present invention, it is described to determine that the width of each column is assigned according to comparison result
Value, further includes:
It is less than the column of L3/N for minimum width value, its width value is assigned a value of auto.
A kind of specific implementation according to an embodiment of the present invention, it is described to determine that the width of each column is assigned according to comparison result
Value, further includes:
It is greater than or equal to the column of L3/N for minimum width value, its width value is assigned a value of minimum width value, while by L3
Value reduce identical with the width value of column value.
Second aspect, the embodiment of the invention provides a kind of, and the col width based on WEB ultra-wide table fixes displaying device, packet
It includes:
Determining module, for fixed in maximum width L1 and the table to be presented based on the table to be presented got
The width summation L2 of width columns determines the width summation L3 for being dynamically assigned to on-fixed width columns;
Spider module will not have fixed width attribute for traversing all column of the table to be presented in all column
Column be put into array;
Sorting module, for, with the column of minimum widith attribute, will sort according to sequence from big to small in the array;
Setting module is the size of column and L3/N each in the array of N for length after comparative sorting, and ties according to comparing
Fruit sets the width assignment of each column.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, which includes:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one processor, and the instruction is by least one processor
It executes, so that at least one processor is able to carry out the base in any implementation of aforementioned first aspect or first aspect
In the fixed methods of exhibiting of the col width of WEB ultra-wide table.
Fourth aspect, the embodiment of the invention also provides a kind of non-transient computer readable storage medium, the non-transient meters
Calculation machine readable storage medium storing program for executing stores computer instruction, and the computer instruction is for making the computer execute aforementioned first aspect or the
The fixed methods of exhibiting of the col width based on WEB ultra-wide table in any implementation of one side.
5th aspect, the embodiment of the invention also provides a kind of computer program product, which includes
The calculation procedure being stored in non-transient computer readable storage medium, the computer program include program instruction, when the program
Instruction is when being computer-executed, make the computer execute in aforementioned first aspect or any implementation of first aspect based on
The fixed methods of exhibiting of the col width of WEB ultra-wide table.
The fixed exhibition scheme of col width based on WEB ultra-wide table in the embodiment of the present invention, including based on get to
Show the width summation L2 of fixed width column in the maximum width L1 and the table to be presented of table, determination is dynamically assigned to non-
The width summation L3 of fixed width column;All column for traversing the table to be presented will not have fixed width category in all column
The column of property are put into array;It, with the column of minimum widith attribute, will sort according to sequence from big to small in the array;Than
It is the size of column and L3/N each in the array of N compared with length after sequence, and sets the width assignment of each column 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.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field
For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1, which is that a kind of col width based on WEB ultra-wide table provided in an embodiment of the present invention is fixed, shows flow diagram;
Fig. 2, which is that another col width based on WEB ultra-wide table provided in an embodiment of the present invention is fixed, shows flow diagram;
Fig. 3, which is that another col width based on WEB ultra-wide table provided in an embodiment of the present invention is fixed, shows flow diagram;
Fig. 4, which is that the col width provided in an embodiment of the present invention based on WEB ultra-wide table is fixed, shows apparatus structure schematic diagram;
Fig. 5 is electronic equipment schematic diagram provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
Illustrate embodiment of the present disclosure below by way of specific specific example, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the disclosure easily.Obviously, described embodiment is only the disclosure
A part of the embodiment, instead of all the embodiments.The disclosure can also be subject to reality by way of a different and different embodiment
It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the disclosure
Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can
To be combined with each other.Based on the embodiment in the disclosure, those of ordinary skill in the art are without creative efforts
Every other embodiment obtained belongs to the range of disclosure protection.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian
And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein
And/or function is only illustrative.Based on the disclosure, it will be understood by one of ordinary skill in the art that one described herein
Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways.
For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or practice method.In addition, can make
With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or
Practice the method.
It should also be noted that, diagram provided in following embodiment only illustrates the basic structure of the disclosure in a schematic way
Think, component count, shape and the size when only display is with component related in the disclosure rather than according to actual implementation in schema are drawn
System, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel can also
It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields
The skilled person will understand that the aspect can be practiced without these specific details.
The embodiment of the present disclosure provides a kind of fixed methods of exhibiting of the col width based on WEB ultra-wide table.It is provided in this embodiment
It can be executed by a computing device based on the fixed methods of exhibiting of the col width of WEB ultra-wide table, which can be implemented as
Software, or it is embodied as the combination of software and hardware, which, which can integrate, is arranged in server, terminal device etc..
Referring to Fig. 1, a kind of fixed methods of exhibiting of the col width based on WEB ultra-wide table provided in an embodiment of the present invention, including
Following steps:
Fixed width arranges in S101, maximum width L1 and the table to be presented based on the table to be presented got
Width summation L2 determines the width summation L3 for being dynamically assigned to on-fixed width columns.
Before being demonstrated, the maximum width of table and the content in table will be generally stored in accordingly WEB table content
Server in, by query service device, can with or know the relevant property content of table, and then obtain table to be presented most
The width summation L2 of fixed width column in big width L1 and the table to be presented.By the maximum for calculating the table to be presented
The difference of width L1 and the width summation L2 of fixed width column in the table to be presented, can take the difference as dynamic
Distribute to the width summation L3 of on-fixed width columns.
The maximum width L1 of table to be presented can be width value predetermined, be also possible to according to displaying table not
The matching value of determination with equipment.Fixed width column are then to guarantee effectively to show in table in table to be presented
Content and the fixed value set.
S102 traverses all column of the table to be presented, and the column for not having fixed width attribute in all column are put into
Into array.
Table to be presented usually has default and shows attribute, shows that the width of each column of table also has different width
Value setting, in order to know the width value of all column in table, ad hoc vertical array minArray, if by traversal queries to certain
One column have fixed column width, then to the column without any processing.If the width value setting arranged by traversal queries to certain
With minimum widith, then the column are put into array minArray, while minimum width value is recorded in array.If passing through traversal
The a certain column of inquiry were both arranged without width value, were also arranged without minimum width value, were then temporarily defined as the width value of the column
Auto, while the column being put into minArray array, while the minimum width value of the column is denoted as auto.
S103, with the column of minimum widith attribute, will sort in the array according to sequence from big to small.
Each of table column minimum width value can be it is identical, be also possible to it is different, for what is arranged in table
The different situation of minimum width value can carry out secondary combing, in order in effective L3 width range to can adjust again
The wide column of permutation are modified.For the convenience of modification, will in the array with the column of minimum widith attribute, according to from greatly to
Small sequence sequence.So, the biggish column of minimum width value be can prioritize processing.When the maximum column of minimum width value are all full
When the preset minimum width value of foot requires, the column of other minimum width value can not have to processing.
S104, length is the size of each column and L3/N in the array of N after comparative sorting, and is set according to comparison result every
The width assignment of one column.
It, can be according to the col width value in array to the column of table after being ranked up to array according to sequence from big to small
Width carries out secondary assignment.Specifically, minArray array after sequence can be traversed, the length of array is N.If certain traversed
The one no minimum width value of column, then assert that this is classified as on-fixed width columns, without any processing to the column;If certain traversed
Minimum width value < L3/N of one column, then be assigned a value of auto for the width of the column.If the minimum width value of a certain column traversed
The width of the column is then assigned a value of minimum width value by >=L3/N, while the value of L3 becomes [width of the L3- column].
By aforesaid operations, it can guarantee that the width of all fixed column is the width of definition, the width of on-fixed column is
Auto, the width value of the column of minimum width value are its minimum width value predetermined or are needed according to total length and carry out two
The auto of secondary assignment modification.So that the width of table more has reasonability.
According to different application scenarios, can be different to the total length L 3 for the on-fixed width columns that table distributes, i.e.,
L3 can be realized using many algorithms.For example, can be set in such a way that user specifies.Implement according to the present invention
A kind of specific implementation of example, in the maximum width L1 and the table to be presented based on the table to be presented got
The width summation L2 of fixed width column, determines and is dynamically assigned to the width summation L3 of on-fixed width columns, comprising: calculate it is described to
The difference for showing the width summation L2 of fixed width column in the maximum width L1 and the table to be presented of table, by the difference
As the width summation L3 for being dynamically assigned to on-fixed width columns.
Referring to fig. 2, a kind of specific implementation according to an embodiment of the present invention, the institute of the traversal table to be presented
There are column, the column for not having fixed width attribute in all column be put into array, comprising:
S201 judges the column that whether there is fixed width value in all column, and if it exists, do not handle the column then.
For there are the column of fixed width value, width value typically to the specific content that seems needs, for example, table
In it is a certain column display image width be 50px, at this point, 50px can be set by the width value of the column, to guarantee image
The integrality of display.
S202 judges the column that whether there is minimum width value in all column, and if it exists, the column are then put into the array
In, and record the minimum width value of the column.
By setting minimum width value in column in the table, can guarantee at least to show that content can be timely in the column
Show, when traversal when discovery there are when the column of minimum width value, the minimum width value of the column can be placed on number
In group, and then further judge whether the setting of the minimum width value is reasonable.
Attribute definition simultaneously without the column of fixed width value and minimum width value is auto, and put it by S203
Into the array.
For certain specific column, any influence is not present for the displaying of content in its column in the size of width value,
For this column, auto can be set by its width value attribute.Specifically, can check whether the column have fixed width value
Or minimum width value setting, if a certain arrange both without fixed width value or without minimum width value, by the attribute definition of the column
For auto.
By the traversal step in step S201~S203, the width attribute respectively arranged in table can be timely obtained, is
Subsequent resetting for table width of progress provides guarantee.
Referring to Fig. 3, a kind of specific implementation according to an embodiment of the present invention is described to determine each column according to comparison result
Width assignment, may include steps of:
S301, for not minimum width value column without any processing.
S302 is less than minimum width value the column of L3/N, its width value is assigned a value of auto.
S303 is greater than or equal to minimum width value the column of L3/N, its width value is assigned a value of minimum width value, simultaneously
The value of L3 is reduced into value identical with the width value of the column.
For step S301~S303 during execution, minArray array after traversal sequence, the length of array is N.Such as
The no minimum width value of a certain column that fruit traverses, then assert that this is classified as on-fixed width columns, without any processing to the column;Such as
Minimum width value < the L3/N for a certain column that fruit traverses, the width of the column is assigned a value of auto by this.If a certain column traversed
Minimum width value >=L3/N, then the width of the column is assigned a value of minimum widith, while the value of L3 becomes the [width of the L3- column
Degree].
By aforesaid operations, it can guarantee that the width of all fixed column is the width of definition, the width of on-fixed column is
Auto, the width value of the column of minimum width value are its minimum width value predetermined or are needed according to total length and carry out two
The auto of secondary assignment modification.So that the width of table more has reasonability.
Corresponding with above method embodiment, referring to fig. 4, the embodiment of the invention also provides one kind to be based on WEB ultra-wide
The col width of table is fixed to show device 40, comprising:
Determining module 401, in maximum width L1 and the table to be presented based on the table to be presented got
The width summation L2 of fixed width column, determines the width summation L3 for being dynamically assigned to on-fixed width columns.
Before being demonstrated, the maximum width of table and the content in table will be generally stored in accordingly WEB table content
Server in, by query service device, can with or know the relevant property content of table, and then obtain table to be presented most
The width summation L2 of fixed width column in big width L1 and the table to be presented.By the maximum for calculating the table to be presented
The difference of width L1 and the width summation L2 of fixed width column in the table to be presented, can take the difference as dynamic
Distribute to the width summation L3 of on-fixed width columns.
The maximum width L1 of table to be presented can be width value predetermined, be also possible to according to displaying table not
The matching value of determination with equipment.Fixed width column are then to guarantee effectively to show in table in table to be presented
Content and the fixed value set.
Spider module 402 will not have fixed width category for traversing all column of the table to be presented in all column
The column of property are put into array.
Table to be presented usually has default and shows attribute, shows that the width of each column of table also has different width
Value setting, in order to know the width value of all column in table, ad hoc vertical array minArray, if by traversal queries to certain
One column have fixed column width, then to the column without any processing.If the width value setting arranged by traversal queries to certain
With minimum widith, then the column are put into array minArray, while minimum width value is recorded in array.If passing through traversal
The a certain column of inquiry were both arranged without width value, were also arranged without minimum width value, were then temporarily defined as the width value of the column
Auto, while the column being put into minArray array, while the minimum width value of the column is denoted as auto.
Sorting module 403, for, with the column of minimum widith attribute, will be arranged according to sequence from big to small in the array
Sequence.
Each of table column minimum width value can be it is identical, be also possible to it is different, for what is arranged in table
The different situation of minimum width value can carry out secondary combing, in order in effective L3 width range to can adjust again
The wide column of permutation are modified.For the convenience of modification, will in the array with the column of minimum widith attribute, according to from greatly to
Small sequence sequence.So, the biggish column of minimum width value be can prioritize processing.When the maximum column of minimum width value are all full
When the preset minimum width value of foot requires, the column of other minimum width value can not have to processing.
Setting module 404, for each column and the size of L3/N in array that length after comparative sorting is N, and according to than
Relatively result sets the width assignment of each column.
It, can be according to the col width value in array to the column of table after being ranked up to array according to sequence from big to small
Width carries out secondary assignment.Specifically, minArray array after sequence can be traversed, the length of array is N.If certain traversed
The one no minimum width value of column, then assert that this is classified as on-fixed width columns, without any processing to the column;If certain traversed
Minimum width value < L3/N of one column, then be assigned a value of auto for the width of the column.If the minimum width value of a certain column traversed
The width of the column is then assigned a value of minimum width value by >=L3/N, while the value of L3 becomes [width of the L3- column].
By aforesaid operations, it can guarantee that the width of all fixed column is the width of definition, the width of on-fixed column is
Auto, the width value of the column of minimum width value are its minimum width value predetermined or are needed according to total length and carry out two
The auto of secondary assignment modification.So that the width of table more has reasonability.
Fig. 4 shown device can it is corresponding execute above method embodiment in content, what the present embodiment was not described in detail
Part, referring to the content recorded in above method embodiment, details are not described herein.
Referring to Fig. 5, the embodiment of the invention also provides a kind of electronic equipment 50, which includes:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one processor, and the instruction is by least one processor
It executes, so that at least one processor is able to carry out the fixed exhibition of the col width in preceding method embodiment based on WEB ultra-wide table
Show method.
The embodiment of the invention also provides a kind of non-transient computer readable storage medium, the non-transient computer is readable to be deposited
Storage media stores computer instruction, and the computer instruction is for executing the computer in preceding method embodiment.
The embodiment of the invention also provides a kind of computer program product, the computer program product is non-temporary including being stored in
Calculation procedure on state computer readable storage medium, the computer program include program instruction, when the program instruction is calculated
When machine executes, the computer is made to execute the fixed methods of exhibiting of the col width based on WEB ultra-wide table in preceding method embodiment.
Below with reference to Fig. 5, it illustrates the structural schematic diagrams for the electronic equipment 50 for being suitable for being used to realize the embodiment of the present disclosure.
Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, Digital Broadcasting Receiver
Device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal are (such as vehicle-mounted
Navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electronics shown in Fig. 5
Equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 5, electronic equipment 50 may include processing unit (such as central processing unit, graphics processor etc.) 501,
It can be loaded into random access storage according to the program being stored in read-only memory (ROM) 502 or from storage device 508
Program in device (RAM) 503 and execute various movements appropriate and processing.In RAM 503, it is also stored with the behaviour of electronic equipment 50
Various programs and data needed for making.Processing unit 501, ROM 502 and RAM 503 are connected with each other by bus 504.It is defeated
Enter/export (I/O) interface 505 and is also connected to bus 504.
In general, following device can connect to I/O interface 505: including such as touch screen, touch tablet, keyboard, mouse, figure
As the input unit 506 of sensor, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaking
The output device 507 of device, vibrator etc.;Storage device 508 including such as tape, hard disk etc.;And communication device 509.It is logical
T unit 509 can permit electronic equipment 50 and wirelessly or non-wirelessly be communicated with other equipment to exchange data.Although showing in figure
The electronic equipment 50 with various devices is gone out, it should be understood that being not required for implementing or having all devices shown.
It can alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 509, or from storage device 508
It is mounted, or is mounted from ROM 502.When the computer program is executed by processing unit 501, the embodiment of the present disclosure is executed
Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit
Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned
Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity
When sub- equipment executes, so that the electronic equipment: obtaining at least two internet protocol addresses;Send to Node evaluation equipment includes institute
State the Node evaluation request of at least two internet protocol addresses, wherein the Node evaluation equipment is internet from described at least two
In protocol address, chooses internet protocol address and return;Receive the internet protocol address that the Node evaluation equipment returns;Its
In, the fringe node in acquired internet protocol address instruction content distributing network.
Alternatively, above-mentioned computer-readable medium carries one or more program, when said one or multiple programs
When being executed by the electronic equipment, so that the electronic equipment: receiving the Node evaluation including at least two internet protocol addresses and request;
From at least two internet protocol address, internet protocol address is chosen;Return to the internet protocol address selected;Wherein,
The fringe node in internet protocol address instruction content distributing network received.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the
One acquiring unit is also described as " obtaining the unit of at least two internet protocol addresses ".
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (11)
1. a kind of fixed methods of exhibiting of the col width based on WEB ultra-wide table characterized by comprising
The width summation that fixed width arranges in maximum width L1 and the table to be presented based on the table to be presented got
L2 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 of each column is set according to comparison result
Spend assignment.
2. the method according to claim 1, wherein the maximum width based on the table to be presented got
The width summation L2 of fixed width column in L1 and the table to be presented determines that the width for being dynamically assigned to on-fixed width columns is total
And L3, comprising:
Calculate the width summation L2 of fixed width column in the maximum width L1 and the table to be presented of the table to be presented
Difference takes the difference as the width summation L3 for being dynamically assigned to on-fixed width columns.
3. the method according to claim 1, wherein all column of the traversal table to be presented, by institute
There are the column for not having fixed width attribute in column to be put into array, comprising:
Judge the column that whether there is fixed width value in all column, and if it exists, do not handle the column then.
4. according to the method described in claim 3, it is characterized in that, all column of the traversal table to be presented, by institute
There are the column for not having fixed width attribute in column to be put into array, further includes:
Judge the column that whether there is minimum width value in all column, and if it exists, then the column are put into the array, and are recorded
The minimum width value of the column.
5. according to the method described in claim 4, it is characterized in that, all column of the traversal table to be presented, by institute
There are the column for not having fixed width attribute in column to be put into array, further includes:
It is auto by the attribute definition simultaneously without the column of fixed width value and minimum width value, and puts it into the array
In.
6. the method according to claim 1, wherein described determine that the width of each column is assigned according to comparison result
Value, comprising:
For not minimum width value column without any processing.
7. according to the method described in claim 6, it is characterized in that, described determine that the width of each column is assigned according to comparison result
Value, further includes:
It is less than the column of L3/N for minimum width value, its width value is assigned a value of auto.
8. the method according to the description of claim 7 is characterized in that described determine that the width of each column is assigned according to comparison result
Value, further includes:
It is greater than or equal to the column of L3/N for minimum width value, its width value is assigned a value of minimum width value, while by the value of L3
Reduce value identical with the width value of the column.
9. a kind of col width based on WEB ultra-wide table is fixed to show device characterized by comprising
Determining module, for fixed width in maximum width L1 and the table to be presented based on the table to be presented got
The width summation L2 of column determines the width summation L3 for being dynamically assigned to on-fixed width columns;
Spider module will not have the column of fixed width attribute for traversing all column of the table to be presented in all column
It is put into array;
Sorting module, for, with the column of minimum widith attribute, will sort according to sequence from big to small in the array;
Setting module is the size of column and L3/N each in the array of N for length after comparative sorting, and is set according to comparison result
The width assignment of fixed each column.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
It manages device to execute, so that at least one described processor is able to carry out described in aforementioned any claim 1-8 based on WEB ultra-wide table
The fixed methods of exhibiting of the col width of lattice.
11. a kind of non-transient computer readable storage medium, which stores computer instruction,
The computer instruction is for making the computer execute the col width based on WEB ultra-wide table described in aforementioned any claim 1-8
Fixed methods of exhibiting.
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 |
---|---|---|
CN109377329B (en) | House resource recommendation method and device, storage medium and electronic equipment | |
CN110399848A (en) | Video cover generation method, device and electronic equipment | |
CN109375918A (en) | Interface rendering method, device, electronic equipment and the storage medium of small routine | |
CN110381368A (en) | Video cover generation method, device and electronic equipment | |
CN109635263A (en) | The fixed methods of exhibiting of col width based on WEB ultra-wide table, device and electronic equipment | |
CN110069579A (en) | Fence method of partition and device | |
CN109510874A (en) | Electronic certificate method for pushing, device and electronic equipment based on LBS | |
CN110046310A (en) | The method and apparatus for analyzing the redirected link in the page | |
CN107391137B (en) | Display method for electronic map, device and system | |
CN110097397A (en) | Information-pushing method, device and electronic equipment based on feedback | |
CN110278447A (en) | Video pushing method, device and electronic equipment based on continuous feature | |
CN110288037A (en) | Image processing method, device and electronic equipment | |
CN110210532A (en) | Background colour generation method, device and electronic equipment | |
CN110188299A (en) | Response type page processing method, device and electronic equipment | |
CN109783101A (en) | The page layout method and device of browser automatic adaptation | |
CN109743381A (en) | Client and the long connection exchange method of server-side and device | |
CN109460201A (en) | The methods of exhibiting of information, device, hardware device | |
CN110069459A (en) | File monitor method, apparatus and electronic equipment | |
CN110096615A (en) | Search for method, apparatus, electronic equipment and the storage medium of data | |
CN112182317A (en) | Index weight determination method and device, electronic equipment and medium | |
CN108052290A (en) | For storing the method and apparatus of data | |
CN110489158A (en) | Method, apparatus, medium and the electronic equipment that code hosted platform is optimized | |
CN110069997A (en) | Scene classification method, device and electronic equipment | |
CN109800378A (en) | Content processing method, device and electronic equipment based on custom browser | |
CN109684570A (en) | Web information processing 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |