3

私は初心者の F# プログラミングです。

そして今、F# と Suave で Web を作成しようとしています。次に、このリンクからたどります。

プロジェクトでcssを使用できないという問題があります(画像を参照)

id="box" はブラウザに表示されませんでした

ファイル View.fs

let index container =
html [] [
    head [] [
        title [] "Suave Music Store"
        cssLink "/Site.css"
    ]

    body [] [
        div ["id", "header"] [
            tag "h1" [] [
                a Path.home [] [Text "F# Suave Music Store"]
            ]
        ]

        div ["id", "main"] [
            div ["id", "box"] [
                a Path.Store.browse [] [Text "Test Link"]
                tag "h1" [] [
                    a "http://www.google.com" [] [Text "Google"]
                ]
            ]
        ]
        div ["id", "footer"] [
            Text "built with "
            a "http://fsharp.org" [] [Text "F#"]
            Text " and "
            a "http://suave.io" [] [Text "Suave.IO"]
        ]
    ]
]
|> htmlToString

およびファイル Site.css の #box

#box
{
    border:4px solid #000;
}

どうすれば修正できますか?

4

1 に答える 1