-3

I have a welcome page, which have two buttons- "full" version and simplified. Both will redirect to same page, but depending on which button was "main" page entered through I want to load different CSS file (simplified version will only have background colors, not images). How can it be done? (I'd preffer javascript, html and css).

4

1 回答 1

0
  1. 将参数附加到 url:yoururl.com/main.html?full=0
  2. 用JS获取参数:https ://stackoverflow.com/a/8463056/2587420
  3. 用 JS 加载特定的 CSS:http ://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml
于 2013-07-16T13:25:55.283 回答