0

使用以下代码,IE 8 在link_to. 它在一个<p>标签中,所以不应该有换行符。即使将 CSS 类添加到 link_todisplay: inline也无济于事。

<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 换行

4

0 回答 0