0

次のコードでは、IE 8 は の後に改行を追加しますlink_to。タグ<p>なので改行はいけません。CSS クラスを link_to に追加しdisplay: 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