示例:
<div class="background" style="background-image:url('http://punchdrunk.staging.sfp.net/wp-content/themes/punchdrunk/assets/img/backgrounds/footer.jpg')">
<div class="overlay" style="background-image:url('http://punchdrunk.staging.sfp.net/wp-content/themes/punchdrunk/assets/img/backgrounds/smoke.png')"></div>
</div>
或者我需要在每个功能之前放置.background,.overlay{height:100%; width:100%; position:absolute; left:0; right:0; top:0; bottom:0;}
.overlay { opacity:0; animation:smoke 5s infinite;}
@keyframes smoke
{
0% {opacity:0}
100% {opacity:1}
}
吗?这是基本的C唯一问题。
答案 0 :(得分:3)
因为声明有grammar:
phrase = "Hi there"
while len.phrase > 0
print (c.upper())
你可以使用声明来完成,但不能使用function definitions。
示例:
declaration:
declaration-specifiers init-declarator-listopt ;
static_assert-declaration
declaration-specifiers:
storage-class-specifier declaration-specifiersopt
type-specifier declaration-specifiersopt
type-qualifier declaration-specifiersopt
function-specifier declaration-specifiersopt
alignment-specifier declaration-specifiersopt
init-declarator-list:
init-declarator
init-declarator-list , init-declarator
init-declarator:
declarator
declarator = initializer