我是HTML和CSS的新手,想要为我的试用网站制作动画。虽然当我将Animation.css添加到我的文件中时,它搞砸了它并且不会动画并弄乱我的图片和背景。
这是我的代码:
h2 {
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
color: aqua;
position: relative;
left: 282px;
text-transform: uppercase;
font-size: 45px;
animation-name: animation1;
animation-duration: 2;
}
h1 {
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
color: aqua;
position: relative;
left: 250px;
text-transform: uppercase;
font-size: 55px;
}
img {
position: relative;
bottom: 0px;
left: 425px;
}
body {
background-image: url(cool%20gradient.png);
background-position: 50% 50%;
background-repeat: no-repeat;
}
a {
color: hotpink;
text-transform: uppercase;
font-size: 30px;
position: relative;
left: 165px;
bottom: -50px;
}

<h2 class="animated bounceInRight">Want to see a Pug</h2>
<h1 class="animated bounceInLeft">Licking a Screen</h1>
<img class="animated fadeInDown" src="Down-Arrow1.png" style="width:200px;height:200px;">
<a class="animated fadeInUp" href="http://www.sanger.dk/">Pug Licking Screen</a>
&#13;
感谢所有帮助!
答案 0 :(得分:0)
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'standard': {
'format': "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s",
'datefmt': "%d/%b/%Y %H:%M:%S"
},
},
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'django.utils.log.NullHandler',
},
'logfile': {
'level': 'DEBUG',
'class': 'logging.handlers.RotatingFileHandler',
'filename': BASE_DIR + "/log/django.log",
'maxBytes': 10 * 1024 * 1024,
'backupCount': 2,
'formatter': 'standard',
},
'console': {
'level': 'INFO',
'class': 'logging.StreamHandler',
'formatter': 'standard'
},
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
}
},
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'loggers': {
'': {
'handlers': ['console', 'logfile'],
'level': 'DEBUG',
'propagate': True
},
'django': {
'handlers': ['console', 'logfile'],
'propagate': True,
'level': 'WARN',
},
'django.db.backends': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
},
'django.request': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': True,
},
}
代码属于<style>
部分。还要确保<head>
文件存在且文件路径正确。
animate.min.css