wrong style with razor

  1. #1

    wrong style with razor

    hi,everybody
    @model Test1.Models.WordViewModel
    @{
        Layout = null;
    }
    <!DOCTYPE html>
    <html>
    <head>
        <title>Section_1_1</title>
    </head>
    <body>
        <div style="padding: 15px;">
            <form method="post" target="_self" action="@(Url.Action("SaveData", "Home", new { sNum = 5 }))">
            @Html.X().ResourceManager()
            <h1>111111</h1>
            <h6>222222</h6>
            @(Html.X().TextArea()
                    .ID("1_1")
                    )
            </form>
        </div>
    </body>
    </html>
    this code the word "111111" and "222222" are both bold only but have same size
    <div style="padding: 15px;">
            <form method="post" target="_self" action="@(Url.Action("SaveData", "Home", new { sNum = 5 }))">
            <h1>111111</h1>
            <h6>222222</h6>
            </form>
        </div>
    when I remove the @Html.X().ResourceManager() the word "111111" and "222222" are normal
    why?
    Last edited by Daniil; Nov 23, 2012 at 3:30 PM.
  2. #2
    Hi,

    Here is the answer.
    http://forums.ext.net/showthread.php...ll=1#post57861

    Using a Container with the
    .StyleHtmlContent(true)
    setting should help.
    http://docs.sencha.com/ext-js/4-1/#!/api/Ext.AbstractComponent-cfg-styleHtmlContent

    Example
    @(Html.X().Container()
        .StyleHtmlContent(true)
        .Content(
            @<text>
                <h1>111111</h1>
                <h6>222222</h6>
            </text>)
    )

Similar Threads

  1. ComboBox default value with razer
    By zhdl in forum 2.x Help
    Replies: 0
    Last Post: Aug 13, 2012, 8:59 AM
  2. How to save GridPanel with mvc3 and razer
    By zhdl in forum 2.x Help
    Replies: 0
    Last Post: Jul 25, 2012, 8:14 AM
  3. Listeners with razer
    By zhdl in forum 2.x Help
    Replies: 2
    Last Post: Jul 18, 2012, 12:53 AM
  4. GridPanel with DataSet, where am I wrong?
    By MADSON in forum 1.x Help
    Replies: 4
    Last Post: Apr 08, 2012, 5:45 PM
  5. Something wrong with the PropertyGrid
    By Demo in forum 1.x Help
    Replies: 0
    Last Post: Mar 05, 2010, 1:45 AM

Tags for this Thread

Posting Permissions