【发布时间】:2014-08-20 00:34:20
【问题描述】:
是否可以在引导程序中将 div 从一行移动到另一行? 我需要这样的东西:
台式机/平板电脑:
-----------------------------
|Brand |search| #row1
-----------------------------
|Menu: | MAIN CONTENT |
|-link 1| | #row2
|-link 2| |
|-link 3| |
------------------------------
手机:
-----------
|Brand | #row1
-----------
|Menu: =|
|-link 1 | #row2 (expanding/collapsing navbar with menu and search form)
|-link 2 |
|-link 3 |
| search |
| |
| Main |
| content | #row2
| ... |
| ... |
-----------
在移动设备上,我需要将搜索表单从 #row1 移动到 #row2 中的折叠菜单。
【问题讨论】:
-
您要移动搜索吗?
-
一个选项是复制第 2 行中的搜索区域并使其仅在移动屏幕尺寸上可见。
-
你可以用jQuery克隆它或者像上面那样做,在侧边栏的那个上使用visible-xs类,在标题的那个上使用hidden-xs。 GetBootstrap.com 进入响应式实用程序部分
标签: html css twitter-bootstrap