| |

VerySource

 Forgot password?
 Register
Search
View: 766|Reply: 3

About the method of dynamically adding a control on the web side and setting the coordinate position of the control ???

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-5 00:00:02
| Show all posts |Read mode
rt, after dynamically adding a control in the browser-side panel, how to set its position, I tried to rewrite the style, but the x, y properties are read-only, master help! !! !!
Reply

Use magic Report

0

Threads

119

Posts

67.00

Credits

Newbie

Rank: 1

Credits
67.00

 China

Post time: 2020-6-19 19:15:01
| Show all posts
top
left attribute!
Reply

Use magic Report

0

Threads

15

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-6-19 19:45:01
| Show all posts
It seems that the style can only be modified manually, not in the code
The borderstyle etc. can be modified in the code

But I believe that as long as there is an object, there will be the existence of object-related properties and behaviors.

The solution is drip, etc...
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-23 01:45:02
| Show all posts
webcontrlName.Style["position"] = "absolute;";
webcontrlName.Style["top"]="100px";
You should know the others!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list