This is a weird problem which I have been getting when linking my html file to a css file. I am running the app using Flask on PyCharm.
**staticstyle.css**
body {
color: #fffa;
}
**templatesase.html**
...
<link rel="stlyesheet" href="{{ url_for('static', filename='style.css')}}">
...
<body>{% block content %} {% endblock %}</body>
**templateshome.html**
{% extends 'base.html' %}
...
{% block content %} example {% endblock %}
As a result, the string 'example' is printed on the website as I am able to highlight it but it appears to be "invisible" as I cannot see the texts without the manually selecting them (i.e., the screen is just blank perhaps due to text being white?) but I cannot prove the latter because even when I change the color in css to black or red it just remains invisible.
question from:
https://stackoverflow.com/questions/66051884/flask-css-turns-html-texts-invisible-on-app 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…