我在从 CardMedia 图像上的props获取图像时遇到了一些麻烦:
<Card className={classes.card}>
    <CardMedia 
        className={classes.img}
        image={this.props.recipe.thumbnail}
    />
    <CardContent className={classes.content}>
        <Typography gutterBottom variant="headline" component="h2">
            {this.props.recipe.title}
        </Typography>
        <Typography component="p">
            {this.props.recipe.ingredients}
        </Typography>
    </CardContent>
    <CardActions>
        <Button 
            href={this.props.recipe.href}
            Recipe
        </Button> 
    </CardActions>
</Card>
它只是不渲染所有图像;所有其他 props 值都按照它们的需要进行渲染。同样作为 Material UI,我在 JS css 上指定了 CardMedia 高度。
有谁知道为什么会这样?
