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).
问问题
45 次
1 回答
0
- 将参数附加到 url:
yoururl.com/main.html?full=0
- 用JS获取参数:https ://stackoverflow.com/a/8463056/2587420
- 用 JS 加载特定的 CSS:http ://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml
于 2013-07-16T13:25:55.283 回答