Ruby on rails Internet Explorer 8在链接到“”后添加换行符
对于以下代码,IE 8在链接到后添加换行符。它位于Ruby on rails Internet Explorer 8在链接到“”后添加换行符,ruby-on-rails,ruby-on-rails-3,Ruby On Rails,Ruby On Rails 3,对于以下代码,IE 8在链接到后添加换行符。它位于标记中,因此不应该有换行符。甚至在带有display:inline的链接中添加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_
标记中,因此不应该有换行符。甚至在带有display:inline
的链接中添加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>
注册后,您可以随时单击整个网站上的“我的个人资料”链接和按钮,或者只需单击即可。
您可以发布和元素的CSS吗?我在您的代码中没有看到任何换行符(
),所以这一定是CSS问题。原来我有一个指向onpage的锚链接,没有结束标记。