背景:在撰写本文时,Fomantic-UI 是 Semantic-UI 的实时开发分支,有朝一日将被纳入 Semantic-UI,同时也是 Semantic-UI 事实上支持的属类。
Fomantic 有一个功能强大的日历/日期选择器,但我怎样才能让它以反色显示?
$('#standard_calendar')
.calendar();
$('#inverted_calendar')
.calendar({
className: {
table: 'ui inverted celled center aligned unstackable table'
}
});
<link href="https://fomantic-ui.com/dist/semantic.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://fomantic-ui.com/dist/semantic.js"></script>
<body>
<div class='daContent'>
<p>
An example of a Fomantic calendar.
</p>
<span>Standard colors calendar</span>
<div class="ui calendar" id="standard_calendar">
<div class="ui input left icon">
<i class="calendar icon"></i>
<input type="text" placeholder="Date/Time">
</div>
</div>
</p>
</body>