Screenshot of network tab我的外部CSS没有显示样式。我的html中有一个链接,但我认为CSS可能无法正常工作。我需要在样式表中添加其他元素以使显示正常工作吗?
.responsive {
width: 40%;
height: auto;
}
img {
display: block;
margin-left: auto;
margin-right: auto;
}
.simple-subscription-form {
background: #000000;
color: #94C60D;
padding: 2rem;
border-radius: 0;
align-content: center
}
.simple-subscription-form.button {
margin-bottom: 0;
border-radius: 0 0 0 0;
}
#dialog-message {
display: none;
padding: 5px;
height: auto;
width: auto
}
div.hidden {
display: none;
}
答案 0 :(得分:0)
您无法访问文件系统。使用您的项目资源文件夹。
使用<link rel="stylesheet" href="~/Resources/PATH + FILENAME">