今天试着用Notepad 写html,另外建了一个css文档。。但是css连不上html,写了很多
css但是不显示。想问下大家原因,非常感谢!!!
我在桌面建了一个叫Nel Websie的folder,里面有htm和css文档。
Notepad Html code:
Home
href="C:\Users\karl886\Desktop\Nel Websie\style\style.css"/>
aaaa
uyugyyf
Home
About Us
Services
Hours & Locations
A Quique Experience
XX Hair Salon & Beauty Spa has dedicated its
business to servcing our clients with affordable luxury in a freindly,
soothing, relaxing atmosphere. Our team of experts will provide you
with an exceptional level of personal care and attention that will help
you look and feel your best.
Notepad CSS code:
body {
background-color:blue;
}
div {font-color:red;}
d****i 发帖数: 4809
2
Not an expert on this. But I think you need to put the css link as:
where /path/to/your/cssdir is the root directory containing all css files on
your web server (e.g., Apache). Using file protocol may not be permitted in
some browsers.