当前位置: 动力学知识库 > 问答 > 编程问答 >

html - Stylesheets in XAMPP environment not working

问题描述:

I built a web application using XAMPP.

If I access it on another device in the network, the stylesheet is not working:

<link rel="stylesheet" type="text/css" href="http://localhost/LeadCapt/Res/style.css">

I guess I must have other links, not localhost...But which ones?

网友答案:

Try using relative url links instead of absolute url links.

Alternatively copy paste the href of CSS in browser URL to check whether it exists and is available at the location.

分享给朋友:
您可能感兴趣的文章:
随机阅读: