CSSが適用されません
初心者です.
python + flaskでWebアプリケーションを作っています.
その中で自分が使いたいcssファイルを組み合わせようと思っているのですが,CSSが適用されません.
なぜでしょうか?
今の環境の階層は以下の通りです.
static
-mystyle.css
templates
-login.html
###エラーメッセージ
エラーメッセージは出ていませんが,Chromeのデベロッパーツールにて警告として以下のメッセージが出ています.
Failed to load response data Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://127.0.0.1:8080/login".
###ソースコード
login.html
html
1 <head> 2 (一部省略) 3 <!-- Bootstrap CDN --> 4 <link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> 5 <link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> 6 <link rel = "stylesheet" href = "../static/mystyle.css"> 7 </head> 8 <body> 9 <a href = "#" class = "square_btn">BUTTON</a> 10 (一部省略) 11 <script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 12 <script src = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> 13 </body>
mystyle.css
css
1.square_btn { 2 display: inline-block; 3 padding: 0.3em 1em; 4 text-decoration: none; 5 color: #67c5ff; 6 border: solid 2px #67c5ff; 7 border-radius: 3px; 8 transition: .4s; 9}
###試したこと
ChromeやPCの再起動は試しましたが.ダメでした.
###補足情報(言語/FW/ツール等のバージョンなど)
python3を使っています.
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/10/30 04:20
退会済みユーザー
2017/10/30 04:44
2017/10/30 05:01