开发者

PHP Include without Parent CSS Being Applied

I have index.php which 开发者_StackOverflow社区uses its own style.css.

I'm including helloworld.php which uses style2.css and JavaScript (it's an image gallery).

When I include helloworld.php on index.php, style2.css gets completely ignored and seemingly not loaded at all. And when I copy the contents of style2.css into style.css, I get the same results - nothing from the included file gets styled properly.

I'm a little bit new at this - is this even possible?


Are you including the link to the other style sheet in your headers on idex.php? Try this.

examples (place inside open / closing tags)

<link rel="stylesheet" type="text/css" href="path/to/style1.css">

<link rel="stylesheet" type="text/css" href="path/to/style2.css">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜