如何使用div标签或css在web表单中设置girdview的位置 [英] how to set position the girdview in web form using div tag or css
本文介绍了如何使用div标签或css在web表单中设置girdview的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用div标签或css
how to set position the girdview in web form using div tag or css
推荐答案
<div style="float:right">
<gridview />
</div>
如果您需要在页面中放置girdview,则需要为父控件应用样式,例如面板或div。
if you need to position the girdview in page, you need to apply styles for the parent control such as panel or div.
请参阅以下示例:
See the following example:
<!DOCTYPE html>
<html>
<head>
<style>
div#gridview1
{
position:absolute;
left:100px;
top:150px;
}
</style>
</head>
<body>
<div id="gridview1">
<p>place your gridview here</p>
</div>
</body>
</html>
这篇关于如何使用div标签或css在web表单中设置girdview的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文