Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 内容漂浮在Internet Explorer 9中my Tumblr主题的侧栏上方。我怎样才能解决这个问题?_Css_Internet Explorer 9_Tumblr - Fatal编程技术网

Css 内容漂浮在Internet Explorer 9中my Tumblr主题的侧栏上方。我怎样才能解决这个问题?

Css 内容漂浮在Internet Explorer 9中my Tumblr主题的侧栏上方。我怎样才能解决这个问题?,css,internet-explorer-9,tumblr,Css,Internet Explorer 9,Tumblr,这是我的Tumblr主题 我在Internet Explorer上查看了它,内容漂浮在侧边栏上方。还有什么我可以修的吗 这是我为内容部分准备的CSS #content { background-color: #F2EBD9; float: right; width: 1200px; height: 100%; margin-right: 25px; position: relative; bottom: 296px; clear: both; } 我在firebug中试过这个,它对我有效 #

这是我的Tumblr主题


我在Internet Explorer上查看了它,内容漂浮在侧边栏上方。还有什么我可以修的吗

这是我为内容部分准备的CSS

#content {
background-color: #F2EBD9;
float: right;
width: 1200px;
height: 100%;
margin-right: 25px;
position: relative;
bottom: 296px;
clear: both;
}

我在firebug中试过这个,它对我有效

#sidebar {
    float: left;
    position: relative;
    margin-top: 30px;
    width: 350px;/*change this size to your needs*/
}
#content {
    background-color: #F2EBD9;
    float: left;
    margin-right: 25px;
    position: relative;
    width: 800px;/*change this size to your needs*/
}

在其他浏览器中,内容也在侧边栏上方浮动。我如何修复它,使其在其他浏览器中不会这样做?在Google Chrome中,它不是。请检查所有浏览器(首先清除缓存)。我刚检查过,内容也在chrome的侧边栏上方浮动。也可以登录firefox。@LisaRamos,这取决于您的需要。在这种情况下,float:right会将内容粘贴到右侧。这两种方法都可以在你的网站上使用,只是你需要使用一些边距/填充。如果此答案解决了您的问题,请不要忘记将其标记为答案。:)