2014-10-12 79 views
0

早安,幫助F可SharePoint 2010的母版頁頁腳 - 自定義表

點點。我已經使用頁腳定製了我的SharePoint主頁。這個頁腳有一個表格,它被分成了幾列。

在其中一列中,我添加了3個自定義搜索框,sharepoint 2010打擊計數器webpart以及一些文本和徽標。

但是,當我發佈此頁面時,並不是所有這些元素都顯示出來。我知道頁面會加載它們,因爲我查看頁面的源代碼時可以看到它們,所以我猜測它們隱藏在第一個元素下。

封閉的是我在此表中使用的代碼。如果任何人能夠提供一些建議,我會很感激。

<table width="350" border="0" cellspacing="0" cellpadding="1"> 
     <div> 
     <tr> 
     <td style="height: 22px"> 

<form action="http://bbmmtoday.bbmmjv.com/_layouts/searchresults.aspx"> 
    <input type=text name=k placeholder="enter search..." size="32" id=k class="search"><input type="submit" value="search" class="button" > 
     </form></td> 
     </tr> 

     <tr> 
     <td> 

&nbsp;</td> 
     </tr> 

     <td> 

<form action="http://bbmmtoday.bbmmjv.com/_layouts/searchresults.aspx"> 
    <input type=text name=k placeholder="enter search..." size="32" id=k class="search"><input type="submit" value="search" class="button" > 
     </form></td> 
     </tr> 
     <tr> 

     <td> 

&nbsp;</td> 
     </tr> 
     <td> 

<form action="http://bbmmtoday.bbmmjv.com/_layouts/searchresults.aspx"> 
    <input type=text name=k placeholder="enter search..." size="32" id=k class="search"><input type="submit" value="search" class="button" > 
     </form></td> 

     </div> 
     <tr> 
<td> 

&nbsp;</td> 

     </tr> 
     <tr> 
<td> 

&nbsp;</td> 

     </tr> 
     <tr> 
<td> 

&nbsp;</td> 

     </tr> 
     <tr> 
<td> 

         <span lang="en-gb"> 
<AEPageHitsWebpart:AEPageHits runat="server" Description="Displays the page hit count of the current page" Options="" Title="AE Page Hits Web Part" ImportErrorMessage="Cannot import the AE Page Hits Web Part." IsActive="True" SinceDate="10/11/2014 10:00:00" ChromeType="TitleAndBorder" Template="&lt;div style=&quot;height: 20px; width:200px;background-color:#fead30; Segoe UI;font-family: arial; font-size: 14px; color:#2e3e3f;padding:6px&quot;&gt;&lt;strong&gt;{hits}&lt;/font&gt;&lt;/strong&gt; Page hits since {since}&lt;br&gt;" ID="g_a2b9d6ba_62b2_41b5_8536_21e1972eab00" WebPart="true" __WebPartId="{a2b9d6ba-62b2-41b5-8536-21e1972eab00}" __MarkupType="vsattributemarkup" __designer:IsClosed="false"></AEPageHitsWebpart:AEPageHits></span> 

     </td> 

     </tr> 
     <tr> 
     <td valign="top"> 
           &nbsp;</td> 
     </tr> 
     <tr> 
     <td valign="top"> 
           <span lang="en-gb">&nbsp;Created by <strong> 
           <a href="mailto:%[email protected]" class="style4">Ray 
           Spiteri</a></strong> and <strong> 
           <a href="mailto:%[email protected]" class="style4">Tim Quadling</a></strong></span></td> 
     </tr> 
     <tr> 
     <td valign="top"> 
           &nbsp;</td> 
     </tr> 
     <tr> 
     <td valign="top"> 

         <img alt="" valign="bottom" align="left" src="http://bbmmtoday.bbmmjv.com/SiteAssets/bbmm%20logo.png" width="286" height="26" /></td> 
     </tr> 
     <tr> 
     <td> 
<AEPageHitsWebpart:AEPageHits runat="server" Description="Displays the page hit count of the current page" Options="" Title="AE Page Hits Web Part" ImportErrorMessage="Cannot import the AE Page Hits Web Part." IsActive="False" SinceDate="10/11/2014 09:00:00" ChromeType="None" Template="Page Hits: {hits}" ID="g_5e6becd0_a22c_4549_8b43_f9a7c860a639" WebPart="true" __WebPartId="{5e6becd0-a22c-4549-8b43-f9a7c860a639}" __MarkupType="vsattributemarkup" __designer:IsClosed="false"></AEPageHitsWebpart:AEPageHits></td> 
     </tr> 
    </table></td> 
    </tr> 
</table> 

回答

0

有你的HTML 3個可疑的東西:在結束 和和

  • 兩個元素之間
  • 解除配對
  • 結束元素之後

    • 元素,而只有1開

    所有這些HTML錯誤都意味着它在瀏覽器上的呈現方式。大部分情況都是「錯誤的」。因爲這是不正確的。