如何在大屏幕上将表格向右推,并在小屏幕上放入中间

时间:2017-09-26 09:00:54

标签: html

我希望我的搜索栏位于大屏幕屏幕右侧,而它应位于小屏幕的中央

表单是bootstrap 4表单, 这是导航栏的代码:

public downloadImageJpeg(instanceUID: string, format: string): string 
{
  let url = this.getRootUrl() + mode=download`;
  console.log('url', url);
  window.open(url);
  return url;
}

我在小屏幕上使用了媒体查询:

<nav class="navbar navbar-expand-sm navbar-dark navbar-inverse bg-dark justify-content-between fixed-top">
      <a class="navbar-brand d-none d-sm-block text-white">Daking</a>
        <form class="form-inline my-2 my-lg-0 ">
          <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">      
        </form>
    </nav>

但在大屏幕(桌面)上,它将其定位在品牌名称(daking)附近

1 个答案:

答案 0 :(得分:0)

for key in d.values()[0].keys():
    new_d[key] = [d.values()[i][key] for i in range(len(d.values()))]