Internet Explorer 8在link_to之后添加换行符

时间:2013-07-07 21:29:11

标签: ruby-on-rails ruby-on-rails-3

使用以下代码,IE 8在link_to之后添加换行符。它位于<p>标记中,因此不应该有换行符。即使在display: inline的link_to中添加CSS类也无济于事。

<p>After registering, at any time you can click on the "My Profile" links and buttons found throughout the site, or simply click <%= link_to "here", user_path(current_user) %>.</p> 

以下是生成的HTML:

<p>After registering, at any time you can click on the "My Profile" links and buttons found throughout the site, or simply click <a href="/users/1">here</a>.</p> 

IE8 link_to line break

0 个答案:

没有答案