響應式web設計之CSS3 Media Queries

http://www.cnblogs.com/mofish/archive/2012/05/23/2515218.htmlhtml

 

For example:spa

 

#block1, #block2 {
    float: left;
    width: 100%;
}

@media (min-width: 1000px) {
    #block1, #block2 {
        width: 50%;
    }
}

 

This example shows the 2 blocks on big screens next to each other, while on small screens they will be displayed below each other.code

相關文章
相關標籤/搜索