在我的 PHP 系统中,人们可以选择颜色组合。我正在使用这样的选项选择列表来执行此操作:
<style>
OPTION.purple{ width: 100px; background-color: #1d5280; color:white}
OPTION.green{ width: 100px; background-color: #30843b; color:white}
</style>
<select>
<option>Choose color</option>
<option class="purple">Purle/Blue</option>
<option class="green">Brown/Green</option>
</select>
现在每个选项都有 1 种颜色,是否可以给 1 个选项 2 种颜色。所以选项的前半部分有一种颜色,而后半部分的选项有另一种颜色。