试图应用一些媒体查询。媒体查询不起作用?
CSS没有媒体查询
blockquote {
margin: 1.5em 0;
font-family: 'Gentium Basic', Georgia, serif;
font-size: 20px;
line-height: 1.6em;
font-weight: normal;
font-style: italic;
border-left: 1px dotted;
padding: 0 0 0 25px;
left: 50%;
margin-left: -150px;
width: 650px;
}
随后施加的:
/* larger than 800px */
@media only screen and (min-width: 801px) {
#mobileNav {
height: 0 !important;
}
}
/* 800px and smaller */
@media only screen and (max-width: 800px) {
#bannerImage {
background-attachment: scroll !important;
}
blockquote {
margin: 1.5em 0;
font-family: 'Gentium Basic', Georgia, serif;
font-size: 20px;
line-height: 1.6em;
font-weight: normal;
font-style: italic;
border-left: 1px dotted;
padding: 0 0 0 25px;
}
网站here
我想要做的就是有块引用适应屏幕。目前,它这样做时,页面的宽度改变:
当我想它这样做:
可以定义*不工作?* –
你想干什么你的媒体查询呢? – Danield
@Danield更新了问题。 – Michael