如何控制ASP.NET控件在页面中的位置 [英] How to control ASP.NET controls location in the page

查看:520
本文介绍了如何控制ASP.NET控件在页面中的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ASP.NET页面中控制网页控件位置的最佳方式是什么?



早在纯HTML中,我用它来执行表格。

这仍然是最好的方法吗?

预先感谢您,

Roy。

解决方案

官方表格已经死了。倾向于CSS定位。
WC3学校有一些关于如何使用的很好的材料。他们有一个页面内编辑器,这样你就可以在你的页面中使用它之前就可以放入代码并试用它。

 < ; myControl style =postion:absolute; left:80px; top:80px/> 


What is the best way to control the web controls position in ASP.NET page?

Back in the early days in pure HTML I use to do it with Table.

Is this still the best way?

Thank you in advance,

Roy.

解决方案

Officially, tables are dead. Prefer CSS posistioning. WC3 Schools has some nice material on how to use. They have an in-page editor so you can put in code and try it out before you use it in your page(s).

<myControl style="postion:absolute;left:80px;top:80px" />

这篇关于如何控制ASP.NET控件在页面中的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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