Semantic UI 颜色背景样式应用:示例代码
...
注意:这里只是示例,可以根据需要选择不同的颜色样式。
Semantic UI 提供了丰富的颜色样式,可以根据你的需求选择合适的颜色来设置背景。例如,你可以使用以下代码设置背景颜色为蓝色:
<div class='ui basic segment pt-10' style='background-color: #218838;'>
<div class='ui call-to-action gray-bg ptb-60' style='background-color: #fff;'>
...
</div>
</div>
你也可以使用 Semantic UI 提供的预定义颜色类,例如:
<div class='ui basic segment pt-10 blue'>
<div class='ui call-to-action gray-bg ptb-60' style='background-color: #fff;'>
...
</div>
</div>
更多颜色样式和使用方法,请参考 Semantic UI 官方文档:https://semantic-ui.com/elements/segment.html
原文地址: https://www.cveoy.top/t/topic/ktqf 著作权归作者所有。请勿转载和采集!