<tfoot id='njfeN'></tfoot>
    <bdo id='njfeN'></bdo><ul id='njfeN'></ul>
  • <i id='njfeN'><tr id='njfeN'><dt id='njfeN'><q id='njfeN'><span id='njfeN'><b id='njfeN'><form id='njfeN'><ins id='njfeN'></ins><ul id='njfeN'></ul><sub id='njfeN'></sub></form><legend id='njfeN'></legend><bdo id='njfeN'><pre id='njfeN'><center id='njfeN'></center></pre></bdo></b><th id='njfeN'></th></span></q></dt></tr></i><div id='njfeN'><tfoot id='njfeN'></tfoot><dl id='njfeN'><fieldset id='njfeN'></fieldset></dl></div>

        <legend id='njfeN'><style id='njfeN'><dir id='njfeN'><q id='njfeN'></q></dir></style></legend>
      1. <small id='njfeN'></small><noframes id='njfeN'>

      2. 响应式语义 UI React 网格、列、行

        Responsive Semantic UI React Grid, Columns, Rows(响应式语义 UI React 网格、列、行)
        <i id='Hp26H'><tr id='Hp26H'><dt id='Hp26H'><q id='Hp26H'><span id='Hp26H'><b id='Hp26H'><form id='Hp26H'><ins id='Hp26H'></ins><ul id='Hp26H'></ul><sub id='Hp26H'></sub></form><legend id='Hp26H'></legend><bdo id='Hp26H'><pre id='Hp26H'><center id='Hp26H'></center></pre></bdo></b><th id='Hp26H'></th></span></q></dt></tr></i><div id='Hp26H'><tfoot id='Hp26H'></tfoot><dl id='Hp26H'><fieldset id='Hp26H'></fieldset></dl></div>

            <tbody id='Hp26H'></tbody>
              <tfoot id='Hp26H'></tfoot>
              <legend id='Hp26H'><style id='Hp26H'><dir id='Hp26H'><q id='Hp26H'></q></dir></style></legend>
                • <bdo id='Hp26H'></bdo><ul id='Hp26H'></ul>
                • <small id='Hp26H'></small><noframes id='Hp26H'>

                  本文介绍了响应式语义 UI React 网格、列、行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我无法让 Semantic UI React 网格完全响应,至少以我想要的方式响应桌面、平板电脑和移动设备.

                  I'm having trouble making Semantic UI React grid fully responsive, at least respond the way I want for Desktop, Tablet and Mobile.

                  我在网格列中呈现以下三个组件.

                  I have following three components which I am rendering in Grid Columns.

                  import React,{ Component } from 'react';
                  import { connect } from 'react-redux';
                  import { Grid, Header } from 'semantic-ui-react'
                  import GetJobs from '../../components/Home/GetJobs';
                  import PostForm from '../../components/Home/PostForm';
                  import Feed from '../../components/Home/Feed';
                  import Articles from '../../components/Home/Articles';
                  import './home.css'
                  
                  class Home extends Component {
                    render() {
                      return(
                        <Grid id="home" stackable columns={3}>
                          <Grid.Row>
                            <Grid.Column>
                              <Header>Articles</Header>
                              <Articles/>
                            </Grid.Column>
                            <Grid.Column>
                              <Feed/>
                            </Grid.Column>
                            <Grid.Column>
                              <Header>Jobs</Header>
                              <GetJobs/>
                            </Grid.Column>
                          </Grid.Row>
                        </Grid>
                      )
                    }
                  }
                  
                  export default Home;
                  

                  从桌面设备转移到移动设备时,列可以正确堆叠.它从 3 列变为 1 列.但是,对于平板电脑大小,3 列只是更紧密地安装,而不是在屏幕上有 2 列,1 列堆叠在下方.

                  The columns stack properly when going from desktop to mobile. It goes from 3 to 1 column. However, at tablet size, the 3 columns are just fitted more tightly instead of having 2 columns on the screen, and 1 being stacked below.

                  查看组件组件的平板视图

                  理想情况下,我希望在从台式机切换到平板电脑大小以及从平板电脑切换到移动设备时,Feed 和 Jobs 留在屏幕上,Feed 位于顶部,Jobs 位于下方,Articles 位于底部.

                  Ideally, I'd like Feed and Jobs to stay on the the screen when going from Desktop to Tablet size, and when going from Tablet to Mobile, have Feed on top, Jobs below, and Articles at the bottom.

                  对于如何让这个网格做出这样的响应,我们不胜感激.

                  Any help is appreciated on how to get this grid to respond like this.

                  推荐答案

                  stackable prop 仅在移动设备上折叠列,为了精确控制不同设备上的宽度,您应该使用 响应 道具.您也可以尝试使用 only 和 反向.我做了一个例子来说明如何做到这一点.

                  stackable prop collapses columns only on mobile device, for precise control of widths on diffent devices you should use responsive props. You can also try to play with only and reversed. I made an example that shows how to do this.

                  <Grid>
                    <Grid.Column only='computer' computer={5}>
                      <Header>Articles</Header>
                    </Grid.Column>
                    <Grid.Column mobile={16} tablet={8} computer={5}>
                      <Feed/>
                    </Grid.Column>
                    <Grid.Column mobile={16} tablet={8} computer={5}>
                      <GetJobs/>
                    </Grid.Column>
                    <Grid.Column only='mobile tablet' mobile={16} tablet={16}>
                      <Header>Articles</Header>
                    </Grid.Column>
                  </Grid>
                  

                  这篇关于响应式语义 UI React 网格、列、行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Crop the image using JavaScript(使用 JavaScript 裁剪图像)
                  How do I take code from Codepen, and use it locally?(如何从 Codepen 获取代码并在本地使用?)
                  Overlay HTML5 canvas over image(在图像上覆盖 HTML5 画布)
                  How i quot;writequot; an icon in the context canvas?(我如何“写作上下文画布中的图标?)
                  webkit css resize doesn#39;t work with canvas as child?(webkit css resize 不适用于儿童画布?)
                  Implementing Delete and Edit operations in jqgrid(在 jqgrid 中实现删除和编辑操作)
                    <tfoot id='Rmyf2'></tfoot>
                    <legend id='Rmyf2'><style id='Rmyf2'><dir id='Rmyf2'><q id='Rmyf2'></q></dir></style></legend>

                        <i id='Rmyf2'><tr id='Rmyf2'><dt id='Rmyf2'><q id='Rmyf2'><span id='Rmyf2'><b id='Rmyf2'><form id='Rmyf2'><ins id='Rmyf2'></ins><ul id='Rmyf2'></ul><sub id='Rmyf2'></sub></form><legend id='Rmyf2'></legend><bdo id='Rmyf2'><pre id='Rmyf2'><center id='Rmyf2'></center></pre></bdo></b><th id='Rmyf2'></th></span></q></dt></tr></i><div id='Rmyf2'><tfoot id='Rmyf2'></tfoot><dl id='Rmyf2'><fieldset id='Rmyf2'></fieldset></dl></div>
                      1. <small id='Rmyf2'></small><noframes id='Rmyf2'>

                            <tbody id='Rmyf2'></tbody>

                          • <bdo id='Rmyf2'></bdo><ul id='Rmyf2'></ul>