2011-07-25 9 views
0

これは投稿時の初めてのことですので、私が何かしたことがあれば教えてください:)コンテンツが正しく表示されず、div幅がページ全体に伸びない

オレンジ色のdivがページ全体に広がっていないことが画像に表示されます。私は何がここで間違っているのか分かりません。

マスターページのCSSのコード:

<style type="text/css"> 

    .li 
    { 
     height: 180px; 
    } 

    .productlist li 
    { 
     display: inline; 
     float: left; 
    } 
    #enlarge 
    { 
     height: 50px; 
     width: 400px; 
    } 
    .newStyle1 
    { 
     text-align: center; 
    } 
</style> 

コード問題のdivのために:

  <div style="height: 387px; background-color: #C0C0C0;"> 
<div style="width: 737px; padding-bottom: 10px;"><asp:Image ID="Image1" ImageUrl ="~/Images/Logo.png" 
     runat = "server" Width="137px" /> 
    <div style="float: right; width: 241px; position: absolute; top: 19px; left: 503px; bottom: 528px;"> 
     <img alt="" /> </div></div> 
    <div style="height: 548px; float: left; width: 142px;"> 

     <asp:Menu ID="Menu1" runat="server"> 
      <Items> 
       <asp:MenuItem Text="Home" Value="Home"></asp:MenuItem> 
       <asp:MenuItem Text="Online Selection" Value="Online Selection"></asp:MenuItem> 
       <asp:MenuItem Text="Online Registration" Value="Online Registration"> 
       </asp:MenuItem> 
       <asp:MenuItem Text="Change Request" Value="Change Request"></asp:MenuItem> 
       <asp:MenuItem Text="Event Schedules" Value="Event Schedules"></asp:MenuItem> 
       <asp:MenuItem Text="Diploma Plus" Value="Diploma Plus"></asp:MenuItem> 
       <asp:MenuItem Text="Contacts" Value="Contacts"></asp:MenuItem> 
      </Items> 
     </asp:Menu> 

     </div> 
    <div style="height: 20px; width: 595px"> 


     <div id = "words" style="background-color: #FF9900;"> 
     <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> 
    </asp:ContentPlaceHolder> 
    </div> 


</div> 
+0

ここに関連コードはありません。あなたの質問を絞り込みます。 – leppie

答えて

0

<のdivのid = "単語を取り巻くいくつかの要素が最も可能性があります"要素は幅を拘束します。右クリックして、Google Chromeの「inspect-element」を選択すると、何らかの光が当たってしまう可能性があります。

+0

代替品はありますか?私はChromeを持っていないので、特定の理由でインストールすることはできません。 – ArcNine

+0

画像が死んでいる/ログインが必要 – zentenk

+0

私はリンクをphotobucketリンクに置き換えました。 – ArcNine

関連する問題