【问题标题】:changing font and adding colors to the font using eForm in modx在 modx 中使用 eForm 更改字体并为字体添加颜色
【发布时间】:2011-08-11 16:03:19
【问题描述】:

只是想补充一点,这是 eForm 的代码。不确定在哪里使用 CSS。我需要编辑页面的主要 css 吗?

如何更改此代码上的字体并为文本添加颜色,我将其用于在 modx 中创建的 eForm

<div style="background-color:#CCDFED">
<form method="post" action="[~[*id*]~]">
    <input type="hidden" name="formid" value="registrationForm" />
    <table>


    <tr>
        <td><label for="reasons" style="margin:0.5em">Reason for contacting us:</label></td>
        <td><textarea cols="60" rows="3" name="reasons" eform="Reasons::1"></textarea></td>
    </tr>



    <tr>      
         <td><label for="products" style="margin:0.5em">Which sweets </label>
        <label style="margin:0.5em">do you like:</label>     
         <td>       
            <input type="checkbox" name="products[]" value="icecream" eform="Sweets::1"/>&#09;Ice Cream <br/>
            <input type="checkbox" name="products[]" value="bananasplit"  />&#09;bananasplit<br/>            
        </td>
    </tr>  


    <tr>
        <td><label for="how" style="margin:0.5em">How did you hear about us:</label></td>
        <td>
       <select name="how" style="width:200px" eform="How::1" >
       <option value="web_search">Web search</option>              
       <option value="friends">Friends</option> 
       <option value="word_of_mouth">Word of Mouth</option>     
       </select>
       </td>
    </tr>   
</table>

</form>
</div>

【问题讨论】:

    标签: html fonts colors modx-evolution


    【解决方案1】:

    你最好在官方 modx 论坛中问这个问题:http://modxcms.com/forums/

    但简单的答案是:使用 CSS。

    • 从块中删除内联样式并替换为 css 类或 id 规则,然后您可以从 CSS 表中控制显示。

    • 如果这是带有插件/额外等的默认块,请始终处理它的副本,否则更新将清除您的自定义设置。

    此外,Revolution 或 Evolution 以及版本号对我们其他人都有帮助。

    -肖恩

    【讨论】:

    • 感谢您的回复。不知道在哪里可以找到版本号,但这是我在系统信息下找到的:rev 6066
    • 对我来说听起来像是一场革命,据我所知,区块系统没有改变。我的建议应该仍然有效。
    猜你喜欢
    • 2018-07-12
    • 1970-01-01
    • 2011-07-05
    • 1970-01-01
    • 2013-11-14
    • 2014-01-19
    • 2015-01-02
    • 2014-05-03
    • 1970-01-01
    相关资源
    最近更新 更多