首页 新闻 会员 周边 捐助

手机访问网页如何正常显示列表

0
悬赏园豆:50 [已关闭问题] 关闭于 2016-08-05 10:58

这是原来在pc端看的,现在新建修改成在手机端可以正常看,怎么实现呢?

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Hc_DeploymentList.aspx.cs" Inherits="Hc_DeploymentList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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 id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />
    <link href="../../css/menu.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        var GB_ROOT_DIR = "../../greybox/";
    </script>
    <script type="text/javascript" src="../../greybox/AJS.js" charset="gb2312"></script>
    <script type="text/javascript" src="../../greybox/AJS_fx.js" charset="gb2312"></script>
    <script type="text/javascript" src="../../greybox/gb_scripts.js" charset="gb2312"></script>
    <script type="text/javascript" src="../../js/rl.js"></script>
    <link href="../../greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
    <script type="text/javascript">
    
function myrefresh() 
{ 
       window.location.reload(); 
} 
setTimeout('myrefresh()',300000); //指定1000=1秒刷新一次 


        //删除
        function deleteFileType() {
            var id = 0;
            var checks = document.getElementsByName("check");
            var length = checks.length;
            for (var i = 0; i < length; i++) {
                if (checks[i].checked == true) {
                    id = checks[i].value;
                    break;
                }
            }
            if (id != 0) {
                return confirm('删除后不可恢复,确定删除吗?');
            }
            else {
                alert("没有选择信息");
                return false;
            }
        }
        //选择所有
        function selectAll() {
            var check = document.getElementById("checkAll");
            var checks = document.getElementsByName("check");
            var state = check.checked;
            var length = checks.length;
            for (var i = 0; i < length; i++) {
                checks[i].checked = state;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table border="0" style="height: 38px" width="100%">
        <tr>
            <td class="path">
                当前位置:车辆申请
            </td>
        </tr>
    </table>
    <table width="98%" border="0" height="100%" cellpadding="0" cellspacing="0" align="center"
        class="list_table">
        <tr>
            <td height="30" style="font-size: 14px">
                <table>
                    <tr>
                        <td style="font-size: 14px">
                           
                            <asp:DropDownList runat="server" ID="dllcartype">
                            </asp:DropDownList>
                           
                        </td>
                         <td style="font-size: 14px">
                          
                            <asp:DropDownList runat="server" ID="dllcaryt">
                            </asp:DropDownList>
                           
                        </td>

                         <td style="font-size: 14px">
                          
                            <asp:DropDownList runat="server" ID="dllsqzt">
                            </asp:DropDownList>  </td>

                         <td style="font-size: 14px">
                            &nbsp;<asp:DropDownList runat="server" ID="ddlUnit">
                            </asp:DropDownList>  </td>

                         <td style="font-size: 14px">
                              &nbsp;使用时间:<asp:TextBox runat="server" ID="sysjs" MaxLength="40" 
                    onfocus="SelectDate(this.id);" Width="80px"></asp:TextBox>
                    --<asp:TextBox runat="server" ID="sysje" MaxLength="40" 
                    onfocus="SelectDate(this.id);" Width="80px"></asp:TextBox>
                        </td>

                        <td>
                            <asp:LinkButton runat="server" ID="btnSearch" class="btn" onmouseover="this.className='btn_hover'"
                                onmouseout="this.className='btn'" OnClick="btnSearch_Click"><img
                                src="../../img/icon/113.gif" border="0" />查 询</asp:LinkButton>
                            <a href="sq.aspx" runat="server" id="a_ADD" title="添加申请" 
                                class="btn" onmouseover="this.className='btn_hover'" onmouseout="this.className='btn'">
                                <img src="../../img/icon/add.gif" border="0" />添加申请</a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <asp:GridView ID="GV" runat="server" Width="100%" CssClass="gridview" AllowPaging="True"
                    OnRowDataBound="GV_RowDataBound" AutoGenerateColumns="False">
                    <Columns>
                        <asp:TemplateField HeaderText="序号" ItemStyle-HorizontalAlign="center" HeaderStyle-Width="40px">
                            <ItemTemplate>
                                <%# Eval("xh")%>
                            </ItemTemplate>
                            <HeaderStyle Width="5%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                          <asp:TemplateField HeaderText="使用时间" ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                               <%# Eval("sysj")%>
                                    <asp:Label runat="server" ID="lblID" Text='<%#Eval("id")%>' Visible="false"></asp:Label>                                       
                            </ItemTemplate>
                            <HeaderStyle Width="8%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                          <asp:TemplateField HeaderText="车辆类型" ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                                &nbsp;<%# Eval("cartype")%>
                            </ItemTemplate>
                            <HeaderStyle Width="8%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="车辆用途" ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                                &nbsp;<%# Eval("caryt")%>
                            </ItemTemplate>
                            <HeaderStyle Width="8%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                      
                        <asp:TemplateField HeaderText="目的地" ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                                &nbsp;<%# Eval("mdd")%>
                            </ItemTemplate>
                            <HeaderStyle Width="8%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                       
                        <asp:TemplateField HeaderText="申请人" ItemStyle-HorizontalAlign="center" HeaderStyle-Width="80">
                            <ItemTemplate>
                                &nbsp;<%# Eval("sqr")%>
                            </ItemTemplate>
                            <HeaderStyle Width="8%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                       <asp:TemplateField HeaderText="申请单位" ItemStyle-HorizontalAlign="center">
                            <ItemTemplate>
                                &nbsp;<%# Eval("num3")%>
                            </ItemTemplate>
                            <HeaderStyle Width="8%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="申请状态" ItemStyle-HorizontalAlign="center" HeaderStyle-Width="80">
                            <ItemTemplate>
                                &nbsp;
                                <%#((Grape.JG.Model.PubEnum.sqzt)int.Parse(Eval("sqzt").ToString())).ToString()%>
                                 <asp:Label runat="server" ID="labsqzt" Text='<%#Eval("sqzt")%>' Visible="false"></asp:Label> 
                                  <asp:Label runat="server" ID="uid" Text='<%#Eval("userid")%>' Visible="false"></asp:Label>  
                                   <asp:Label runat="server" ID="hid" Text='<%#Eval("hid")%>' Visible="false"></asp:Label>  
                                    <asp:Label runat="server" ID="fid" Text='<%#Eval("fid")%>' Visible="false"></asp:Label>     
                            </ItemTemplate>
                            <HeaderStyle Width="8%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                       
                        <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="center" HeaderStyle-Width="120px">
                            <ItemTemplate>
                                <a title="标准信息修改" runat="server" Visible="false" id="a_Edit" > <img src="../../img/icon/yuyue.gif" border="0" />修改</a> 
                                 <a title="标准信息查看"   runat="server" id="a_View"> <img src="../../img/icon/page_edit.gif" border="0" />查看</a>
                                  <a title="标准信息查看"   runat="server" id="a1" Visible="false"> <img src="../../img/icon/page_edit.gif" border="0" />查看</a>
                                <asp:LinkButton ID="delete" Visible="false" runat="server" OnClientClick="return confirm('删除后不可恢复,确定删除吗?');"
                                    OnCommand="GV_Command" CommandName="del" CommandArgument='<%# Eval("id")%>'><img
                                src="../../img/icon/Del.gif" border="0" />删除</asp:LinkButton>
                            </ItemTemplate>
                            <HeaderStyle Width="15%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center" valign="middle" style="background-color: White" height="25">
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="10" HorizontalAlign="Center"
                    OnPageChanging="AspNetPager1_PageChanging" ShowCustomInfoSection="Left" Width="95%"
                    meta:resourcekey="AspNetPager1" Style="font-size: 12px" CustomInfoHTML="共<b><font color='red'>%RecordCount%</font></b>条记录 当前页:<font color='red'><b>%CurrentPageIndex%/%PageCount%</b></font> 每页:%PageSize% 条"
                    AlwaysShow="True" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"
                    SubmitButtonText="确定" SubmitButtonClass="submitBtn" CustomInfoStyle="FONT-SIZE: 12px"
                    InputBoxStyle="width:30px; border:1px solid #999999; text-align:center; " TextBeforeInputBox="转到第"
                    TextAfterInputBox="">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
aCHENa的主页 aCHENa | 初学一级 | 园豆:5
提问于:2016-07-29 16:52
< >
分享
所有回答(2)
0

你可以在teble设置overflow:auto 设置滚动轴自动出现,这样的话可以在x轴上滚动出现,可以推动查看

shawn的博客 | 园豆:243 (菜鸟二级) | 2016-07-30 00:02
0

你是想让他pc,手机自适应吗???

顾晓北 | 园豆:10898 (专家六级) | 2016-08-01 11:12
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册