为什么Magento会删除我在内容中的样式,如何避免这种情况?

为什么Magento会删除我在内容中的样式,如何避免这种情况?,magento,Magento,我试图在我的一个页面的内容中插入一个表单,每次我将表单代码(包括)复制到内容中并保存它时,Magento会删除样式标记和更多内容,从而使我的表单看起来不像我编程的那样;当我试图实现自己的自定义css时,这变得非常烦人。我怎样才能阻止Magento这样做 我的代码非常简单: <html> <head> <link rel="stylesheet" type="text/css" href="../includes/form_style.css"

我试图在我的一个页面的内容中插入一个表单,每次我将表单代码(包括
)复制到内容中并保存它时,Magento会删除样式标记和更多内容,从而使我的表单看起来不像我编程的那样;当我试图实现自己的自定义css时,这变得非常烦人。我怎样才能阻止Magento这样做

我的代码非常简单:

<html>
<head>
            <link rel="stylesheet" type="text/css" href="../includes/form_style.css">
            <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
            <script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
            <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css">
        </head>
    <body>
        <div id="form11">
            <h1>Form</h1>
            <form method="post" action="#">
                <table id="table11">
                    <tr><td><p>Name:</p></td><td><input type="text" name="name"/></td></tr>
                    <tr><td><p>Email:</p></td><td><input type="text" name="email"/></td></tr>
                    <tr><td><p>Phone:</p></td><td><input type="text" name="phone"/></td></tr>
                    <tr><td><p>House:</p></td><td><input type="text" name="house"/></td></tr>
                    <tr><td><p>Street:</p></td><td><input type="text" name="street"/></td></tr>
                    <tr><td><p>PostCode:</p></td><td><input type="text" name="postcode"/></td></tr>
                    <tr><td><p>Width (m):</p></td><td><input type="range" name="points" id="points" value="0" min="0" max="100" data-highlight="true"></td></tr>
                    <tr><td><p>Length (m):</p></td><td><input type="range" name="points" id="points" value="0" min="0" max="100" data-highlight="true"></td></tr>
                    <tr><td><p>Carpet Type:</p></td><td><select name="carpettype">
                                                    <option value="carpet1">Carpet1</option>
                                                    <option value="carpet2">Carpet2</option>
                                                    <option value="carpet3">Carpet3</option>
                                                    <option value="carpet4">Carpet4</option>
                                                    <option value="carpet5">Carpet5</option>


                                                </select></td></tr>
                    <tr><td colspan="2"><input type="submit" value="Submit"/></td></tr>


                </table>
            </form>
        </div>
        <div id="image">
        <img src="../Desktop/freesamplesrightpanel.png" alt="freesamplesrightpanel" width="470" height="835" />
        </div>

    </body>

</html>

类型
姓名:

电邮:

电话:

众议院:

街道:

邮政编码:

宽度(m):

长度(m):

地毯类型:

地毯1 地毯2 地毯3 地毯4 地毯5
您是否将所有这些代码放在CMS页面的侧面?是的,在CMS页面的内容部分,因为它是一个CMS页面,Magento每次都会删除html、正文标记,添加样式的最佳方法是编辑位于skin文件夹中的主题css文件,或在页面内容末尾添加样式标记。