拖动并生成控件 [英] Dragging and generating a control

查看:72
本文介绍了拖动并生成控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!!!我是Web开发的新手,但我停留在某个地方.

我有一个包含多个div部分的页面,分别是Top,Left,Middle和Right.在左边的div部分中,我具有可以拖动到中间部分的所有控件的图像,例如TextBox,ComboBox,ListBox,TextArea,RadioButton.

我已经在运行时生成了这些控件,即,我生成了一个div部分,并且在该区域中保留了该控件以及该控件的关联文本,但是现在我在那里遇到定位问题.

任何人都可以帮助这些控件的生成和放置,并且在拖动时也要注意现有控件.控件不应重叠,并且不能根据所关注控件的大小进行调整.

我知道我要求很多,但是我已经浪费了很多时间来找出这些问题的解决方案,所以请帮助我..



谢谢!!!

HI!!! I am new to web development and i am stuck at a point.

I have a page with multiple div sections Top,Left,Middle and Right.In the left div section I have images of all the controls that could be dragged in the middle section like TextBox,ComboBox,ListBox,TextArea,RadioButton.

I have generated these controls at runtime i.e, i have generated a div section and in that area i have kept that control and the associated text of the control, but now i am facing problem with there positioning.

Can any1 help with the generation and placing of these controls and also the care is to be taken for the existing control while dragging..the controls should not overlap and adjust according to the size of the respected control..

I know i am asking for much but I have wasted many days in figuring out solutions of these problems so please do help me..



thanks!!!

推荐答案

尝试将CS​​S代码嵌入动态输出中.
Try to embed the CSS code to the dynamic output.


这篇关于拖动并生成控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆