HTML not loading CSS file

前端 未结 25 1397
执念已碎
执念已碎 2020-12-01 13:55

I am completely stumped as to why this doesn\'t work. It seems the HTML file can\'t load the CSS for some reason, even though both are in the same directory. Any idea what m

25条回答
  •  死守一世寂寞
    2020-12-01 14:49

    This may be a 'special' case but was fiddling with this piece of code:

    ForceType application/x-httpd-php SetHandler application/x-httpd-php

    As a quick test for extentionless file handling, when a similar problem occurred.

    Some but not all php files thereafter treated the css files as php and thus succesfully loaded the css but not handled it as css, thus zero rules were executed when checking f12 style editor.

    Perhaps something similar might occur to any-one else here and this tidbit might help.

提交回复
热议问题