Import local CSS file into a procedure
I got a PL/SQL Web Toolkit project not online (url : http://127.0.0.1:8080/dad/my_procedure). And I just want to know how to import a local CSS file into this procedure... I tried to do something like this :
htp.print('<link href="'C:/Users/Me/Desktop/css/filecss.css" rel="stylesheet" type="text/css" />');
or even
htp.print('<link href="/css/filecss.css" rel="stylesheet" type="text/css" />');
with no success...
In reality I don't know what's the root directory for a pro开发者_开发知识库ject like this.
The CSS file has to be within the HEAD area of the webpage. You should have your htp.print statement between the htp.headopen
and htp.headclose
calls.
Also, the CSS file path is relative to the web server processing the request, so the path should be to the directory on the web server that the CSS file resides.
精彩评论