Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Twitter Bootstrap CSSをERBファイルに追加してSinatraで実行しようとしていますが、CSSが表示されません。
私のコード:
<link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
私のフォルダ構造はコードでも同じです。
私はすでに試しましたがhref="lib/...、href="../lib/...機能しません
href="lib/...
href="../lib/...
解決策はありますか?
bootstrap.min.cssSinatrapublicディレクトリにコピーする必要があります。次に、以下を使用します。
bootstrap.min.css
public
<link rel="stylesheet" href="/bootstrap.min.css">
あなたのページにそれを含めるために。