导入不了css,CSS不导入。

为什么我的style.css不对index.html进行更改?

两个文件都完美验证。

文件夹设置:网站> index.html,style.css。

的index.html

new site

Currently available for work

Return to the homepage

blah blah blah lorem ipsum blah blah

  • Design 1

    Nulla et diam risus. Praesent vestibulum augue non purus tincidunt placerat. Sed in orci leo. Duis dignissim nibh vitae lacus placerat et posuere

  • Design 2

    Nulla et diam risus. Praesent vestibulum augue non purus tincidunt placerat. Sed in orci leo. Duis dignissim nibh vitae lacus placerat et posuere

  • Design 3

    Nulla et diam risus. Praesent vestibulum augue non purus tincidunt placerat. Sed in orci leo. Duis dignissim nibh vitae lacus placerat et posuere

  • Design 4

    Nulla et diam risus. Praesent vestibulum augue non purus tincidunt placerat. Sed in orci leo. Duis dignissim nibh vitae lacus placerat et posuere

的style.css

/* Reset */

html, body, div, span, object, h1, h2, h3, h4, h5, h6, p, blockquote, pre,

a, address, code, img,

small, strong, dl, dt, dd, ol, ul, li

fieldset, form, label {

background: transparent;

border: 0;

font-size: 100%;

margin: 0;

outline: 0;

padding: 0;

vertical-align: baseline;

}

body {

background: url(img/background.png) repeat;

font-family: alexandriaflf-bold-webfont,

Constantia,

"Lucida Bright",

"Bitstream Vera Serif",

"Liberation Serif",

serif;

}

ol, ul {

list-style-type: none;

}

/* Type */

@font-face {

font-family: alexandriaflf-bold-webfont;

src: url('type/alexandriaflf-bold-webfont.eot');

src: url('type/alexandriaflf-bold-webfont.eot?#iefix') format('embedded-opentype'),

url('type/alexandriaflf-bold-webfont.woff') format('woff'),

url('type/alexandriaflf-bold-webfont.ttf') format('truetype'),

url('type/alexandriaflf-bold-webfont.svg#') format('svg');

font-weight: normal;

font-style: normal;

}

@font-face {

font-family: alexandriaflf-bolditalic-webfont;

src: url('type/alexandriaflf-bolditalic-webfont.eot');

src: url('type/alexandriaflf-bolditalic-webfont.eot?#iefix') format('embedded-opentype'),

url('type/alexandriaflf-bolditalic-webfont.woff') format('woff'),

url('type/alexandriaflf-bolditalic-webfont.ttf') format('truetype'),

url('type/alexandriaflf-bolditalic-webfont.svg#') format('svg');

font-weight: normal;

font-style: normal;

}

@font-face {

font-family: nevis-webfont;

src: url('type/nevis-webfont.eot');

src: url('type/nevis-webfont.eot?#iefix') format('embedded-opentype'),

url('type/nevis-webfont.woff') format('woff'),

url('type/nevis-webfont.ttf') format('truetype'),

url('type/nevis-webfont.svg#') format('svg');

font-weight: normal;

font-style: normal;

}

h1 {

font-family: nevis-webfont;

font-size: 160%;

font-weight: normal;

letter-spacing: 1px;

text-transform: uppercase;

}

h2 {

font-size: 80%;

font-weight: normal;

}

h3 {

font-size: 80%;

font-weight: bold;

}

p {

font-size: 80%;

}

a {

color: #202020;

text-decoration: none;

}

a:hover {

text-decoration: underline;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值