Bootstrap 3 - 在折叠时以自定义方式重新排列列中的div(Bootstrap 3 - rearranging divs within columns in a custom way on collapse)
这有点难以解释,所以请参考下面的视觉辅助工具。
当前桌面版 - > http://i.stack.imgur.com/SdNp4.png
当前手机版 - > http://i.stack.imgur.com/CjddY.png
所需的移动版本 - > http://i.stack.imgur.com/7hxxl.png
JSBin - > http://jsbin.com/wisurozilo/1/edit?output
我不确定这样做的最好方法,因为我是一名PHP / MySQL开发人员,这需要客户端专业知识。 关于如何获得所需移动版本的任何建议?
没有要求将div组合在一列中,只是它们以所需方式呈现的方式崩溃。
This is sort of difficult to explain, so please refer to the visual aids below.
Current Desktop Version -> http://i.stack.imgur.com/SdNp4.png
Current Mobile Version -> http://i.stack.imgur.com/CjddY.png
Desired Mobile Version -> http://i.stack.imgur.com/7hxxl.png
JSBin -> http://jsbin.com/wisurozilo/1/edit?output
I'm not sure of the best way to do this as I am a PHP/MySQL developer and this defintely requires client-side expertise. Any suggestions on how I can get the Desired Mobile Version?
There is no requirement to combine the divs within one column, just that they collapse in a way that is presented in the desired fashion.
原文:https://stackoverflow.com/questions/31215434
满意答案
我可能会使用这种方法
words = params[:some_word_list] @list = List.new # List.find() if you're updating @list.words = [] if @list.persisted? words.each do |w| word = Word.find_or_create_by(:word => w) @list.words << word end @list.save
希望能帮助到你
I would probably use this approach
words = params[:some_word_list] @list = List.new # List.find() if you're updating @list.words = [] if @list.persisted? words.each do |w| word = Word.find_or_create_by(:word => w) @list.words << word end @list.save
Hope it helps
相关问答
更多Rails - 有许多多个嵌套关联(Rails - Has Many multiple nested association)
嵌套表单更新has-many parent AND创建一个* single *子对象(nested form to update has-many parent AND create a *single* child object)
Rails:从has-many关联中获取所有关联模型(Rails: Get all associated models from has-many association)
Rails嵌套关联和重新编号(Rails nested association and restarted numbering)
无法通过rails 4视图中的has-many设置if else条件(unable to set if else conditions with has-many through association in rails 4 view)
基于嵌套对象存在修改has-many中的关联(Modifing association in has-many through based on nested object existance)
错误:表单中有很多关系,更新时有重复数据(Error: has-many relationship in form, duplicate data when update)
Rails 5嵌套资源具有多个通过关联的URL(Rails 5 Nested Resources Urls with Has-Many Through Association)
多态关联和嵌套属性(Polymorphic association and nested attributes)
Rails查询与嵌套关联和组(由关联对象)(Rails Query with nested association and group ( by associated object))
相关文章
更多BootStrap入门教程 (一)
Solr: a custom Search RequestHandler
BootStrap入门教程 (二)
BootStrap入门教程 (四)
BootStrap入门教程 (三)
Custom SOLR Search Components - 2 Dev Tricks
Hadoop0.20+ custom MultipleOutputFormat
My W3C Custom Mapping File
[How to] Make custom search with Nutch(v 1.0)?(转)
Bootstrap基础视频教程-尚学堂视频教程
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!