put css code inside demo, close #5364

pull/5347/merge
afc163 8 years ago
parent 061e297b66
commit 0ed66cf20b

@ -29,3 +29,15 @@ ReactDOM.render(
</Carousel> </Carousel>
, mountNode); , mountNode);
```` ````
````css
// For demo
.ant-carousel .slick-slide {
text-align: center;
height: 160px;
line-height: 160px;
background: #364d79;
color: #fff;
overflow: hidden;
}
````

@ -25,14 +25,3 @@ A carousel component. Scales with its container.
| afterChange | Callback function called after the current index changes | function(current) | | afterChange | Callback function called after the current index changes | function(current) |
For more info on the parameters, refer to the https://github.com/akiran/react-slick For more info on the parameters, refer to the https://github.com/akiran/react-slick
<style>
.ant-carousel .slick-slide {
text-align: center;
height: 160px;
line-height: 160px;
background: #364d79;
color: #fff;
overflow: hidden;
}
</style>

@ -26,14 +26,3 @@ subtitle: 走马灯
| afterChange | 切换面板的回调 | function(current) | 无 | afterChange | 切换面板的回调 | function(current) | 无
更多参数可参考https://github.com/akiran/react-slick 更多参数可参考https://github.com/akiran/react-slick
<style>
.ant-carousel .slick-slide {
text-align: center;
height: 160px;
line-height: 130px;
background: #506b9e;
color: #fff;
overflow: hidden;
}
</style>

Loading…
Cancel
Save