小编Fra*_*cci的帖子

如何在动画/过渡期间暂停

我有一个想要伸展3秒的图像,然后暂停2秒钟,然后伸展3秒钟.就目前而言,我不知道如何暂停它; 动画延迟仅适用于动画的开头,而不适用于中间.这是我的代码:

<!DOCTYPE html>

<html> 

  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    <title>Page 2</title>

    <style type="text/css">
    /* Your styles go here */
    img {
        width:200px; 
        height:100px; 
        animation: widthChange 6s;
        -webkit-animation: widthChange 6s;
        -moz-animation: widthChange 6s;
        -0-animation: widthChange 6s;


    }

    p {text-align:center}
    button {margin:20px}
    .stylized {
        font-style: italic;
        border-width: 5px;
        border-color: yellow;
        border-style: outset;
    }

    @-webkit-keyframes widthChange {
        0%, 100% {width: 200px;}
        50% {width: 400px;}
    }
    @-o-keyframes widthChange {
        0%, 100% {width: 200px;}
        50% {width: 400px;}        }
    @-moz-keyframes widthChange {
        0%, 100% …
Run Code Online (Sandbox Code Playgroud)

html javascript css jquery animation

7
推荐指数
2
解决办法
819
查看次数

C scanf意外地表现为%i来扫描日期

出于某种原因,当我运行我的程序时,它没有给我选择为day1和year2关联的语句键入数字.它为什么这样做?

#include <stdio.h>

int main(void ) {

    int day1, day2, month1, month2, year1, year2;

    printf("Enter date 1 mm\n");
    scanf("%i", &month1);

    printf("Enter date 1 dd\n");
    scanf("%i", &day1);

    printf("Enter date 1 yyyy\n");
    scanf("%i", &year1);

    printf("Enter date 2 mm\n");
    scanf("%i", &month2);

    printf("Enter date 2 dd\n");
    scanf("%i", &day2);

    printf("Enter date 2 yyyy\n");
    scanf("%i", &year2);

    return 0;
}
Run Code Online (Sandbox Code Playgroud)

c scanf

6
推荐指数
1
解决办法
274
查看次数

C:链接器命令失败,退出代码为1

编译代码时遇到问题.我没有收到任何错误消息.但是,我收到以下消息:

Undefined symbols for architecture x86_64:
  "_lookup", referenced from:
      _main in sixteen2-85c27c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

我之前从未遇到过这样的事情,我在网上找到的大部分信息都涉及Objective-C,而不是简单的C.我会很感激任何帮助.

这是我的代码:

#include <stdio.h>
#include <stdlib.h>

int main (int argc, char *argv[]) {
    struct entry {
        char word[15];
        char definition[100];
    };

    const struct entry dictionary[100] = 
    {{"aardvark", "a burrowing African mammal"},
    {"abyss", "a bottomless pit"},
    {"acumen", "mentally sharp; keen"},
    {"addle", "to become confused"},
    {"aerie", "a high nest"}, …
Run Code Online (Sandbox Code Playgroud)

c linker

2
推荐指数
1
解决办法
2万
查看次数

C中二进制文件的格式说明符是什么?

我到处都看了一下,但是没有找到问题的答案。首先,我知道十进制%d的符号是%o,八进制的符号是,十六进制的符号是%x。但是,我找不到二进制的符号。我将不胜感激任何帮助。

c binary symbols

2
推荐指数
1
解决办法
9362
查看次数

使用字符串作为函数的参数

我正在尝试使用一个以字符串作为参数的函数。我遇到了一些错误消息。首先,它表示 string[i] 不是数组、指针或向量,尽管 string 是字符数组。其次,它说我正在进行指针到整数的转换。这是我的代码:

#include <stdio.h>
#include <string.h>

void example (char string) {
    int i;
    for (i = 0; i < strlen(string); i++) {
        printf (string[i]);
    }
}

int main (void) {
    example("I like pie");
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

c string parameters function

1
推荐指数
1
解决办法
141
查看次数

标签 统计

c ×4

animation ×1

binary ×1

css ×1

function ×1

html ×1

javascript ×1

jquery ×1

linker ×1

parameters ×1

scanf ×1

string ×1

symbols ×1