gpt4 book ai didi

html - 如何合并div单元格

转载 作者:太空宇宙 更新时间:2023-11-04 13:08:29 25 4
gpt4 key购买 nike

我想将名为 XXXXXxxxXXXX 的文本与您在上面看到的 div 合并。我没有看到表有 colspan 属性。我还需要向该行添加溢出。

这是我的 Fiddle

有人知道如何解决这个问题吗?

预期输出应如下所示。文本为“XXXX”的列也应该溢出

enter image description here

最佳答案

是这样的吗?

.dtable { 
display:table;
table-layout: fixed;
width:529px;
}

.drow {
display:table-row;
width:525px;
}

.dcell {
display:table-cell;
border:1px solid gray;
}


#D_Cell_1 {
width:100px;
}

#Description {
width:100px;
height:58px;
}

#Des_Content{
overflow-y: scroll;
word-wrap: break-word;
position: absolute;
height:58px;
width:425px;
}
<div id='main_wrapper' class='dtable'>
<div id='control_panel_wrapper' class='drow'>
<div id='D_Cell_1' class='dcell'>Title</div>
<div id='D_Cell_2' class='dcell'>Manager marketing</div>
<div id='D_Cell_3' class='dcell'>Application Deadline</div>
<div id='D_Cell_4' class='dcell'>22.04.2012</div>
</div>
</div>
<div class='dtable'>
<div id='bottom_wrapper' class='drow'>
<div id='Description' class='dcell'>Description</div>
<div id='Des_Content' class='dcell'>LOREM IPSUM
dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc,</div>
</div>
</div>

关于html - 如何合并div单元格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36808681/

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