为什么一个css文件与html在同一个文件夹下显示不了结果
body,html,div,blockquote,img,label,p,h1,h2,h3,h4,h5,h6,pre,ul,ol,li,dl,dt,dd,form,a,f...
body, html, div, blockquote, img, label, p, h1, h2, h3, h4, h5, h6, pre, ul, ol,
li, dl, dt, dd, form, a, fieldset, input, th, td
{margin: 0; padding: 0; border: 0; outline: none;}
body { font-family: "宋体";font-size: 12px;color:#000000;line-height: 20px;text-align:left; background:url(../img/b.jpg)}
td,th {font-family: "宋体";font-size: 12px;color: #000000;}
a {color: #000000;}
A:link {TEXT-DECORATION: none;}
A:visited {TEXT-DECORATION: none;}
ul,li{list-style-type:none;}
.clearit{clear:both;}
.nav {width:900px; height:1200px; margin:0 auto; background:url(../img/ba.jpg)}
.dao {width:800px; height:50px; text-align:center; line-height:50px; padding-top:80px; margin:0 auto;}
.dao li { width:160px; height:50px; float:left; background:url(../img/t.jpg)}
.dao a { font-size:16px; font-weight:600;}
.dao A:hover { color: #999}
.ban {width:800px; margin:0 auto; margin-top:20px;}
.xia {width:800px; margin:0 auto; margin-top:20px;}
.xia h2 {width:800px; height:30px; border-bottom:1px solid #000; line-height:30px;}
.xia p {line-height:30px; text-indent:2em;}
.tu img {margin-top:20px; margin-left:50px;}
.foot { width:800px; height:70px;background: rgba(255,255,255, 0.6); margin:0 auto;line-height:70px; text-align:center; margin-top:50px; font-size:16px; font-weight:600 } 展开
li, dl, dt, dd, form, a, fieldset, input, th, td
{margin: 0; padding: 0; border: 0; outline: none;}
body { font-family: "宋体";font-size: 12px;color:#000000;line-height: 20px;text-align:left; background:url(../img/b.jpg)}
td,th {font-family: "宋体";font-size: 12px;color: #000000;}
a {color: #000000;}
A:link {TEXT-DECORATION: none;}
A:visited {TEXT-DECORATION: none;}
ul,li{list-style-type:none;}
.clearit{clear:both;}
.nav {width:900px; height:1200px; margin:0 auto; background:url(../img/ba.jpg)}
.dao {width:800px; height:50px; text-align:center; line-height:50px; padding-top:80px; margin:0 auto;}
.dao li { width:160px; height:50px; float:left; background:url(../img/t.jpg)}
.dao a { font-size:16px; font-weight:600;}
.dao A:hover { color: #999}
.ban {width:800px; margin:0 auto; margin-top:20px;}
.xia {width:800px; margin:0 auto; margin-top:20px;}
.xia h2 {width:800px; height:30px; border-bottom:1px solid #000; line-height:30px;}
.xia p {line-height:30px; text-indent:2em;}
.tu img {margin-top:20px; margin-left:50px;}
.foot { width:800px; height:70px;background: rgba(255,255,255, 0.6); margin:0 auto;line-height:70px; text-align:center; margin-top:50px; font-size:16px; font-weight:600 } 展开
2019-06-02
展开全部
用link标签引入文件夹下的css文件,路径分为绝对路径和相对路径,推荐使用相对路径。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询