这是 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/