【问题标题】:Put degree symbol in html input tag [closed]将度数符号放在html输入标签中[关闭]
【发布时间】:2012-12-20 01:15:07
【问题描述】:

如何使用 javascript 在文本框中输入度数符号?

【问题讨论】:

  • 你的意思是把它作为样式放入(所以当用户输入时,他们的文本末尾会有一个度数符号)?
  • 度数符号的HTML代码是°°

标签: javascript html ascii


【解决方案1】:

您只需要使用 html 实体代码。

<input value='&#176;'></input>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-18
    • 2017-07-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多