我希望我的搜索栏位于大屏幕屏幕右侧,而它应位于小屏幕的中央
表单是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)附近
答案 0 :(得分:0)
for key in d.values()[0].keys():
new_d[key] = [d.values()[i][key] for i in range(len(d.values()))]