How to load an CSS file correctly using an absolute path?

I want to reference style.css in index.html. Here"s the directory structure:
clipboard.png
when I use relative paths, styles can be loaded:

<link rel="stylesheet" href="../static/css/style.css" />

failed to use absolute path:

<link rel="stylesheet" href="/static/css/style.css" />

or either / module/static... or / python/module/static... cannot be loaded.
excuse me, is this the social reason?
how to correctly fill in the absolute path in link?

May.06,2022

start with your E disk, E:/py_web/python/module/static/css/style.css


first / static/css/style.css is also a relative path, which is relative to the root directory. If you want to use this path, first you need to figure out what the root directory is. If your web framework can route the static file root of the site, for example, to the static folder, then the css path can be written as / css/style.css . If not set, the root path usually corresponds to the root directory of the hard disk.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3fc69-2c4a1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3fc69-2c4a1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?