加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 如何在html_options中使用rails mail_to helpe

发布时间:2020-12-17 02:43:03 所属栏目:百科 来源:网络整理
导读:=mail_to "info@somewhere.com",nil,:html_options = {:style = 'font-weight: bold'} 呈现为 a href="mailto:info@somewhere.com" html_options="stylefont-weight: bold"info@somewhere.com/a 我的错是什么? 解决方法 只是摆脱html_options包装: =mail_t
=mail_to "info@somewhere.com",nil,:html_options => {:style => 'font-weight: bold'}

呈现为

<a href="mailto:info@somewhere.com" html_options="stylefont-weight: bold">info@somewhere.com</a>

我的错是什么?

解决方法

只是摆脱html_options包装:

=mail_to "info@somewhere.com",:style => 'font-weight: bold'

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读