【发布时间】:2019-05-06 16:57:12
【问题描述】:
我想知道如何从表格的行中制作徽标的动态缩略图,如下图所示?
我正在使用下面的代码:
.numberCircle {
border-radius: 50%;
width: 30px;
height: 30px;
padding: 8px;
background: #ddd;
border: 2px solid #666;
color: white;
text-align: center;
font: 16px Arial, sans-serif;
}
<?php
$words = preg_split("/\s+/", "Unnamed Template",2);
foreach ($words as $w) {
$acronym .= $w[0];
}
?>
<div class="numberCircle">
<?php echo $acronym;?>
</div>
我正在使用 PHP、HTML 和 Bootstrap 进行 Web 开发。有没有这样的包/工具?
谢谢。
【问题讨论】:
-
您使用的是哪个 PHP 框架/CMS?还是原始 PHP?
-
我在 Bootstrap 中使用原始 PHP
标签: php html css twitter-bootstrap bootstrap-4