html - Webkit 浏览器,IE7 搜索表单问题

标签 html css wordpress

这是 my website 的链接那还在开发中。它在 Internet Explorer 8 和 9 以及 Firefox 中运行良好。 webkit 浏览器(Safari 和 Chrome)无法正确显示 facebook 的“点赞框”。该框位于分界线上方。在 IE7 中,由于某些奇怪的原因,搜索表单不会 float:right

这是我的第一个网站,很抱歉有任何可悲的问题:) 你能不能告诉我为 IE6 编写一个脚本,它会显示一条消息以升级到现代浏览器,因为 IE6 绝对把一切都搞砸了。任何其他建议将不胜感激。我使用了 Wordpress 的工具箱主题来开发这个博客。

我用过:

time.entry-date {color:#000; font-style:italic; text-decoration:none;} 

要将发布日期的颜色更改为黑色并删除下划线,但 text-decoration:none 不起作用。

最佳答案

Facebook 关注框:

#fb-root {
position:relative;
float: left;
margin-left: 10px;
/* remove: margin-top, z-index */
}

HTML5 元素无法被 ie < 9 识别。 添加到页面 <head> :

<!--[if lte IE 8]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]--> 

用于 ie6 消息的 JQuery:

if ($.browser.msie && parseInt($.browser.version) =< 6) {

var here = '<a href="link-to-update.html"> here</a>';
$('body').prepend('<div id="message">Please upgrade your browser'+here+'!</div>')

}

希望对您有所帮助。

关于html - Webkit 浏览器,IE7 搜索表单问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6878911/

相关文章:

html - 我怎样才能让我的导航粘在页面顶部?

html - 如何修复页面响应?

css - WooSlider 最大高度

html - 选项中的图标 - Bootstrap + Font-awesome

Javascript根据值选择并更改元素的内容

javascript - 不允许在可排序列表中排序,仅使用 connectWith 将它们移动到不同的可排序列表

css - 如何覆盖 wp-includes/css 目录中的默认 .css

html - 更正 span 标签中的自动换行

html - 左侧离开 parent 的 child

html - 放大页面时,标题和文本隐藏在我的 slider 后面