使用以下代码,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>