gpt4 book ai didi

php - 带有文本的自动高面板主体

转载 作者:太空宇宙 更新时间:2023-11-04 07:34:39 24 4
gpt4 key购买 nike

您好,我有以下问题,请参见图片: /image/1o1ld.jpg

我如何管理它的大小适合文本?代码如下所示:

<div class="panel panel-default">
<div class="panel-heading">
<strong>Anonym</strong>&nbsp
<a href="#"><span class="glyphicon glyphicon-ok-circle"></span></a>&nbsp
<!--<a href="#"><span class="glyphicon glyphicon-pencil"></span></a>&nbsp-->
<a href="#"><span class="glyphicon glyphicon-trash"></span></a>
</div>
<div class="panel-body">
<p><?php echo $Question;?></p>
</div><!-- /panel-body -->
</div><!-- /panel panel-default -->
<?php } ?>
<!--Hier neues Element Einfügen/Ende -->
</div><!-- /col-sm-6 -->
<div class="col-sm-6">

感谢一些解决方案:)

CSS 看起来像这样:

.panel {
position:relative;
}
.panel>.panel-heading:after,.panel>.panel-heading:before{
position:absolute;
top:11px;left:-16px;
right:100%;
width:0;
height:0;
display:block;
content:" ";
border-color:transparent;
border-style:solid solid outset;
pointer-events:none;
}
.panel>.panel-heading:after{
border-width:7px;
border-right-color:#f7f7f7;
margin-top:1px;
margin-left:2px;
}
.panel>.panel-heading:before{
border-right-color:#ddd;
border-width:8px;
}

最佳答案

p {
overflow-wrap: break-word;
}

它允许长单词(每个单词中有一个单词)被打断

关于php - 带有文本的自动高面板主体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49067037/

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