如何在一个页面中使用不同的css文件。 [英] how to use different css file in one page.

查看:104
本文介绍了如何在一个页面中使用不同的css文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好


我有一个问题,如何在一个页面中使用不同的CSS文件。

在该页面中如何使用下拉菜单传递链接并选择css文件的链接,它将改变整页的颜色。



Plz ................. .........

尽快回复我。


谢谢

hello

I have a problem that how to use different css files in one single page.
In that page how to pass link using dropdown menu and select link for css file and it will change the color of whole page.


Plz..........................
Reply me as soon as possible.

Thanks

推荐答案

设置页面的样式表,其ID为:

[HTML]< link rel =" stylesheet" HREF =" col.css"类型= QUOT;文本/ CSS" ID = QUOT; SS" /> [/ HTML]然后在选择新文件时,将href设置为新文件:
Set the stylesheet for the page with an id:
[HTML]<link rel="stylesheet" href="col.css" type="text/css" id="ss" />[/HTML] then when a new file is chosen, set the href to the new file:
展开 | 选择 | Wrap | 行号



为具有id的页面设置样式表:

[HTML]< link rel =" stylesheet" HREF =" col.css"类型= QUOT;文本/ CSS" ID = QUOT; SS" /> [/ HTML]然后在选择新文件时,将href设置为新文件:
Set the stylesheet for the page with an id:
[HTML]<link rel="stylesheet" href="col.css" type="text/css" id="ss" />[/HTML] then when a new file is chosen, set the href to the new file:
展开 | 选择 | Wrap | 行号


在您的css文件中,将页面上所有对象的颜色设置为您需要的颜色。
In your css files, set the colours of all the objects on the page to whatever you require.


这篇关于如何在一个页面中使用不同的css文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆