gpt4 book ai didi

结果集中的php换行符

转载 作者:行者123 更新时间:2023-11-28 14:47:39 24 4
gpt4 key购买 nike

我想创建一个固定大小来显示我的结果集 我把我的结果集 shownig 放在一个固定大小的 div 中但是不起作用

<div class ="para" >
Brand: <?php echo $row13[2]?></br>
Model: <?php echo $row13[3]?></br>
Price: <?php echo $row13[7]?></br>

<?php echo $row13[4]?>
<?php
}
?>

我不会显示固定宽度尺寸的描述

enter image description here

最佳答案

向 .para 类添加 css 规则:

.{
overflow-wrap: break-word;
}

您还可以添加 hyphens: auto; 以添加“剪切”单词的连字符

Note: In contrast to word-break, overflow-wrap will only create a break if an entire word cannot be placed on its own line without overflowing.

The property was originally a nonstandard and unprefixed Microsoft extension called word-wrap, and was implemented by most browsers with the same name. It has since been renamed to overflow-wrap, with word-wrap being an alias.

https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap

关于结果集中的php换行符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52090019/

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