php - Two Similar CSS files in a website -


i have 1 css file(reset.css) in main page index.php.

inside index.php, loading php page(secondary.php). css in reset.css not getting applied on secondary.php (now sure why happening.)

i have 2 questions here :

1.) why secondry.php not taking reset.css styles. 2.) resolve issue, ok me place similar reset.css file in secondary.php ?

any highly useful.

code including secondary.php

$("#tab2_load").load('seconday.php'); 

first, add id style tags so:

<link id="someid" rel="stylesheet" href="refresh.css" /> 

next, in javascript add following function:

function reloadstyle(s){     $('#someid').attr('href',s); } 

now after line $("#tab2_load").load('seconday.php'); call function reloadstyle()

reloadstyle( 'refresh.css?v='+math.random(0,100) ); 

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -