www.stfm.net > Ϊʲô@mEDiA only sCrEEn AnD (mAx%wiDth:768px) ...

Ϊʲô@mEDiA only sCrEEn AnD (mAx%wiDth:768px) ...

λãýѯ룬ʾֻĻߴС639صʱŻӦʽҪֻӦ㻹Ҫд仰

Ҫʲô˼@media screen and (max-width:768px) {}˼ǣֻΪ768Ļȵ豸вŻЧ ˼Ҳǣֻʹ768ؿµ豸鿴ܿЧһִĵĻȶ...

@media screen and (max-width:1024px) {background-images:url(images/allbg2.png)} 仰˼ĻӴڳߴС1024 ص豸޸ıͼ񣬶ǸĵԷֱʡĻֱָĻʾĿĻߴָ...

ǿԵģjsһ㣬ҲԵģ һù÷Ҳ汾ʽ jsȡûߴӦcssʽ

ᣬд˵Сȴﵽ800pxʱŻ a ϼӸͼ ҪͼƬôǴڵ800pxſ

@media only screenֻ(only)ԲɫĻ豸˼ÿ鶼ȻandĻߴ磬һõģԣظ塣 ͺñȣ170cm160cmȵȣ@media only screen൱ڡˡһ෽...

ý640px

/* ӡʽ */ @media print { color: red; } /* ֻСĻֳ豸 */ @media screen and (min-width: 320px) and (max-width: 480px) { body { background: yellow; } } /* ƽ֮Ŀ 1024 豸 */ @media only screen and (min-...

htmlcssļǷͳһĺʵʱļʽͳһ Խwebhttp://ʽ

@media all and (max-width:600px){.nav{display:none;}} һд

վͼ

All rights reserved Powered by www.stfm.net

copyright ©right 2010-2021
www.stfm.net磬ַϵͷzhit325@qq.com