[英]Zurb Foundation, Media Queries
I am new to web development, i am trying using foundations media query. 我是网络开发的新手,我正在尝试使用基础媒体查询。 However the following code that I have typed inside a style.css file does not seem to work.
但是,我在style.css文件中键入的以下代码似乎不起作用。
What have I done wrong, should it be included in the style.css file. 如果它包含在style.css文件中,我做错了什么。
@media only screen and (min-width: 40.063em) {
font-size:11ems;
background:color:red;
border-left:1px solid green;
}
First thing I can see is you don't seem to be targeting anything inside your media query block. 我可以看到的第一件事是你似乎没有针对媒体查询块中的任何内容。 eg
.class{property:value;}
例如
.class{property:value;}
Also, your background color property should be background-color:red;
此外,您的背景颜色属性应为
background-color:red;
and I think it should be em
instead of ems
for font-size
我认为它应该是
em
而不是font-size
的ems
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.