此CSS适用于MVC2应用程序中的DIV.overflow:auto行为div添加了一个水平滚动条,因为div中的表非常宽并且超出了页面的边缘.
#main
{
padding: 30px 30px 15px 30px;
overflow:auto;/* this adds horizontal scroll*/
background-color: #fff;
margin-bottom: 30px;
_height: 1px; /* only IE6 applies CSS properties starting with an underscore */
}
Run Code Online (Sandbox Code Playgroud)
最终会堆叠多个表格,水平滚动条将位于屏幕底部之下.
有没有办法允许用户在div中单击并拖动以使其滚动而不是实际必须单击滚动条?
我的任务是在sharepoint中开发一个时间表应用程序.目前我们使用带有标准类别列表的电子表格,然后我们添加我们正在处理的各种子类别/项目/任务和我们的工时.
我主要构建了asp.net应用程序.我的问题是你认为这种类型的应用程序可以使用sharepoint使用sharepoint中的标准列表和项目构建而无需编写代码吗?
我觉得使用sharepoint无法很好地工作.
我有这个代码,它基于gridview的选定行中的单元格填充文本框
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
txtComment.Text = row.Cells[14].Text.Trim();
}
Run Code Online (Sandbox Code Playgroud)
如果Cell [14]没有数据,它将显示在txtComment文本框中.
当所选行的单元格中没有数据时,有没有办法防止出现?
编辑我试过这个并没有用
if (row.Cells[14].Text.Trim().Length > 1)
{
txtComment.Text = row.Cells[14].Text.Trim();
}
else
{
txtComment.Text = row.Cells[14].Text = "";
}
Run Code Online (Sandbox Code Playgroud)
================================================== =================
这很有效
if (row.Cells[14].Text.Trim()!=" ")
{
txtComment.Text = row.Cells[14].Text.Trim();
}
else
{
txtComment.Text = row.Cells[14].Text = "";
}
Run Code Online (Sandbox Code Playgroud) 有没有办法使用iframe或其他方法显示来自其他网站的命名div?
我想从政府网站将一些数据输入谷歌地图,当他们点击该点时,我希望显示该页面上某个div的信息.
asp.net ×1
c# ×1
css ×1
google-maps ×1
gridview ×1
html ×1
iframe ×1
javascript ×1
sharepoint ×1