使用了MasterPage后为什么Label控件不能完整显示比Large更大的文本了

解决方案 »

  1.   

    Label控件的属性你是不是做了限制?
    或是你套用了什么样式?
      

  2.   

    在编程Design界面看是没问题的,但Debug时高度方向就像被遮挡一样,无法完整显示比Large更大的文本了,长度方向是正常的.
    同一文件把MasterPage文件ContentPlaceHolder等去掉又完全正常.
    把LABEL控件换为TEXTBOX,就跟MasterPage和ContentPlaceHolder没关系,是VS的BUG?
      

  3.   

    问题找到了,可在MasterPage下显示大字:
    <asp:Label ID="Label1" runat="server" CssClass="MyCss" Font-Bold="True" Font-Names="Arial Narrow" Font-Size="XX-Large"  ForeColor="Navy" style=" vertical-align :middle; text-align :center ">星期六</asp:Label>在MasterPage下高度方向被遮挡的敏感参数:
    BorderStyle
    BorderWidth
    Height
    Width
    这4个参数与MasterPage有冲突!