JSX使用高度样式?(Styling in JSX using height?)

我怎么能让jumbotron下降几个像素

<div className="jumbotron" style={{height: '-40px'}}>

这似乎并不奏效

how can i make the jumbotron go down few pixels

<div className="jumbotron" style={{height: '-40px'}}>

this doesn't seem to work

最满意答案

您不能在height CSS属性中使用负值

不接受像height:-100px这样的负值。

You can not use negative values in height css property

Negative values like height: -100px are not accepted.

更多推荐

jumbotron,'-,px',<div,电脑培训,计算机培训,IT培训"/> <meta name=