开发者

HTML center works on server but not on local machine

I'm experiencing some weird behaviour on my local machine, when I access a page on my test server everything is centered like I want. When I run the code on my local machine everything is left aligned, the centering is ignored.

The HTML is real开发者_如何学Pythonly simple so I don't see why this issue has suddenly started to happen.

<table>
<tr>
   <td>
       <asp:HyperLink NavigateUrl="" ID="hlPhoto" runat="server"><asp:Image ID="imgPhoto" runat="server" ImageUrl='<%# String.Format( "../images/mugshots/{0}", DataBinder.Eval(Container.DataItem,"Photo") )%>' /></asp:HyperLink>
    </td>
</tr>
<tr>
   <td valign="bottom" align="center">
     <div>
     <b>
      <asp:Label ID="lblName" runat="server"><%# Eval("FullName")%></asp:Label></b>                 </div>
    <div>
     <asp:Label ID="Label1" runat="server"><%# Eval("Jobtitle")%></asp:Label></div>
    <div>
         <br />
        <asp:HyperLink NavigateUrl="" ID="hlDetail" runat="server"><font size="2">Details</font></asp:HyperLink>
    </div>
    <div>
      <asp:HiddenField ID="userID" runat="server" Value='<%# Eval("Jobtitle")%>' />
    </div>
 </td>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜