我想在我的wordpress主题中使用animate.css。我将该文件放在文件夹mytheme/includes/css中,然后在文件function.php中使用它
// Import Animate.css
wp_enqueue_style( 'mytheme-wp', THEME_DIR_URI . '/includes/css/animate.css' );但是当我使用文件animate.css的样式时,它们不起作用。
我是不是错过了一些步骤?

发布于 2016-12-15 02:44:53
function.php文件错误。我写的是“mytheme-wp”而不是“mytheme animate”
正确的命令是
// Import Animate.css
wp_enqueue_style( 'mytheme-animate', THEME_DIR_URI . '/includes/css/animate.css' );发布于 2016-12-14 21:00:48
如果你的animate.css加载正确,那么只需尝试从控制台将类rubberBand animated添加到任何目录/图像,如果它得到动画,那么它工作得很好。
https://stackoverflow.com/questions/41139648
复制相似问题