asp

<mobile:StyleSheet Runat="server">
<mobile:Style Name="userName" Font-Size="Small"></mobile:Style>
<mobile:Style Name="userPwd" Font-Size="Small"></mobile:Style>
</mobile:StyleSheet>

解决方案 »

  1.   

    额。发快了  我的问题是 这个是vs2008的  mobile开发,这里的样式 font—size最大的就是large,最小small,有没有啥办法可以让字体更大,不是局限于large的程度,我试过 font-size="16px"这种方式,可是在mobile里是不支持这种方法的 求解
      

  2.   


    px是像素的单位吧
    pt才是字体大小的单位
      

  3.   

    http://apps.hi.baidu.com/share/detail/426303换pt来控制
      

  4.   

    不行啊,pt会报错的:
    错误 1 验证 (Mobile HTML): 此属性允许的值不包括“20pt”。
    错误 2 无法从其“Size”属性的字符串表示形式“20pt”创建“System.Web.UI.MobileControls.FontSize”类型的对象。
      

  5.   

    <mobile:Style Name="userName" Font-Size="Small"></mobile:Style>
    属性里面是否包含class什么的,写相应的style来控制
      

  6.   

    <mobile:Style Name="userName" Font-Size="Small"></mobile:Style>这个就是mobie的style,
    然哦户正文是
    <mobile:Form id="Form1" runat="server">
        <mobile:Label Runat="server" StyleReference="userName">你是谁</mobile:Label>
        </mobile:Form>