我链接css文件我与asp.net但它一直没有工作,请回复我 [英] I link css file iwith asp.net but it has been not working please revert to me

查看:50
本文介绍了我链接css文件我与asp.net但它一直没有工作,请回复我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I  done one css coding and i linked in asp.net within <head></head> tag but not working.my coding below.please help me.i saved that file name in hyper.css

.link
{color:red;}
.link:hover
{color:blue;}


Asp.net:
<head>
<link href="hyper.css" rel="stylesheet" style="text/css">

<hyperlink id="link"></hyperlink>
</head>

推荐答案

你在css文件中写了.link是一个类,但在你的html上你已经应用了它像ID而不是类,将class属性添加到您的超链接。它应该工作。





还要检查你的css文件是否在页面的同一目录中。有时,如果路径不正确,页面无法找到文件引用。
you have write .link in the css file which is a class , but on your html you have apply it like ID and not by class, add class property to your hyperlink. it should work.


also check if your css file is in the same directory of your page. sometime it happens that page do not able to find the file ref if the path is incorrect.


这篇关于我链接css文件我与asp.net但它一直没有工作,请回复我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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