CN108664310A - Display box processing method, device, computer equipment and storage medium - Google Patents
Display box processing method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108664310A CN108664310A CN201810495104.2A CN201810495104A CN108664310A CN 108664310 A CN108664310 A CN 108664310A CN 201810495104 A CN201810495104 A CN 201810495104A CN 108664310 A CN108664310 A CN 108664310A
- Authority
- CN
- China
- Prior art keywords
- display
- display box
- boundary value
- display window
- box
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- 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
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
Abstract
This application involves a kind of display box processing method, device, computer equipment and storage mediums.The method includes:Display box idsplay order is received, display box idsplay order carries the station location marker of display box to be shown;Display box to be shown corresponding with station location marker is obtained, and obtains first boundary value corresponding with display box to be shown;Obtain the second boundary value of the corresponding display window of display box to be shown;When the difference of first boundary value and the second boundary value is more than preset value, then default display location corresponding with display box to be shown is obtained;Display box to be shown is shown according to default display location.Display box can be avoided to be truncated using this method so that the content that display box is shown is more complete.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of display box processing method, device, computer equipment
And storage medium.
Background technology
With the development of data technique, the various programs in the terminals such as computer have been more and more widely used, such as
ECharts (business level data drawing list) is a common graph making tool, and in use, the program in terminal is often deposited
In the display box for showing message.
However, when display box shows and is located at the marginal position in the small screen, it is easy to the problem of being truncated so that
The content of display box shows imperfect.
Invention content
Based on this, it is necessary in view of the above technical problems, provide a kind of display box processing that can completely show display box
Method, apparatus, computer equipment and storage medium.
A kind of display box processing method, the method includes:
Display box idsplay order is received, the display box idsplay order carries the station location marker of display box to be shown;
Display box to be shown corresponding with the station location marker is obtained, and is obtained corresponding with the display box to be shown
First boundary value;
Obtain the second boundary value of the corresponding display window of the display box to be shown;
When the difference of the first boundary value and the second boundary value be more than preset value when, then obtain with it is described to be shown
The corresponding default display location of display box;
The display box to be shown is shown according to the default display location.
Acquisition first boundary value corresponding with the display box to be shown in one of the embodiments, including:
The display box pair to be shown is obtained by the detection function being arranged in container corresponding with the display window
The first boundary value answered;
The second boundary value for obtaining the corresponding display window of the display box to be shown, including:
The second boundary value of the corresponding display window of the display box to be shown is obtained by the detection function.
The detection function by being arranged in container corresponding with the display window obtains in one of the embodiments,
Before taking the corresponding first boundary value of the display box to be shown, further include:
Obtain the corresponding browser attribute of the display window;
Check whether the display window is corresponding with the display window of the setting according to the browser attribute
Detection function compatibility in container;
When the display window is compatible with the detection function, setting appearance corresponding with the display window is continued through
Detection function in device obtains the corresponding first boundary value of the display box to be shown.
It is described in one of the embodiments, to check whether the display window sets with described according to the browser attribute
After detection function compatibility in the corresponding container of the display window set, further include:
When the display window and the detection function are incompatible, generation error is reminded;
Obtain the corresponding predeterminated position parameter of the error prompting;
The error prompting is shown in the display window according to the predeterminated position parameter.
It is described in one of the embodiments, that the display box to be shown is shown according to the default display location, also
Including:
Obtain the size of the display window;
According to the size of display box to be shown described in the size adjusting of the display window;
It is shown in the default display location according to the size of the display box to be shown after adjustment described to be shown
Display box.
A kind of program suspended frame managing device, described device include:
Receiving module, for receiving display box idsplay order, the display box idsplay order carries display to be shown
The station location marker of frame;
First boundary value acquisition module for obtaining display box to be shown corresponding with the station location marker, and obtains
First boundary value corresponding with the display box to be shown;
The second boundary value acquisition module, the second boundary for obtaining the corresponding display window of the display box to be shown
Value;
Position adjusting type modules are then obtained when the difference of the first boundary value and the second boundary value is more than preset value
Take default display location corresponding with the display box to be shown;
Display module, for showing the display box to be shown according to the default display location.
The first boundary value acquisition module in one of the embodiments, is additionally operable to through setting and the display window
Detection function in the corresponding container of mouth obtains the corresponding first boundary value of the display box to be shown;
The then the second boundary value acquisition module is additionally operable to obtain the display box to be shown by the detection function
The second boundary value of corresponding display window.
Described device further includes in one of the embodiments,:
Attribute acquisition module, for obtaining the corresponding browser attribute of the display window;
Compatible detection module, for according to the browser attribute check the display window whether with the setting
Detection function compatibility in the corresponding container of the display window;
Compatible execution module, for when the display window is compatible with the detection function, continuing through setting and institute
It states the detection function in the corresponding container of display window and obtains the corresponding first boundary value of the display box to be shown.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
The step of device realizes any of the above-described the method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of method described in any one of the above embodiments is realized when row.
Above-mentioned display box processing method, device, computer equipment and storage medium, when detecting display box pair to be shown
The difference of the second boundary value of the first boundary value and the corresponding display window of display box to be shown answered, when this difference is super
When crossing preset value, display box corresponding with station location marker will exceed display window, need the position of this display box to be shown
It sets and is adjusted to default display location, avoid display box from being truncated, show incomplete problem.
Description of the drawings
Fig. 1 is the flow diagram of display box processing method in one embodiment;
Fig. 2 is the flow diagram of compatible detecting step in one embodiment;
Fig. 3 is the structure diagram of display box processing unit in one embodiment;
Fig. 4 is the internal structure chart of one embodiment Computer equipment.
Specific implementation mode
It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
The application provides a kind of display box processing method, can be applied to but is not limited to various personal computers, notes
This computer, smart mobile phone, tablet computer and portable wearable device.Fig. 1 is referred to, which includes:
S102, receives display box idsplay order, and display box idsplay order carries the station location marker of display box to be shown.
Wherein, display box is the content that terminal will be shown according to display box idsplay order on display window;Such as exist
In the chart of Echarts, the suspension prompting frame for indicating chart-information.Display box idsplay order is being used for of receiving of terminal
Show the instruction of display box;Terminal can receive this display box idsplay order by internal or external input equipment.For example, can
To be movement, stop or click commands that terminal recognition goes out mouse.
Station location marker is the position of display of the display box on the display window in screen;This station location marker can be mouse
Position etc. that is mobile or clicking.
Specifically, terminal receives display box idsplay order by input equipment, and the carrying of this display box idsplay order needs to be shown
For the display box shown in the station location marker shown on the display windows such as screen, terminal can be aobvious in corresponding position according to this station location marker
Show the display box to be shown.
S104 obtains display box to be shown corresponding with station location marker, and obtains corresponding with display box to be shown
First boundary value.
Wherein, first boundary value, when being that display box to be shown is shown according to the corresponding display location of station location marker,
The index of position relationship between display box edge to be shown and display window;Left margin, the right margin of such as display box.
Specifically, after terminal receives display box idsplay order, according to the station location marker of display box idsplay order carrying
Obtain the first boundary value of display box to be shown after display window is shown.
S106 obtains the second boundary value of the corresponding display window of display box to be shown.
Wherein, the second boundary value is to ensure that this display box to be shown is sat without departing from the display location at display window edge
Mark;As display box the left side without departing from display window boundary value be display box left margin and display window left margin weight
It closes or the right of display box is overlapped without departing from the right margin that the boundary value of display window is display box with the right margin of display window
Deng, then this second boundary value can be display window four boundary values.
Specifically, terminal according to display window in the corresponding display window of the position acquisition of screen display box to be shown
The second boundary value.
S108 is then obtained and display to be shown when the difference of first boundary value and the second boundary value is more than preset value
The corresponding default display location of frame.
Wherein, default display location is the coordinate of the final position in display window of this display box to be shown;This is pre-
If display location is according to the size of current window and the location determination in screen, it can ensure display box to be shown
It is completely shown in display window without being truncated;As detected that the left margin of display box to be shown exceeds display window
When left margin, then the default display location of this display box to be shown is arranged to be aligned with the left hand edge of display window.
Specifically, after terminal obtains first boundary value and the second boundary value, first boundary value and the second boundary value are calculated
Difference, it is when this difference is beyond the preset value that whether can be truncated for judging display box to be shown, then to be shown aobvious
If may exceed display window after showing frame display, which is likely to occur the problem of being truncated;Therefore when terminal finds to wait showing
If may exceed display window after the display box display shown, display box to be shown is adjusted to suitably default display position
It sets, the content of display box is enable completely to show.
S110 shows display box to be shown according to default display location.
Specifically, after terminal is adjusted to display box to be shown suitably to preset display location, you can preset herein
Display location shows display box to be shown.
Above-mentioned display box processing method, when detecting the corresponding first boundary value of display box to be shown and to be shown aobvious
The difference for showing the second boundary value of the corresponding display window of frame, it is corresponding with station location marker when this difference is more than preset value
Display box will exceed display window, need the position by this display box to be shown to be adjusted to default display location, avoid
Display box is truncated, and shows incomplete problem.
In one embodiment, it is obtained in the step S104 in above-mentioned display box processing method and display box pair to be shown
The first boundary value answered may include:It is obtained by the detection function being arranged in container corresponding with display window to be shown
The corresponding first boundary value of display box.Then step S106 obtains the second boundary of the corresponding display window of display box to be shown
It is worth, may include:The second boundary value of the corresponding display window of display box to be shown is obtained by detection function.
Wherein, the corresponding container of display window is the container for holding the content in display window;Such as currently explicitly
The display format of figure is HTML (HyperText Markup Language hypertext markup language), then the container can be DOM
(Document Object Model document dbject models) element.
Detection function is for detecting the function for corresponding to parameter in display window;Such as in HTML5 (hypertext markup language
The 5th revision of HTML) provide display interface in can pass through API (Application Programming
Interface, application programming interface) provide MutationObserver (state observation person, it is a kind of can be in some range
Interior dom tree makes the interface of appropriate reaction when changing) object is as detection function.
Specifically, detection function is set in the corresponding container of display window, is obtained in container and is waited for by detection function
The second boundary value of the corresponding first boundary value of display box and the corresponding display window of display box to be shown of display;And continue
The difference for calculating first boundary value and the second boundary value, when this difference exceeds whether can be by for judge display box to be shown
When the critical value, i.e. preset value blocked, if then display window may be exceeded after display box display to be shown, which can
The problem of capable of being truncated;Therefore when may exceed display window after if terminal finds display box display to be shown, will wait for
The display box of display is adjusted to suitably preset display location, and the content of display box is enable completely to show.
It optionally, can be by display to be shown if may exceed display window after display box display to be shown
Frame is arranged beyond the corresponding boundary value in part on the boundary of display window.The right margin of such as display box to be shown has exceeded aobvious
Show the right margin of window, is then arranged to overlap with the right margin of display window by the right margin of display box to be shown, i.e., in mouse
When mark is moved to except the right margin of display window, display box is aligned with the right margin of display window always.
In above-described embodiment, is obtained in container by the detection function being arranged in container corresponding with display window and wait showing
The second boundary value of the corresponding first boundary value of display box and the corresponding display window of display box to be shown that show, can be more accurate
Really judge the display location of display box to be shown.
In one embodiment, in above-mentioned display box processing method by being arranged in corresponding with display window container
Can also include compatible detecting step, the step before detection function obtains the corresponding first boundary value of display box to be shown
Suddenly include:Obtain the corresponding browser attribute of display window;Check whether display window is aobvious with setting according to browser attribute
Show the detection function compatibility in the corresponding container of window;When display window is compatible with detection function, continues through setting and show
Show that the detection function in the corresponding container of window obtains the corresponding first boundary value of display box to be shown.
Wherein, browser attribute is the ginseng whether compatible for detecting the corresponding browser of detection function and display window
Number;Version, the type attribute of such as browser.
Specifically, display to be shown is obtained by the detection function being arranged in container corresponding with display window in terminal
Before the corresponding first boundary value of frame, whether compatible, lead to if needing first to verify this detection function browser corresponding with display window
Whether the version for crossing browser detection of attribute this browser supports the operation of detection function to be continued through if supporting with type
The detection function being arranged in container corresponding with display window obtains the corresponding first boundary value of display box to be shown.
In above-described embodiment, for ensure detection function can normal operation, first verify this detection function and display window pair
Whether the browser answered is compatible with, and ensures that above-mentioned display box processing method is performed normally, completely shows display box to be shown.
In one embodiment, Fig. 2 is referred to, being shown according to browser attribute inspection in above-mentioned display box processing method
After whether corresponding with the display window of setting detection function in window container be compatible, can also include:
S202, when display window and detection function are incompatible, generation error is reminded.
Wherein, error prompting is that the prompting for reminding personnel's display window of using terminal and detection function incompatible is believed
Breath;This error prompting can be the pop-up in the corresponding browser of display window, or jump to another display in a browser
The webpage of error prompting.
Specifically, it when terminal detects that the version of browser or this browser is incompatible with this detection function, then generates
Error prompting for prompting this incompatible situation informs that personnel just in operating terminal this display box processing method possibly can not
Normal operation, corresponding personnel may be selected not executing this display box processing method or installation can be compatible with this detection function
Browser.
Optionally, this error prompting may include with this detection function can be compatible browser information, as red fox,
IE6 (IE, Internet Explorer are a web browsers that Microsoft releases) etc..
S204 obtains the corresponding predeterminated position parameter of error prompting.
Wherein, predeterminated position parameter is the parameter for showing this error prompting in corresponding predeterminated position;If necessary
When the upper right corner of browser shows the error prompting, then the corresponding predeterminated position parameter of error prompting is then display window upper right
The location parameter at angle, i.e., at a distance from the side of four, the upper and lower, left and right of display window.
Specifically, it after terminal generation error is reminded, needs to be shown in the corresponding position of browser according to predeterminated position parameter
This error prompting, therefore need to first obtain the corresponding predeterminated position parameter of error prompting.
S206 shows error prompting according to predeterminated position parameter in display window.
Specifically, in step S204, after terminal gets predeterminated position parameter, you can existed according to this predeterminated position parameter
The corresponding position of display window shows this error prompting.
In above-described embodiment, when display window and detection function are incompatible, error prompting is shown in display window,
Inform the user of service of terminal need to install corresponding browser just can normal operation this display box processing method, ensure display box
Complete display.
In one embodiment, the step S110 in above-mentioned display box processing method is shown according to default display location waits showing
The display box shown can also include:Obtain the size of display window;According to the display box that the size adjusting of display window is to be shown
Size;According to the size of the display box to be shown after adjustment display box to be shown is shown in default display location.
Specifically, if data to be shown are more or display window size is smaller, display box may exceed display window
Mouthful, the incomplete problem of display box content caused by being equally truncated there may be display box, therefore terminal is to be shown in display
Display box before, can be according to the size of the size adjusting of display window display box to be shown so that is finally shown is aobvious
Show frame without departing from display window, it is to be shown after the corresponding position display adjustment of display window further according to default display location
Display box.
Optionally, when terminal is according to the size of the size adjusting of display window display box to be shown, it can adjust and wait showing
The ranks relationship of content in the display box shown then reduces such as when the width of display box to be shown exceeds display window and waits showing
The columns of content in the display box shown increases line number, the content of display box to be shown is limited in display window;Equally
Ground can then reduce line number, increase columns when the width of display box to be shown exceeds display window.Other will be to be shown
The content of display box limits the method in display window and can also apply in the display box processing method of the application.
In above-described embodiment, according to the size of display window, the size of display box to be shown is adjusted, avoids showing
Show that frame exceeds display window, causes the contents lost or unsightly of display box so that display box can completely be shown.
For example, when using Echarts to carry out graph making in terminal, often by showing the prompt that suspends when mouse moves
Frame, i.e., above-mentioned display box, for showing that the data for corresponding part of having drawn a diagram are explained.And in actual use, often coordinate
Echarts softwares are opened in html file in browser, and the Echarts icons drawn are positioned in DOM element and are carried out
Display and editor, therefore can be by the way that MutationObserver interfaces are arranged in the DOM element for the chart that display is drawn, to supervise
It surveys in position of the corresponding display window of the icon shown in this DOM element in screen and this display window and is moved according to mouse
The position for the suspension prompting frame that position is shown.When the chart display window in Echarts is located at the boundary of computer screen, such as
Right margin, if then mouse is fallen close to the position of screen right margin, the content of suspension prompting frame may exceed computer screen
Curtain, causes suspension prompting frame to be only able to display partial content, and display is imperfect;At this point, passing through the display box processing side in the application
Method, terminal is before the position moved according to mouse shows suspension prompting frame, if detecting, the right boundary value of suspension prompting frame is super
The right boundary value of display window is gone out, then the position of the right margin for the prompting frame that suspends is withdrawn into the default position within display window
It sets, this predeterminated position may be such that the position that the right margin of this suspension prompting frame is just overlapped with the right margin of display window,
Pass through the method so that no matter whether mouse falls except display window, the indication range of this suspension prompting frame is fixed on always
Inside display window, suspension prompting frame can show complete information inside display window always.Wherein, suspension prompting frame
Position in display window is by div (position of cascading style table unit and level) layer corresponding to suspension prompting frame
Two parameters of top and left are determined that they respectively represent top and a left side of the suspension prompting frame in its corresponding display window
The corresponding position in side need to only be configured its top, left value since the size and pattern of suspension prompting frame have been defined,
It can determine this display location of suspension prompting frame in current window;Therefore adjustment suspend prompt mad position only need to top and
Two parameters of left are set.And since this MutationObserver interface is not and all browser-safes, institute
Before using this interface, to need the compatibility for first detecting this interface and currently used browser, if compatible, after reforwarding
This display box processing method of row, if incompatible, generation error is reminded, and informs to other browsers, otherwise user needs replacing
This display box processing method may run error.
It should be understood that although each step in the flow chart of Fig. 1 to Fig. 2 is shown successively according to the instruction of arrow,
But these steps are not the inevitable sequence indicated according to arrow to be executed successively.Unless expressly state otherwise herein, these
There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 1 to Fig. 2
At least part step may include that either these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps
One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily
Be carry out successively, but can with other steps either the sub-step of other steps or at least part in stage in turn or
Alternately execute.
In one embodiment, as shown in figure 3, providing a kind of display box processing unit, including:Receiving module 100,
One boundary value acquisition module 200, the second boundary value acquisition module 300, position adjusting type modules 400 and display module 500, wherein:
Receiving module 100, for receiving display box idsplay order, display box idsplay order carries display box to be shown
Station location marker.
First boundary value acquisition module 200, for obtaining display box to be shown corresponding with station location marker, and acquisition and
The corresponding first boundary value of display box to be shown.
The second boundary value acquisition module 300, the second boundary for obtaining the corresponding display window of display box to be shown
Value.
Position adjusting type modules 400, for when the difference of first boundary value and the second boundary value is more than preset value, then obtaining
Default display location corresponding with display box to be shown.
Display module 500, for showing display box to be shown according to default display location.
In one embodiment, the first boundary value acquisition module 200 in above-mentioned display box processing unit, is additionally operable to pass through
The detection function being arranged in container corresponding with display window obtains the corresponding first boundary value of display box to be shown.
Then the second boundary value acquisition module 300 is additionally operable to obtain display box to be shown by detection function corresponding aobvious
Show the second boundary value of window.
In one embodiment, can also include in above-mentioned display box processing unit:
Attribute acquisition module, for obtaining the corresponding browser attribute of display window.
Compatible detection module, for checking whether display window is corresponding with the display window of setting according to browser attribute
Container in detection function compatibility.
Compatible execution module, for when display window is compatible with detection function, continuing through setting and display window pair
Detection function in the container answered obtains the corresponding first boundary value of display box to be shown.
In one embodiment, above-mentioned display box processing unit can also include:
Generation module is reminded, for when display window and detection function are incompatible, generation error to be reminded.
Positioning unit is reminded, for obtaining the corresponding predeterminated position parameter of error prompting.
Display module is reminded, for showing error prompting in display window according to predeterminated position parameter.
In one embodiment, the display module 500 of above-mentioned display box processing unit can also include:
Window size acquiring unit, the size for obtaining display window.
Display box adjustment unit, for the size according to the size adjusting of display window display box to be shown.
Display unit, it is to be shown for being shown in default display location according to the size of the display box to be shown after adjustment
Display box.
Specific about display box processing unit limits the restriction that may refer to above for display box processing method,
This is repeated no more.Modules in above-mentioned display box processing unit can come fully or partially through software, hardware and combinations thereof
It realizes.Above-mentioned each module can be embedded in or in the form of hardware independently of in the processor in computer equipment, can also be with software
Form is stored in the memory in computer equipment, and the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure
Figure can be as shown in Figure 4.The computer equipment includes the processor connected by system bus, memory, network interface, display
Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey
Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The network interface of machine equipment is used to communicate by network connection with external terminal.When the computer program is executed by processor with
Realize a kind of display box processing method.The display screen of the computer equipment can be that liquid crystal display or electric ink are shown
Screen, the input unit of the computer equipment can be the touch layer covered on display screen, can also be on computer equipment shell
Button, trace ball or the Trackpad of setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 4, is only tied with the relevant part of application scheme
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
May include either combining certain components than more or fewer components as shown in the figure or being arranged with different components
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, the processor realize following steps when executing computer program:Display box idsplay order is received, display box is shown
Instruction carries the station location marker of display box to be shown;Display box to be shown corresponding with station location marker is obtained, and is obtained
First boundary value corresponding with display box to be shown;Obtain the second boundary of the corresponding display window of display box to be shown
Value;When the difference of first boundary value and the second boundary value is more than preset value, then obtain corresponding with display box to be shown pre-
If display location;Display box to be shown is shown according to default display location.
In one embodiment, it is corresponding with display box to be shown to execute the acquisition realized when computer program for processor
First boundary value may include:Display to be shown is obtained by the detection function being arranged in container corresponding with display window
The corresponding first boundary value of frame;Then processor executes the acquisition the realized when computer program corresponding display of display box to be shown
The second boundary value of window may include:The second side of the corresponding display window of display box to be shown is obtained by detection function
Dividing value.
In one embodiment, processor execute realized when computer program by the way that corresponding with display window appearance is arranged
Before detection function in device obtains the corresponding first boundary value of display box to be shown, can also include:Obtain display window
Corresponding browser attribute;It is checked in display window container whether corresponding with the display window of setting according to browser attribute
Detection function is compatible with;When display window is compatible with detection function, continue through in setting container corresponding with display window
Detection function obtains the corresponding first boundary value of display box to be shown.
In one embodiment, that is realized when processor execution computer program checks display window according to browser attribute
Whether detection function in container corresponding with the display window of setting it is compatible after, can also include:When display window and inspection
When survey function is incompatible, generation error is reminded;Obtain the corresponding predeterminated position parameter of error prompting;Existed according to predeterminated position parameter
Error prompting is shown in display window.
In one embodiment, the default display location of basis realized when processor execution computer program shows to be shown
Display box, may include:Obtain the size of display window;According to the big of the size adjusting of display window display box to be shown
It is small;According to the size of the display box to be shown after adjustment display box to be shown is shown in default display location.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program realizes following steps when being executed by processor:Display box idsplay order is received, the carrying of display box idsplay order needs to be shown
The station location marker of the display box shown;Display box to be shown corresponding with station location marker is obtained, and is obtained and display to be shown
The corresponding first boundary value of frame;Obtain the second boundary value of the corresponding display window of display box to be shown;Work as first boundary value
When being more than preset value with the difference of the second boundary value, then default display location corresponding with display box to be shown is obtained;According to
Default display location shows display box to be shown.
In one embodiment, the acquisition realized when computer program is executed by processor is corresponding with display box to be shown
First boundary value, may include:To be shown show is obtained by the detection function being arranged in container corresponding with display window
Show the corresponding first boundary value of frame;The acquisition display box to be shown realized when then computer program is executed by processor is corresponding
The second boundary value of display window may include:The of the corresponding display window of display box to be shown is obtained by detection function
Two boundary values.
In one embodiment, that is realized when computer program is executed by processor is corresponding with display window by being arranged
Before detection function in container obtains the corresponding first boundary value of display box to be shown, can also include:Obtain display window
The corresponding browser attribute of mouth;It is checked in display window container whether corresponding with the display window of setting according to browser attribute
Detection function compatibility;When display window is compatible with detection function, continue through in setting container corresponding with display window
Detection function obtain the corresponding first boundary value of display box to be shown.
In one embodiment, that is realized when computer program is executed by processor checks display window according to browser attribute
Mouthful whether detection function in container corresponding with the display window of setting it is compatible after, can also include:When display window with
When detection function is incompatible, generation error is reminded;Obtain the corresponding predeterminated position parameter of error prompting;According to predeterminated position parameter
Error prompting is shown in display window.
In one embodiment, the default display location of basis realized when computer program is executed by processor, which is shown, to be waited showing
The display box shown may include:Obtain the size of display window;According to the size adjusting of display window display box to be shown
Size;According to the size of the display box to be shown after adjustment display box to be shown is shown in default display location.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Instruct relevant hardware to complete by computer program, computer program can be stored in a non-volatile computer readable
It takes in storage medium, the computer program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, this Shen
Any reference to memory, storage, database or other media used in each embodiment please provided, may each comprise
Non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above example can be combined arbitrarily, to keep description succinct, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield is all considered to be the range of this specification record.
Above example only expresses the several embodiments of the application, the description thereof is more specific and detailed, but can not
Therefore it is construed as limiting the scope of the patent.It should be pointed out that for those of ordinary skill in the art,
Under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection domain of the application.
Therefore, the protection domain of the application patent should be determined by the appended claims.
Claims (10)
1. a kind of display box processing method, the method includes:
Display box idsplay order is received, the display box idsplay order carries the station location marker of display box to be shown;
Obtain corresponding with station location marker display box to be shown, and acquisition corresponding with the display box to be shown the
One boundary value;
Obtain the second boundary value of the corresponding display window of the display box to be shown;
When the difference of the first boundary value and the second boundary value is more than preset value, then obtains and shown with described to be shown
Show the corresponding default display location of frame;
The display box to be shown is shown according to the default display location.
2. according to the method described in claim 1, it is characterized in that, described obtain corresponding with the display box to be shown the
One boundary value, including:
By the way that the detection function in container corresponding with the display window is arranged, it is corresponding to obtain the display box to be shown
First boundary value;
The second boundary value for obtaining the corresponding display window of the display box to be shown, including:
The second boundary value of the corresponding display window of the display box to be shown is obtained by the detection function.
3. according to the method described in claim 2, it is characterized in that, described by the way that container corresponding with the display window is arranged
In detection function obtain the corresponding first boundary value of the display box to be shown before, further include:
Obtain the corresponding browser attribute of the display window;
Display window container whether corresponding with the display window of the setting is checked according to the browser attribute
In detection function compatibility;
When the display window is compatible with the detection function, continue through in setting container corresponding with the display window
Detection function obtain the corresponding first boundary value of the display box to be shown.
4. according to the method described in claim 3, it is characterized in that, described check the display window according to the browser attribute
After whether mouth is compatible with the detection function in the corresponding container of the display window of the setting, further include:
When the display window and the detection function are incompatible, generation error is reminded;
Obtain the corresponding predeterminated position parameter of the error prompting;
The error prompting is shown in the display window according to the predeterminated position parameter.
5. according to the method described in claim 1, it is characterized in that, it is described according to the default display location show described in wait showing
The display box shown, including:
Obtain the size of the display window;
According to the size of display box to be shown described in the size adjusting of the display window;
According to the size of the display box to be shown after adjustment described to be shown show is shown in the default display location
Show frame.
6. a kind of program suspended frame managing device, which is characterized in that described device includes:
Receiving module, for receiving display box idsplay order, the display box idsplay order carries display box to be shown
Station location marker;
First boundary value acquisition module, for obtaining display box to be shown corresponding with the station location marker, and acquisition and institute
State the corresponding first boundary value of display box to be shown;
The second boundary value acquisition module, the second boundary value for obtaining the corresponding display window of the display box to be shown;
Position adjusting type modules, for when the difference of the first boundary value and the second boundary value is more than preset value, then obtaining
Take default display location corresponding with the display box to be shown;
Display module, for showing the display box to be shown according to the default display location.
7. device according to claim 6, which is characterized in that the first boundary value acquisition module is additionally operable to by setting
It sets the detection function in container corresponding with the display window and obtains the corresponding first boundary value of the display box to be shown;
The then the second boundary value acquisition module is additionally operable to obtain the display box correspondence to be shown by the detection function
Display window the second boundary value.
8. device according to claim 7, which is characterized in that described device further includes:
Attribute acquisition module, for obtaining the corresponding browser attribute of the display window;
Compatible detection module, for according to the browser attribute check the display window whether with described in the setting
Detection function compatibility in the corresponding container of display window;
Compatible execution module is shown for when the display window is compatible with the detection function, continuing through setting with described
Show that the detection function in the corresponding container of window obtains the corresponding first boundary value of the display box to be shown.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In when the processor executes the computer program the step of any one of realization claim 1 to 5 the method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claim 1 to 5 is realized when being executed by processor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810495104.2A CN108664310A (en) | 2018-05-22 | 2018-05-22 | Display box processing method, device, computer equipment and storage medium |
PCT/CN2018/096908 WO2019223093A1 (en) | 2018-05-22 | 2018-07-24 | Display box processing method, apparatus, computer device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810495104.2A CN108664310A (en) | 2018-05-22 | 2018-05-22 | Display box processing method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108664310A true CN108664310A (en) | 2018-10-16 |
Family
ID=63777415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810495104.2A Pending CN108664310A (en) | 2018-05-22 | 2018-05-22 | Display box processing method, device, computer equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108664310A (en) |
WO (1) | WO2019223093A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109871741A (en) * | 2018-12-28 | 2019-06-11 | 青岛海信电器股份有限公司 | The mask method and device of object are identified in a kind of image for smart television |
CN109933788A (en) * | 2019-02-14 | 2019-06-25 | 北京百度网讯科技有限公司 | Type determines method, apparatus, equipment and medium |
CN113490035A (en) * | 2021-07-16 | 2021-10-08 | 南京炫佳网络科技有限公司 | Display method, display device, television and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530026A (en) * | 2013-10-31 | 2014-01-22 | 北京国双科技有限公司 | Webpage pop-up box positioning method and device |
CN103678496A (en) * | 2013-11-18 | 2014-03-26 | 乐视网信息技术(北京)股份有限公司 | Method and system for adjusting screening display of search page |
CN106569651A (en) * | 2015-10-08 | 2017-04-19 | 北京国双科技有限公司 | Positioning method and device for page popup layer position |
CN107551547A (en) * | 2017-09-07 | 2018-01-09 | 网易(杭州)网络有限公司 | Game information display methods and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7487464B2 (en) * | 2006-02-16 | 2009-02-03 | International Business Machines Corporation | Enhanced visualization and selection of multi-layered elements in a containment hierarchy |
CN104978318B (en) * | 2014-04-02 | 2020-04-03 | 腾讯科技(深圳)有限公司 | Browser control method and browser control device |
CN104503682A (en) * | 2014-11-07 | 2015-04-08 | 联发科技(新加坡)私人有限公司 | Method for processing screen display window and mobile terminal |
-
2018
- 2018-05-22 CN CN201810495104.2A patent/CN108664310A/en active Pending
- 2018-07-24 WO PCT/CN2018/096908 patent/WO2019223093A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530026A (en) * | 2013-10-31 | 2014-01-22 | 北京国双科技有限公司 | Webpage pop-up box positioning method and device |
CN103678496A (en) * | 2013-11-18 | 2014-03-26 | 乐视网信息技术(北京)股份有限公司 | Method and system for adjusting screening display of search page |
CN106569651A (en) * | 2015-10-08 | 2017-04-19 | 北京国双科技有限公司 | Positioning method and device for page popup layer position |
CN107551547A (en) * | 2017-09-07 | 2018-01-09 | 网易(杭州)网络有限公司 | Game information display methods and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109871741A (en) * | 2018-12-28 | 2019-06-11 | 青岛海信电器股份有限公司 | The mask method and device of object are identified in a kind of image for smart television |
CN109933788A (en) * | 2019-02-14 | 2019-06-25 | 北京百度网讯科技有限公司 | Type determines method, apparatus, equipment and medium |
CN109933788B (en) * | 2019-02-14 | 2023-05-23 | 北京百度网讯科技有限公司 | Type determining method, device, equipment and medium |
CN113490035A (en) * | 2021-07-16 | 2021-10-08 | 南京炫佳网络科技有限公司 | Display method, display device, television and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2019223093A1 (en) | 2019-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106293315B (en) | Method and device for displaying floating window | |
CN104572042B (en) | The cross-platform middleware device and its implementation of mobile terminal device | |
US9026992B2 (en) | Folded views in development environment | |
US20140006986A1 (en) | Responsive graphical user interface | |
WO2017162061A1 (en) | Mixed view display method and device | |
US20110022957A1 (en) | Web browsing method and web browsing device | |
CN104699604B (en) | Method and device for testing the Android application that kernel is browsed based on customization | |
CN108664310A (en) | Display box processing method, device, computer equipment and storage medium | |
CN111767002B (en) | Page display method, device, equipment and storage medium | |
CN110276041A (en) | A kind of web data acquisition methods and system based on Google's browser plug-in | |
US9805016B2 (en) | Techniques to present a dynamic formula bar in a spreadsheet | |
CN111124564A (en) | Method and device for displaying user interface | |
CN110781427A (en) | Method, device, equipment and storage medium for calculating first screen time | |
DE112011102694T5 (en) | Portable electronic device and method for its control | |
CN108108417B (en) | Cross-platform adaptive control interaction method, system, equipment and storage medium | |
CN105653273A (en) | Personalized customizing method for client function under B/S architecture | |
CN109543171A (en) | A kind of electronic spreadsheet realization method and system of keyboard typing and writing signing | |
CN104007966B (en) | The Application Program Interface control information inspection method used based on exploitation | |
CN110598142A (en) | Webpage calibration method and device, computer equipment and storage medium | |
CN104899024A (en) | Screenshot method and device | |
CN106201185B (en) | Method and device for positioning input box in browser and mobile device | |
CN110908570B (en) | Image processing method, device, terminal and storage medium | |
CN103076964B (en) | Screen flipping method and device | |
CN110502174B (en) | Information display method and device, electronic equipment and storage medium | |
CN106095734B (en) | Text display 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181016 |