gpt4 book ai didi

css - 带有文本的 div,在 IE8 中没有结束

转载 作者:行者123 更新时间:2023-11-28 14:15:20 25 4
gpt4 key购买 nike

我有两个 div,左边和右边对齐。我需要左边的方 block 越过右边。如您所知,IE 仍然是问题所在...两个 block 中的文本混合在一起,没有处理任何结束,文本似乎是独立的。

jsfiddle http://jsfiddle.net/P3Qgb/

这里是代码:

<html>
<style>
#root {
position:fixed;
}

#content {
height: 200px;
width: 400px;
border: 1px solid red;
position:fixed;
}

#bloc-left {
position:absolute;
float: left;
height: 190px;
border: 1px solid black;
width: 60%;
overflow:auto;

background-image: linear-gradient(top, #fbfbfb 0%, #e2e2e2 100%);
background-image: -o-linear-gradient(top, #fbfbfb 0%, #e2e2e2 100%);
background-image: -moz-linear-gradient(top, #fbfbfb 0%, #e2e2e2 100%);
background-image: -webkit-linear-gradient(top, #fbfbfb 0%, #e2e2e2 100%);
background-image: -ms-linear-gradient(top, #fbfbfb 0%, #e2e2e2 100%);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fbfbfb), color-stop(1, #e2e2e2));
}

#bloc-right {
float: right;
width: 45%;
height 190px;
border: 1px solid black;
}
</style>

<body>
<div id=""root">
<div id="content">
<div id="bloc-left">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
<div id="bloc-right">
Lorem Ipsum is simply dummy text of the printing and typesetting
</div>
</div>
</div>

</body>
</html>

目标是添加一个链接,用一些 js 将左侧 block 扩展到右侧。

感谢您的帮助!

编辑:添加根目录

最佳答案

添加:

z-index: 1;#bloc-left

改变:

position: fixed; to position: relative; on #content

关于css - 带有文本的 div,在 IE8 中没有结束,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9098534/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com