English 中文(简体)
适用于不止一种财产(经营者)的CSS媒体问询的辛金是什么?
原标题:What is the syntax for a CSS media query that applies to more than one property (AND operator)?

我想写出一个符合所有装置的CSS媒体问讯,至少有800px宽和800px高。 这种媒体问询的目的是瞄准桌子,排除电话。 我无需担心桌面,因为我只是针对移动设备。

我开始发言:

@media all and (min-device-width: 800px), all and (min-device-height: 800px)

......然而,我并不认为,如果满足这两种条件之一(逻辑上是OR),那将是真的。

因此,我的下一位学者是:

@media all and (min-device-width: 800px, min-device-height: 800px)

甲型六氯环己烷和乙型六氯环己烷是怎样的?

最佳回答

摘自您的声明

@media all and (min-device-width: 800px) and (min-device-height: 800px) {
  //...........
}

http://www.w3.org/TR/css3-mediaqueries/“rel=“nofollow”>doc

问题回答

这样做。

你们也许不需要检查高空,但是,你们是否能够接触到800px宽度低于800px的装置?

@media screen and (min-width: 800px) and (min-height:800px)




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签