日期:2014-05-17  浏览次数:20409 次

asp.net页面加滚动条
以下是我的页面代码,请问如果给它加一个左右滚动条,gridview数据放不下了,页面是在ifram框架里的,请大家帮忙看看[code=HTML][/code]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title></title>
  <style type="text/css">
  body
  {
  font-family: "宋体";
  font-size: 12px;
  margin: 0px;
  }
  </style>
</head>
<body>
  <form id="form1" runat="server">
  <div>
  <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="grid"
  CellPadding="4" ForeColor="#333333" GridLines="None">
  <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
  <Columns>
  <asp:BoundField DataField="DateId" HeaderText="用户编号">
  <HeaderStyle Width="6%" HorizontalAlign="Center" />
  <ItemStyle Width="6%" HorizontalAlign="Center" />
  </asp:BoundField>
  <asp:BoundField DataField="DemandSideType" HeaderText="类型">
  <HeaderStyle Width="8%" HorizontalAlign="Center" />
  <ItemStyle Width="8%" HorizontalAlign="Center" />
  </asp:BoundField>
  <asp:BoundField DataField="UrgentDegree" HeaderText="紧急程度">
  <HeaderStyle Width="8%" HorizontalAlign="Center" />
  <ItemStyle Width="8%" HorizontalAlign="Center" />
  </asp:BoundField>
  <asp:BoundField DataField="ProductName" HeaderText="产品">
  <HeaderStyle Width="8%" HorizontalAlign="Center" />
  <ItemStyle Width="8%" HorizontalAlign="Center" />
  </asp:BoundField>
  <asp:BoundField DataField="Demandcontent" HeaderText="需求内容">
  <HeaderStyle Width="8%" HorizontalAlign="Center" />
  <ItemStyle Width="8%" HorizontalAlign="Center" />
  </asp:BoundField>
  <asp:BoundField DataField="DemandFujian" HeaderText="附件">
  <HeaderStyle Width="8%" HorizontalAlign="Center" />
  <ItemStyle Width="8%" HorizontalAlign="Center" />
  </asp:BoundField>
  <asp:BoundField DataField="Proponent" HeaderText="提出人">
  <HeaderStyle Width="8%" HorizontalAlign="Center" />
  <ItemStyle Width="8%" HorizontalAlign="Center" />
  &