Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Gridster 的“add_widget”方法添加网格。小部件已成功添加,但无序列表 (ul) 宽度小于其内容。
谁能告诉我如何根据内容调整 Gridster 中的高度和宽度。
几年前我做的一件事是通过 javascript 重新创建样式,然后用新样式替换旧样式。您还需要设置 {autogenerate_stylesheet_opt: false}。希望这可以帮助!
参考: http: //gridster.net/#autogenerate_stylesheet_opt