none
SharePoint2013 网站集绑定主机头后日历视图的html结构变化 RRS feed

  • 问题

  • 最近在做一个项目的时候,遇到一个很奇妙的问题,在开发环境中,创建了一个工作组网站集,并在网站中创建了一个日历列表,使用机器名方式访问日历视图显示正常。当绑定主机头后,使用主机头地址访问该日历列表,视图的HTML结构发生变化,求高手指教,这是什么原因导致的。


    2015年3月19日 10:07

全部回复

  • 使用机器名访问日历列表HTML代码:

    <div class="noindex " id="WebPartWPQ2" style="overflow: auto; display: block; ;" allowdelete="false" width="100%" haspers="false" webpartid="ebbde356-906e-4794-b0e1-0fb44054bd21" allowexport="false"><span></span><span>
    	<div id="AsynchronousViewDefault_CalendarView">
    	<div class="ms-acal-header" width="100%">
    	<table width="100%" cellspacing="0" cellpadding="0"><tbody><tr>
    	  <td style="width: 24px;"><a title="上个月" id="WPQ2_nav_prev_a" href="javascript:MoveToDate('2015\u002f2\u002f19','WPQ2');"><img width="19" height="19" id="WPQ2_nav_prev_img" src="/_layouts/15/2052/images/calprev.png" )=""></a></td>
    	  <td style="width: 24px;"><a title="下个月" id="WPQ2_nav_next_a" href="javascript:MoveToDate('2015\u002f4\u002f19','WPQ2');"><img width="19" height="19" id="WPQ2_nav_next_img" src="/_layouts/15/2052/images/calnext.png"></a></td>
    	  <td><span class="ms-acal-display" id="WPQ2_nav_header">
    		2015年3月
    	  </span></td>
    	  <td align="right" class="ms-acal-headerentity" id="WPQ2_entitySpan"></td>
    	</tr></tbody></table>
    	</div>
    	<div class="ms-acal-error" id="WPQ2_err" style="display: none;"></div>
    	<div class="ms-acal-rootdiv" id="ctl00_ctl31_g_ebbde356_906e_4794_b0e1_0fb44054bd21_ctl01_ctl00_ctl00" ctxid="WPQ2"><table width="100%" class="ms-acal-month" cellspacing="0" cellpadding="0" summary="每月图形日历视图">
    	<tbody><tr>
    		<th></th><th class="ms-acal-month-top"><nobr><span>星期一</span></nobr></th><th class="ms-acal-month-top"><nobr><span>星期二</span></nobr></th><th class="ms-acal-month-top"><nobr><span>星期三</span></nobr></th><th class="ms-acal-month-top"><nobr><span>星期四</span></nobr></th><th class="ms-acal-month-top"><nobr><span>星期五</span></nobr></th><th class="ms-acal-month-top"><nobr><span>星期六</span></nobr></th><th class="ms-acal-month-top"><nobr><span>星期日</span></nobr></th>
    	</tr><tr class="ms-acal-summary-dayrow">
    		<th title="2月23日 - 3月1日" rowspan="2" evtid="week" date="2015/2/23"><div class="ms-acal-month-weeksel">
    
    		</div></th><td evtid="day" date="2015/2/23"><div>
    			<nobr>23 </nobr>
    		</div></td><td evtid="day" date="2015/2/24"><div>
    			<nobr>24 </nobr>
    		</div></td><td evtid="day" date="2015/2/25"><div>
    			<nobr>25 </nobr>
    		</div></td><td evtid="day" date="2015/2/26"><div>
    			<nobr>26 </nobr>
    		</div></td><td evtid="day" date="2015/2/27"><div>
    			<nobr>27 </nobr>
    		</div></td><td evtid="day" date="2015/2/28"><div>
    			<nobr>28 </nobr>
    		</div></td><td evtid="day" date="2015/3/1"><div>
    			<nobr>1 </nobr>
    		</div></td>
    	</tr><tr class="ms-acal-summary-itemrow">
    		<td><div class="ms-acal-outday">
    
    		</div></td><td><div class="ms-acal-outday">
    
    		</div></td><td><div class="ms-acal-outday">
    
    		</div></td><td><div class="ms-acal-outday">
    
    		</div></td><td><div class="ms-acal-outday">
    
    		</div></td><td><div class="ms-acal-outday">
    
    		</div></td><td><div class="ms-acal-day0">
    
    		</div></td>
    	</tr><tr class="ms-acal-summary-dayrow">
    		<th title="3月2日 - 3月8日" rowspan="2" evtid="week" date="2015/3/2"><div class="ms-acal-month-weeksel">
    
    		</div></th><td evtid="day" date="2015/3/2"><div>
    			<nobr>2 </nobr>
    		</div></td><td evtid="day" date="2015/3/3"><div>
    			<nobr>3 </nobr>
    		</div></td><td evtid="day" date="2015/3/4"><div>
    			<nobr>4 </nobr>
    		</div></td><td evtid="day" date="2015/3/5"><div>
    			<nobr>5 </nobr>
    		</div></td><td evtid="day" date="2015/3/6"><div>
    			<nobr>6 </nobr>
    		</div></td><td evtid="day" date="2015/3/7"><div>
    			<nobr>7 </nobr>
    		</div></td><td evtid="day" date="2015/3/8"><div>
    			<nobr>8 </nobr>
    		</div></td>
    	</tr><tr class="ms-acal-summary-itemrow">
    		<td><div class="ms-acal-day1">
    
    		</div></td><td><div class="ms-acal-day2">
    
    		</div></td><td><div class="ms-acal-day3">
    
    		</div></td><td><div class="ms-acal-day4">
    
    		</div></td><td><div class="ms-acal-day5">
    
    		</div></td><td><div class="ms-acal-day6">
    
    		</div></td><td><div class="ms-acal-day0">
    
    		</div></td>
    	</tr><tr class="ms-acal-summary-dayrow">
    		<th title="3月9日 - 3月15日" rowspan="2" evtid="week" date="2015/3/9"><div class="ms-acal-month-weeksel">
    
    		</div></th><td evtid="day" date="2015/3/9"><div>
    			<nobr>9 </nobr>
    		</div></td><td evtid="day" date="2015/3/10"><div>
    			<nobr>10 </nobr>
    		</div></td><td evtid="day" date="2015/3/11"><div>
    			<nobr>11 </nobr>
    		</div></td><td evtid="day" date="2015/3/12"><div>
    			<nobr>12 </nobr>
    		</div></td><td evtid="day" date="2015/3/13"><div>
    			<nobr>13 </nobr>
    		</div></td><td evtid="day" date="2015/3/14"><div>
    			<nobr>14 </nobr>
    		</div></td><td evtid="day" date="2015/3/15"><div>
    			<nobr>15 </nobr>
    		</div></td>
    	</tr><tr class="ms-acal-summary-itemrow">
    		<td><div class="ms-acal-day1">
    
    		</div></td><td><div class="ms-acal-day2">
    
    		</div></td><td><div class="ms-acal-day3">
    
    		</div></td><td><div class="ms-acal-day4">
    
    		</div></td><td><div class="ms-acal-day5">
    
    		</div></td><td><div class="ms-acal-day6">
    
    		</div></td><td><div class="ms-acal-day0">
    
    		</div></td>
    	</tr><tr class="ms-acal-summary-dayrow">
    		<th title="3月16日 - 3月22日" rowspan="2" evtid="week" date="2015/3/16"><div class="ms-acal-month-weeksel">
    
    		</div></th><td evtid="day" date="2015/3/16"><div>
    			<nobr>16 </nobr>
    		</div></td><td evtid="day" date="2015/3/17"><div>
    			<nobr>17 </nobr>
    		</div></td><td evtid="day" date="2015/3/18"><div>
    			<nobr>18 </nobr>
    		</div></td><td evtid="day" date="2015/3/19"><div class="ms-acal-today">
    			<nobr>19 </nobr>
    		</div></td><td evtid="day" date="2015/3/20"><div>
    			<nobr>20 </nobr>
    		</div></td><td evtid="day" date="2015/3/21"><div>
    			<nobr>21 </nobr>
    		</div></td><td evtid="day" date="2015/3/22"><div>
    			<nobr>22 </nobr>
    		</div></td>
    	</tr><tr class="ms-acal-summary-itemrow">
    		<td><div class="ms-acal-day1">
    
    		</div></td><td><div class="ms-acal-day2">
    
    		</div></td><td><div class="ms-acal-day3">
    
    		</div></td><td><div class="ms-acal-day4">
    
    		</div></td><td><div class="ms-acal-day5">
    
    		</div></td><td><div class="ms-acal-day6">
    
    		</div></td><td><div class="ms-acal-day0">
    
    		</div></td>
    	</tr><tr class="ms-acal-summary-dayrow">
    		<th title="3月23日 - 3月29日" rowspan="2" evtid="week" date="2015/3/23"><div class="ms-acal-month-weeksel">
    
    		</div></th><td evtid="day" date="2015/3/23"><div>
    			<nobr>23 </nobr>
    		</div></td><td evtid="day" date="2015/3/24"><div>
    			<nobr>24 </nobr>
    		</div></td><td evtid="day" date="2015/3/25"><div>
    			<nobr>25 </nobr>
    		</div></td><td evtid="day" date="2015/3/26"><div>
    			<nobr>26 </nobr>
    		</div></td><td evtid="day" date="2015/3/27"><div>
    			<nobr>27 </nobr>
    		</div></td><td evtid="day" date="2015/3/28"><div>
    			<nobr>28 </nobr>
    		</div></td><td evtid="day" date="2015/3/29"><div>
    			<nobr>29 </nobr>
    		</div></td>
    	</tr><tr class="ms-acal-summary-itemrow">
    		<td><div class="ms-acal-day1">
    
    		</div></td><td><div class="ms-acal-day2">
    
    		</div></td><td><div class="ms-acal-day3">
    
    		</div></td><td><div class="ms-acal-day4">
    
    		</div></td><td><div class="ms-acal-day5">
    
    		</div></td><td><div class="ms-acal-day6">
    
    		</div></td><td><div class="ms-acal-day0">
    
    		</div></td>
    	</tr><tr class="ms-acal-summary-dayrow">
    		<th title="3月30日 - 4月5日" rowspan="2" evtid="week" date="2015/3/30"><div class="ms-acal-month-weeksel">
    
    		</div></th><td evtid="day" date="2015/3/30"><div>
    			<nobr>30 </nobr>
    		</div></td><td evtid="day" date="2015/3/31"><div>
    			<nobr>31 </nobr>
    		</div></td><td evtid="day" date="2015/4/1"><div>
    			<nobr>1 </nobr>
    		</div></td><td evtid="day" date="2015/4/2"><div>
    			<nobr>2 </nobr>
    		</div></td><td evtid="day" date="2015/4/3"><div>
    			<nobr>3 </nobr>
    		</div></td><td evtid="day" date="2015/4/4"><div>
    			<nobr>4 </nobr>
    		</div></td><td evtid="day" date="2015/4/5"><div>
    			<nobr>5 </nobr>
    		</div></td>
    	</tr><tr class="ms-acal-summary-itemrow">
    		<td><div class="ms-acal-day1">
    
    		</div></td><td><div class="ms-acal-day2">
    
    		</div></td><td><div class="ms-acal-outday">
    
    		</div></td><td><div class="ms-acal-outday">
    
    		</div></td><td><div class="ms-acal-outday">
    
    		</div></td><td><div class="ms-acal-outday">
    
    		</div></td><td><div class="ms-acal-outday">
    
    		</div></td>
    	</tr>
    </tbody></table><div class="ms-acal-vlink" style="left: 182px; top: 84px; width: 154px; height: 64px; display: block;"><table width="100%" height="100%" class="ms-acal-vcont"><tbody><tr><td><a title="添加" href="javascript:void(0)" evtid="new_item"><span class="ms-addcolumn-span"><img class="ms-addcolumn-icon" src="/_layouts/15/images/spcommon.png?rev=23" border="0"></span>添加</a></td></tr></tbody></table></div></div>
    	<div align="center" class="ms-acal-page" id="WPQ2_Pagination" style="display: none;" width="100%">
    	  <table><tbody><tr>
    		<td><a id="page_prev" href="javascript:void(0);"><img alt="上一步" src="/_layouts/15/2052/images/prev.gif" border="0"></a></td>
    		<td style="white-space: nowrap;"></td>
    		<td><a id="page_next" href="javascript:void(0);"><img alt="下一页" src="/_layouts/15/2052/images/next.gif" border="0"></a></td>
    	  </tr></tbody></table>
    	</div>
    	<div style="display: none;">
    		
    	</div>
    	</div>
      </span><div class="ms-clear"></div><div class="ms-acal-rootdiv"><div><div style=";"></div></div><div><div style=";"></div></div><div><div style=";"></div></div><div><div style=";"></div></div><div><div style=";"></div></div><div><div style=";"></div></div></div></div>

    2015年3月19日 10:10
  • 使用主机头访问日历列表HTML代码:

    <div class="noindex " id="WebPartWPQ2" allowdelete="false" width="100%" haspers="false" webpartid="ebbde356-906e-4794-b0e1-0fb44054bd21" allowexport="false"><span></span><span><table width="100%" border="1" cellspacing="0" cellpadding="2"><tbody><tr>
    <tr>
     <td class="ms-calhead" onmouseover="HighlightText(this, 'red');" onmouseout="HighlightText(this, '');"> <a class="ms-calhead" onclick="javascript:MoveToDate('2015\u002f2\u002f19');" target="_self"><b>&lt;</b></a></td>
    <td class="ms-calhead" colspan="5"><span nowrap="nowrap">2015年3月</span></td> <td class="ms-calhead" onmouseover="HighlightText(this, 'red');" onmouseout="HighlightText(this, '');"> <a class="ms-calhead" onclick="javascript:MoveToDate('2015\u002f4\u002f19');" target="_self"><b>&gt;</b></a></td>
    </tr>
    
    <tr>
    <td width="14%" height="20" class="ms-calDOWDown">&nbsp;周一&nbsp;</td><td width="14%" height="20" class="ms-calDOWDown">&nbsp;周二&nbsp;</td><td width="14%" height="20" class="ms-calDOWDown">&nbsp;周三&nbsp;</td><td width="14%" height="20" class="ms-calDOWDown">&nbsp;周四&nbsp;</td><td width="14%" height="20" class="ms-calDOWDown">&nbsp;周五&nbsp;</td><td width="14%" height="20" class="ms-calDOWDown">&nbsp;周六&nbsp;</td><td width="14%" height="20" class="ms-calDOWDown">&nbsp;周日&nbsp;</td></tr>
    <tr>
    <td width="14%" height="80" class="ms-nonmonthnoworkdaydown">&nbsp;<b>23</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-nonmonthdown">&nbsp;<b>24</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-nonmonthdown">&nbsp;<b>25</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-nonmonthdown">&nbsp;<b>26</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-nonmonthdown">&nbsp;<b>27</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-nonmonthdown">&nbsp;<b>28</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-noworkdaydown">&nbsp;<b>1</b>&nbsp;<br></td>
    </tr>
    <tr>
    <td width="14%" height="80" class="ms-noworkdaydown">&nbsp;<b>2</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>3</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>4</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>5</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>6</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>7</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-noworkdaydown">&nbsp;<b>8</b>&nbsp;<br></td>
    </tr>
    <tr>
    <td width="14%" height="80" class="ms-noworkdaydown">&nbsp;<b>9</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>10</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>11</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>12</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>13</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>14</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-noworkdaydown">&nbsp;<b>15</b>&nbsp;<br></td>
    </tr>
    <tr>
    <td width="14%" height="80" class="ms-noworkdaydown">&nbsp;<b>16</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>17</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>18</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-selecteddaydown">&nbsp;<b>19</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>20</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>21</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-noworkdaydown">&nbsp;<b>22</b>&nbsp;<br></td>
    </tr>
    <tr>
    <td width="14%" height="80" class="ms-noworkdaydown">&nbsp;<b>23</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>24</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>25</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>26</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>27</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>28</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-noworkdaydown">&nbsp;<b>29</b>&nbsp;<br></td>
    </tr>
    <tr>
    <td width="14%" height="80" class="ms-noworkdaydown">&nbsp;<b>30</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-caldown">&nbsp;<b>31</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-nonmonthdown">&nbsp;<b>1</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-nonmonthdown">&nbsp;<b>2</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-nonmonthdown">&nbsp;<b>3</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-nonmonthdown">&nbsp;<b>4</b>&nbsp;<br></td>
    <td width="14%" height="80" class="ms-nonmonthnoworkdaydown">&nbsp;<b>5</b>&nbsp;<br></td>
    </tr>
    </tbody></table>
    </span><div class="ms-clear"></div></div>


    2015年3月19日 10:11