Проблема с ASP. net главной страницей сайта и шириной сайта. - PullRequest
0 голосов
/ 11 января 2020

Я работаю над сайтом здесь: www.netherlandrubber.com

Я обновил файлы CSS и .HTM сайта, чтобы изменить ширину сайта до 96% (таблицы в .htm файлы, а также в CSS). Но когда я загружаю его на сервер для тестирования, он все равно ограничивается рамкой таблицы. Однако в настоящее время мне не разрешается оставлять файлы .htm и. css на работающем сервере, когда я не тестирую, поэтому вы не сможете увидеть изменения в файлах. css и .htm. в настоящее время на живом сервере - но когда я тестирую их самостоятельно, они позволяют сайту ширину от go до 96% - он просто ограничивает его после загрузки на сервер - как только мастер-страница будет применена к нему, я думаю.

Я предполагаю, что это из-за мастер-страницы, но я не уверен.

Код в default.aspx:

<%@ Page Language="vb" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" enableViewState="False" %>

Код в мастере Страница:

<%@ master language="vb" autoeventwireup="false" enableviewstate="True" inherits="_MasterPage, App_Web_pp4i5ajr" %>

<asp:ContentPlaceHolder ID="ContentPlaceHolderHTMLHeadResponsive" runat="server"></asp:ContentPlaceHolder>  

<asp:placeholder runat="server" ID="plhdrHTMLHeadResponsive"></asp:placeholder>

<script type="text/javascript">

    try {

        var oWaitMsg;



        if (document.getElementById) {

            oWaitMsg = document.getElementById("waitmsg");

            if (oWaitMsg)

                oWaitMsg.parentNode.removeChild(oWaitMsg);

        }

        else if (document.all) {

            oWaitMsg = document.all["waitmsg"];

            if (oWaitMsg)

                oWaitMsg.parentNode.removeChild(oWaitMsg);

        }

    }

    catch (e) {

    }

</script>

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">

<script src="SystemFolders/Toolbar/js/tokenManager.js"></script>

  <asp:placeholder runat="server" ID="plhdrHeaderResponsive"></asp:placeholder>

<aside class="P21SystemLSide navbar-left">

    <asp:placeholder runat="server" ID="plhdrLSideResponsive"></asp:placeholder>

</aside>

<main class="P21SystemContent">

    <asp:contentplaceholder runat="server" ID="plhdrContentResponsive"></asp:contentplaceholder>

</main>

<aside class="P21SystemRSide navbar-right">

    <asp:placeholder runat="server" ID="plhdrRSideResponsive"></asp:placeholder>

</aside>

  <asp:placeholder runat="server" ID="plhdrFooterResponsive"></asp:placeholder>

<%  If ShowPrintableVersion Then

%>

<script language="javascript">

    ModifyMainTable(true,<%=ShowHeaderInPrintableVersion.ToString().ToLower()%>);

</script>

<%        

End If

%>

<!-- End Of Page Specific Content -->

<head>

    <asp:ContentPlaceHolder ID="ContentPlaceHolderHTMLHead" runat="server"></asp:ContentPlaceHolder>  

    <asp:placeholder runat="server" ID="plhdrHTMLHead"></asp:placeholder>

    <script type="text/javascript">

        try {

            var oWaitMsg;



            if (document.getElementById) {

                oWaitMsg = document.getElementById("waitmsg");

                if (oWaitMsg)

                    oWaitMsg.parentNode.removeChild(oWaitMsg);

            }

            else if (document.all) {

                oWaitMsg = document.all["waitmsg"];

                if (oWaitMsg)

                    oWaitMsg.parentNode.removeChild(oWaitMsg);

            }

        }

        catch (e) {

        }



    </script>

</head>

<body runat="server" id = "BodyMaster">



<asp:placeholder runat="server" ID="GoogleTagManager"></asp:placeholder>



<!-- Epicor B2B Seller Website -->

    <!-- Begin Page Specific Content -->

    <table id="MainTable" class="P21Main" CellPadding="0" CellSpacing="0">  

            <tr class="P21MainTR">

                <td class="P21MainTD" valign="Top">

                    <table ID="Table1" class="P21SystemHeader" CellSpacing="0" CellPadding="0">

                        <tr ID="Tablerow1">

                            <td ID="Tablerow1cell1">

                                <!-- Begin Header Specific Content -->

                                <asp:placeholder runat="server" ID="plhdrHeader"></asp:placeholder>

                            </td>

                        </tr>

                    </table>

                    <table ID="Table2" class="P21SystemBody" CellSpacing="0" CellPadding="0">

                        <tr ID="Tablerow2">

                            <td ID="Tablerow2cell1" valign="Top" class="P21SystemLSide">

                                <!-- Begin Left Side Specific Content -->

                                <asp:placeholder runat="server" ID="plhdrLSide"></asp:placeholder>

                            </td>

                            <td ID="Tablerow2cell2" valign="Top" class="P21SystemContent">

                                <!-- Begin Content Area Specific Content -->

                                <asp:contentplaceholder runat="server" ID="plhdrContent"></asp:contentplaceholder>

                            </td>

                            <td ID="Tablerow2cell3" class="P21SystemRSide">

                                <!-- Begin Right Side Specific Content -->

                                <asp:placeholder runat="server" ID="plhdrRSide"></asp:placeholder>

                            </td>

                        </tr>

                    </table>

                    <table ID="Table3" class="P21SystemFooter" CellSpacing="0" CellPadding="0">

                        <tr  ID="Tablerow3">

                            <td ID="Tablerow3cell1">

                                <!-- Begin Footer Specific Content -->

                                <asp:placeholder runat="server" ID="plhdrFooter"></asp:placeholder>

                            </td>

                        </tr>

                    </table>

                </td>

            </tr>

        </table>

        <%  If ShowPrintableVersion Then

                %>

                <script language="javascript">

                    ModifyMainTable(true,<%=ShowHeaderInPrintableVersion.ToString().ToLower()%>);

                </script>

                <%        

            End If

        %>

        <!-- End Of Page Specific Content -->

</body>

Как установить в процентах, если это не сделано с помощью CSS и редактирования файлов .htm?

...