好的,我得到了这个标记
<th class="ai1ec-weekday <?php if( $day['today'] ) echo 'ai1ec-today' ?>">
<span class="ai1ec-weekday-date"><?php
echo Ai1ec_Time_Utility::date_i18n( 'l', $date, true );
?> </span>
</th>
它产生这个输出,因为跨度有text-align: center
现在我想添加一个浮动到右侧的按钮
<th class="ai1ec-weekday <?php if( $day['today'] ) echo 'ai1ec-today' ?>">
<div class="btn-group pull-right">
<button class="btn ai1ec-reveal-events"><?php _e( 'Reveal all events', AI1EC_PLUGIN_NAME ) ?></button>
</div>
<span class="ai1ec-weekday-date"><?php
echo Ai1ec_Time_Utility::date_i18n( 'l', $date, true );
?> </span>
</th>
这就是我得到的
我想得到的是 mondais 仍然像以前一样居中,但我想在不使用绝对定位的情况下做到这一点(当然,如果可能的话)
CSS(我的意思是引导 CSS 除外)
.ai1ec-week-view th .ai1ec-weekday-date,
.ai1ec-oneday-view th .ai1ec-weekday-date {
font-size: 10.5pt !important;
font-weight: normal !important;
}
.ai1ec-week-view th .ai1ec-weekday-day {
font-size: 9pt !important;
font-weight: normal !important;
}
.ai1ec-month-view th, .ai1ec-oneday-view th {
text-align: center !important;
}