📜  css 2 个组件并排反应 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:50.585000             🧑  作者: Mango

代码示例1
Suppose this the js file: Use a div (in this case its rowC) to make a row 
--
import Coursebox from './Coursebox';
import Newsbox  from './Newsbox'
 class ContainerRow extends React.Component {
 render(){
    return (
        
); } } Using CSS you can put the two components side-by-side: .rowC{display:flex; flex-direction:row;}