如何使数据列表出现在屏幕上的所需位置

问题描述:

我想在以下代码中的'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