【问题标题】:Font type in <c:out> tag in JSPJSP 中 <c:out> 标记中的字体类型
【发布时间】:2011-07-26 07:46:35
【问题描述】:

在我的 spring jsp 页面中,我有 c:out 标签。我想为此 c:out 内容设置 font-family:Arial。有没有办法做到这一点。

我试过了

<font style="font-family:Arial">
 <c:out>
</font>

但它不起作用。

【问题讨论】:

    标签: css spring jsp


    【解决方案1】:

    试试

    <div style="font-family: arial">
    

    标签已弃用,不应使用。

    【讨论】:

    • 很好奇。我假设 Arial 已安装在您的系统上并且可供浏览器使用。如果这听起来很愚蠢,请原谅我,但你确定它不起作用吗?如果大小足够小,许多字体可能看起来相似。尝试增加字体大小并再次检查,以确定 (style="font-family: arial; font-size: 24px")。
    • 感谢您的建议。 Arial 不工作,虽然它在其他 jsp 中工作(不是 c:out),但它与 Courier New 字体类型一起工作。
    • 你的 c:out 究竟输出了什么?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-06-19
    • 2021-04-14
    • 2014-04-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多