Flask入门教程页面整体 */ body { margin: auto; max-width: 580px; font-size: 14px; font-family: Helvetica, Arial, sans-serif; } /* 页脚 */ footer { color: #888; margin-top: 15px; text-align: width: 40px; } /* 电影列表 */ .movie-list { list-style-type: none; padding: 0; margin-bottom: 10px; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rg ba(0, 0, 0, 0.12); movie-list li:hover { background-color: #f8f9fa; } /* 龙猫图片 */ .totoro { display: block; margin: 0 auto; height: 100px; } 接着在页面的 标签内引入这个 CSS 文件: templates/index.html:引入 CSS 文件0 码力 | 127 页 | 7.62 MB | 1 年前3
Flask Documentation (1.1.x)background: #eee; padding: 1rem; } body { max-width: 960px; margin: 0 auto; background: white; } h1 { font-family: serif; color: #377ba8; margin: 1rem 0; } a { color: #377ba8; } hr { border: none; border-top: padding: 0 0.5rem; } nav h1 { flex: auto; margin: 0; } nav h1 a { text-decoration: none; padding: 0.25rem 0.5rem; } nav ul { display: flex; list-style: none; margin: 0; padding: 0; } nav ul li a, nav ul li lightgray; display: flex; align-items: flex-end; } .content > header h1 { flex: auto; margin: 1rem 0 0.25rem 0; } .flash { margin: 1em 0; padding: 1em; background: #cae6f6; border: 1px solid #377ba8; } .post0 码力 | 428 页 | 895.98 KB | 1 年前3
Flask Documentation (1.1.x)background: #eee; padding: 1rem; } body { max-width: 960px; margin: 0 auto; background: white; } h1 { font-family: serif; color: #377ba8; margin: 1rem 0; } a { color: #377ba8; } hr { border: none; border-top: padding: 0 0.5rem; } nav h1 { flex: auto; margin: 0; } nav h1 a { text-decoration: none; padding: 0.25rem 0.5rem; } nav ul { display: flex; list-style: none; margin: 0; padding: 0; } nav ul li a, nav ul display: flex; align-items: ˓→flex-end; } .content > header h1 { flex: auto; margin: 1rem 0 0.25rem 0; } .flash { margin: 1em 0; padding: 1em; background: #cae6f6; border: 1px solid #377ba8; ˓→} .post0 码力 | 291 页 | 1.25 MB | 1 年前3
PyMuPDF 1.24.2 Documentationcalculation uses a line height calculated from the fontsize and 36 points (0.5 inches) as bottom margin. Line width is ignored. The surplus part of a line will simply be invisible. However, for built-in per page in this order: 1 3 2 4 ''' page_w = 800 page_h = 600 margin = 50 rect_w = (page_w - 3*margin) / 2 rect_h = (page_h - 3*margin) / 2 if rect_num % 4 == 0: # New page. mediabox = fitz.Rect(0 mediabox = None # Return one of four rects in turn. rect_x = margin + (rect_w+margin) * ((rect_num // 2) % 2) rect_y = margin + (rect_h+margin) * (rect_num % 2) rect = fitz.Rect(rect_x, rect_y, rect_x +0 码力 | 565 页 | 6.84 MB | 1 年前3
PyWebIO v1.6.2 Documentationoutput put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: 20px') In server mode, PyWebIO will start a web server to continuously provide services. When 'color:red')], ]) put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left:20px')) Parameters: Parameters: Parameters: Returns: pywebio.session — More control to 'color:red')], ]) put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left:20px')) Parameters: Returns: Example: Placeholder of output Deprecated since version 10 码力 | 148 页 | 7.46 MB | 1 年前3
PyWebIO v1.5.1 Documentationoutput put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: 20px') In server mode, PyWebIO will start a web server to continuously provide services. When 'color:red')], ]) put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left:20px')) Parameters: Parameters: Parameters: Returns: pywebio.session — More control to 'color:red')], ]) put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left:20px')) Parameters: Returns: Example: Placeholder of output Deprecated since version 10 码力 | 144 页 | 7.46 MB | 1 年前3
PyWebIO v1.6.1 Documentationoutput put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: 20px') In server mode, PyWebIO will start a web server to continuously provide services. When 'color:red')], ]) put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left:20px')) Parameters: Parameters: Parameters: Returns: pywebio.session — More control to 'color:red')], ]) put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left:20px')) Parameters: Returns: Example: Placeholder of output Deprecated since version 10 码力 | 148 页 | 7.46 MB | 1 年前3
PyWebIO v1.6.3 Documentationoutput put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: 20px') In server mode, PyWebIO will start a web server to continuously provide services. When 'color:red')], ]) put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left:20px')) Parameters: Parameters: Parameters: Returns: pywebio.session — More control to 'color:red')], ]) put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left:20px')) Parameters: Returns: Example: Placeholder of output Deprecated since version 10 码力 | 150 页 | 7.46 MB | 1 年前3
PyWebIO v1.6.0 Documentationoutput put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: 20px') In server mode, PyWebIO will start a web server to continuously provide services. When 'color:red')], ]) put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left:20px')) Parameters: Parameters: Parameters: Returns: pywebio.session — More control to 'color:red')], ]) put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left:20px')) Parameters: Returns: Example: Placeholder of output Deprecated since version 10 码力 | 148 页 | 7.46 MB | 1 年前3
PyWebIO v1.5.2 Documentationoutput put_row([ put_text('hello').style('color: red'), put_markdown('markdown') ]).style('margin-top: 20px') In server mode, PyWebIO will start a web server to continuously provide services. When 'color:red')], ]) put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left:20px')) Parameters: Parameters: Parameters: Returns: pywebio.session — More control to 'color:red')], ]) put_collapse('title', style([ put_text('text'), put_markdown('~~del~~'), ], 'margin-left:20px')) Parameters: Returns: Example: Placeholder of output Deprecated since version 10 码力 | 144 页 | 7.46 MB | 1 年前3
共 206 条
- 1
- 2
- 3
- 4
- 5
- 6
- 21













