梦见世界

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
Form.as_p() :as_p() renders the form as a series of <p> tags, with each <p> containing one field:
                  把form中的每项内容放置在<p></p>标签中
Form.as_ul():renders the form as a series of <li> tags, with each <li> containing one field. It does not include the <ul> or</ul>, so that you can specify any                            HTML attributes on the <ul> for flexibility:
                   把form的每项内容放置在<li></li>标签中
Form.as_table():Finally, as_table() outputs the form as an HTML <table>. This is exactly the same as print. In fact, when you printa form object, it calls                                     its as_table() method behind the scenes:
                        按照table来输出,默认就是按照table方式输出
posted on 2015-08-18 11:26  梦见世界  阅读(153)  评论(0编辑  收藏  举报