Angular UI Bootstrap 对话框宽度 [英] Angular UI Bootstrap Dialog Width
问题描述
Angular UI Bootstrap Dialog 易于实现,但难以定制.
The Angular UI Bootstrap Dialog is easy to implement, but difficult to customise.
你到底是如何改变宽度的?甚至最大宽度?
How on earth do you change the width? Or even max-width?
http://angular-ui.github.com/bootstrap/#/dialog
我尝试了 $dialog.dialog({width:600})
和其他变体,但没有任何乐趣.
I've tried $dialog.dialog({width:600})
and other variations but no joy.
推荐答案
检查浏览器控制台中的对话框将看到宽度仅使用 css 设置.文档中的选项允许在正文和/或对话框中使用用户定义的类名,以便您可以针对页面内的各种类型进行调整
Inspect a dialog in browser console will see that width is set with css only. Options in docs allow for user defined class names on body and/or on dialog so you can adjust for various types within page
文档参考:https://github.com/angular-ui/bootstrap/blob/master/src/modal/docs/readme.md
这篇关于Angular UI Bootstrap 对话框宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!