我试图使用不同的CSS样式表用于不同的布局(正如你已经从标题中猜到的那样),但遗憾的是没有任何工作.
我试着加载CSS文件
<link rel="stylesheet" href="css/medium-main.css" type="text/css" media="screen and (max-width: 800px)" />
Run Code Online (Sandbox Code Playgroud)
在meta标签中我也尝试过使用
@media (min-width: 401px) and (max-width: 800px) {
.page{max-width:730px; margin:0 auto; display: block; height:850px; float:left; }
}
Run Code Online (Sandbox Code Playgroud)
在主css文件中,但不会发生任何更改.
这是我的标题的样子:
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/image-slides.css" type="text/css">
<link rel="stylesheet" href="css/jquery.mCustomScrollbar.css" type="text/css" />
<link rel="stylesheet" href="css/main.css" type="text/css" />
<link rel="stylesheet" href="css/medium-main.css" type="text/css" media="screen and (max-width: 800px)" />
Run Code Online (Sandbox Code Playgroud)
我想要改变的CSS属性是一个简单的div的宽度,所以当我调整浏览器大小时没有任何反应.
我的代码出了什么问题?
我的问题是我的登录表单将我带到login.process页面,并给我未定义的索引错误,所以我打印了数组,它没有数据?
的login.php
<!-- Form -->
<form method="POST" action="login.process.php">
<label>Username or Email</label>
<input id="username" type="text" class="input-block-level" placeholder="Your Username or Email address"/>
<label>Password</label>
<input id="password" type="password" class="input-block-level margin-none" placeholder="Your Password" />
<div class="separator bottom"></div>
<div class="row-fluid">
<div class="span8">
<div class="uniformjs"><label class="checkbox"><input type="checkbox" value="remember-me">Remember me</label></div>
</div>
<div class="span4 center">
<button class="btn btn-block btn-inverse" id="submit" type="submit">Sign in</button>
</div>
</div>
</form>
<!-- // Form END -->
Run Code Online (Sandbox Code Playgroud)
Login.process.php
if (isset($_POST)) {
print_r ($_POST);
if (isset($_POST['username'])) {
// username and password sent from form
$username=$_POST['username'];
$password=$_POST['password'];
include("../config.php"); …Run Code Online (Sandbox Code Playgroud) 我想快速检查用户是否有权查看页面,因此我有一个函数,它只是在调用时返回用户访问级别并将其转换为变量但想知道如何编写if语句. ..
这是我到目前为止:
if($uac_check == "Owner" OR "Admin") {
echo "You have Access";
} else {
echo "No access for you!";
}
Run Code Online (Sandbox Code Playgroud)
有人能帮忙吗?
这可能是一个非常基本的问题,但我真的不明白发生了什么.
如果我var在Javascript中有几个s,如下所示:
var cube1 = paper.rect(200, 200, 0, 0);
var cube2 = paper.rect(300, 200, 0, 0);
...
Run Code Online (Sandbox Code Playgroud)
它去了cube99.
要捕获所有多维数据集,我在循环中执行以下操作:
for(var i = 0; i < 100; i++) {
cube+i.attr(fill: '#000');
console.log(i);
}
Run Code Online (Sandbox Code Playgroud)
但它给我一个未定义的错误,"立方体不可用".
为什么会这样?