答案 0 :(得分:0)
好的,我使用css更改自定义它,这可以通过排队自定义css文件来实现。主要问题是 - 把它设置得更宽。所以我发现广泛的css在哪里。并添加css portino:
df = pd.DataFrame({'time1':['09:08:20','09:20:20','19:08:20'],
'time2':['09:07:20','09:20:20','19:08:10']})
print (df)
time1 time2
0 09:08:20 09:07:20
1 09:20:20 09:20:20
2 19:08:20 19:08:10
df['diff'] = abs(pd.to_datetime(df['time1']) -
pd.to_datetime(df['time2'])).dt.seconds
print (df)
time1 time2 diff
0 09:08:20 09:07:20 60
1 09:20:20 09:20:20 0
2 19:08:20 19:08:10 10
然后在css文件中,在主题woocommerce / css文件夹中:
add_action('admin_head', function (){
wp_register_script($handle = "wooc-custom", $src = get_template_directory_uri() . "/woocommerce/css/add_custom.css");
wp_enqueue_style($handle, $src);
},99);