我想从我的 ubuntu 系统中的文件夹启动一个 php 服务器我尝试了以下命令。
php -S localhost:8000
Run Code Online (Sandbox Code Playgroud)
但它没有启动服务器。我得到以下输出
Usage: php [options] [-f] <file> [--] [args...]
php [options] -r <code> [--] [args...]
php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
php [options] -- [args...]
php [options] -a
-a Run as interactive shell
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e …Run Code Online (Sandbox Code Playgroud) 我正在通过width根据大小更改 div来使页面具有响应性,但除了宽度之外,我能够更改的每个属性width都没有改变。
我的 HTML 代码和元素样式
#main {
width: 100%;
display: flex;
flex-wrap: wrap;
}
#main div {
width: 100%;
}
@media screen and (max-width: 700px) {
#red {
display: none;
}
body {
background-color: yellow;
}
#blue {
width: 75%;
}Run Code Online (Sandbox Code Playgroud)
<body>
<div id="main">
<div id="red" style="background-color: red;">RED COLOR</div>
<div id="blue" style="background-color: blue;">BLUE COLOR</div>
<div id="green" style="background-color: orange;">GREEN color</div>
</div>Run Code Online (Sandbox Code Playgroud)
这是我尝试过的代码,但除了width我能够更改的每个属性如何更改width属性?