用DataList,将RepeatDirection设为Horizontal,RepeatColumns设为2。
解决方案 »
- 循环在地图上添加标注,并且当mouseover时为标注添加信息框
- HttpModule中进行了url重写,没有aspx,如何访问到session?
- |zyciis| 指定的用户控件回车时执行指定的按钮 第五贴 用onkeyup不行,因为如果我按着“回车”不放的话还是会执行默认按钮
- 工具箱里面的东西不见
- 求教 asp.net mvc3 路由设置入下效果
- 诚心求问:DataList里的CheckBox状态控制问题!!!20分全送了!!!!
- 如何动态更新web.sitemap?
- 关于HTML&CSS的小问题...刚才那样行不通哦..
- 送给你朋友 七夕节的礼物! http://www.dapinpai.com/1983.htm
- Atlas刷新问题。高手来啊
- 不明白代码的含义?
- 附件上传并保存到数据库的问题
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style>
.td1{ border-top-width:0}
.td2{ border-bottom-width:0}
</style>
</head><body>
<table width="200" border="1" cellpadding="0" cellspacing="0
">
<caption>
aaa
</caption>
<tr >
<th scope="row" class="td1">1</th>
<td class="td1">2</td>
<td class="td1">3</td>
</tr>
<tr>
<th scope="row" class="td2">4</th>
<td class="td2">5</td>
<td class="td2">6</td>
</tr>
<tr>
<th scope="row" class="td1">7</th>
<td class="td1">8</td>
<td class="td1">9</td>
</tr></table>
</body>
</html>//用DataGrid时在ItemCreate事件中将 Item.Cells里的每个TabelCell的cssclass 普通项为td1,交替项为td2。
{
if(e.Item .ItemType ==ListItemType.Item)
{
foreach(TableCell tc in e.Item.Cells )
{
tc.CssClass ="td2";
}
}
if(e.Item .ItemType ==ListItemType.AlternatingItem )
{
foreach(TableCell tc in e.Item .Cells )
{
tc.CssClass ="td1";
}
}
}