1

私は Visual Studio 2012 を使用しており、Web サイトのマスターページを作成しました。他のすべてのページは正常に機能していますが、1 ページだけが私を夢中にさせます。

.aboutus
{ margin: auto;
font-family: 'Bookman Old Style';
font-style: normal;
font-weight: 100;
max-height:700px;
overflow:scroll;
overflow-x:hidden;}

.aboutus h1, .aboutus h2, .aboutus h3
{
    color:blue;
    font-style:italic;
    font-weight: 500;}

この css クラスを使用すると、IE では問題なく動作しますが、Chrome または mozilla では何も表示されません。.aboutus css クラスから内容を削除しても、同じ問題が発生します。

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="aboutus">
<h1>About us…&lt;/h1>
<p>Regional Automotive was started in 1994 at it’s current location in Ottawa 
    as a sister c..........
 </div></asp:Content>

私のasp:コンテンツはマスターページからのものです

<div class="main-content">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"></asp:ContentPlaceHolder>
 </div> 

私はマスターページでこれを使用しているので、すべてのページに同じことを何度も書く必要はありません

.main-content
{display:block;
background-color:transparent;
min-height: 700px;
max-height:700px;
margin-left:2px;
margin-top:68px;}   

これが問題を引き起こしている可能性があります。

4

1 に答える 1