簡體   English   中英

語義 UI 和 flask

[英]Semantic UI and flask

我正在嘗試在我的 flask 應用程序模板代碼中使用語義 UI,並嘗試顯示一個文本區域,如下所示:

<div class="ui container">
        <div class="html ui top attached segment" style="margin: 5px auto 0;">
            <div class="ui top attached green massive label">Please paste text in the box below</div>
            <div class="ui form" id="inputForm" method="post">
                <div class="field">
                    <textarea placeholder="Feel free to use free-text to input the patient phenotype description" id="note" name="content">{{request.form['content']}}></textarea>
                </div>
            </div>
        </div>
    </div>

問題是{{request.form['content']}}占位符似乎有問題。 沒有那一點,占位符文本看起來很好,否則它會被單個>替換,如所附屏幕截圖所示。

有什么特別的東西需要改變才能讓它起作用嗎? 我是 web 開發的新手。

在此處輸入圖像描述

好的,想通了。 一個愚蠢的錯誤。 需要是:

<textarea placeholder="Feel free to use free-text to input the patient phenotype description" id="note" name="content" value="{{request.form['content']}}"></textarea>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM