如何使数据列表出现在屏幕上的所需位置 [英] How to make a datalist to appear at desired location on the screen
本文介绍了如何使数据列表出现在屏幕上的所需位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在以下代码中的'top:200px'和'left:300px;'中显示数据列表。我无法找到datalist的'style'。如何让datalist出现在所需的位置。
< asp:DataList ID =DataList1runat =serverRepeatColumns =2RepeatDirection =水平>
谢谢
I want to display the datalist at 'top:200px' and 'left:300px;' in the following code. I could not find 'style' for datalist. How to make the datalist to appear at desired location.
<asp:DataList ID="DataList1" runat="server" RepeatColumns="2" RepeatDirection="Horizontal" >
Thanks
推荐答案
使用css
margin-top:200px;
和
and
margin-left:300px;
或但是DataList变成了div
or but that DataList into a div
这篇关于如何使数据列表出现在屏幕上的所需位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文