twitter bootstrap query 如何添加響應式媒體查詢



media query (1)

如果你正在談論css3響應媒體查詢,你必須像這樣添加

<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
body {
    background-color:lightgreen;
}

@media only screen and (max-width: 500px) {
    body {
        background-color:lightblue;
    }
}
</style>
</head>

這是一個示例代碼,但我不能添加響應。如何添加我的代碼響應媒體查詢?

<form action="action_page.php">
First name:<br>
<input type="text" name="firstname" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
<input type="submit" value="Submit">
</form> 




media-queries