html后缀改为php后,html所有内容无法显示
<?phprequire_once'../include.php';?><!DOCTYPEhtml><htmllang="en"><head><metacharset="...
<?php
require_once '../include.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登录</title>
<link rel="stylesheet" href="../css/senior_login.css">
<link rel="stylesheet" href="../css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div style="height:1px;"></div><!-- 用div做一个1px高的线条 ,否则背景分块 -->
<div class="login">
<header>
<h1>登录</h1>
</header>
<div class="content">
<form action="dologin.php">
<div class="name">
<label>
<i class="sublist-icon glyphicon glyphicon-user"></i>
</label>
<input type="text" placeholder="这里输入登录名" class="name_inp" name="login_user">
</div>
<div class="name" method="post">
<label>
<i class="sublist-icon glyphicon glyphicon-pencil"></i>
</label>
<input type="text" placeholder="这里输入登录密码" class="name_inp">
</div>
<div class="name">
<label>
<i class="glyphicon glyphicon-barcode"></i>
</label>
<input type="text" placeholder="验证码" class="name_inp">
</div>
<img src="../lib/getVerify.php" alt="" >
<button class="login_button" >登陆</button>
</form>
</div>
</div>
</body>
</html>
html不止css不显示,所有都没有了,只有个验证码,用php写的 展开
require_once '../include.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登录</title>
<link rel="stylesheet" href="../css/senior_login.css">
<link rel="stylesheet" href="../css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div style="height:1px;"></div><!-- 用div做一个1px高的线条 ,否则背景分块 -->
<div class="login">
<header>
<h1>登录</h1>
</header>
<div class="content">
<form action="dologin.php">
<div class="name">
<label>
<i class="sublist-icon glyphicon glyphicon-user"></i>
</label>
<input type="text" placeholder="这里输入登录名" class="name_inp" name="login_user">
</div>
<div class="name" method="post">
<label>
<i class="sublist-icon glyphicon glyphicon-pencil"></i>
</label>
<input type="text" placeholder="这里输入登录密码" class="name_inp">
</div>
<div class="name">
<label>
<i class="glyphicon glyphicon-barcode"></i>
</label>
<input type="text" placeholder="验证码" class="name_inp">
</div>
<img src="../lib/getVerify.php" alt="" >
<button class="login_button" >登陆</button>
</form>
</div>
</div>
</body>
</html>
html不止css不显示,所有都没有了,只有个验证码,用php写的 展开
2个回答
展开全部
把引入样式的相对地址改成绝对地址
比如 <link rel="stylesheet" href="../css/senior_login.css"> 改成
<link rel="stylesheet" href="http://xxx.com/css/senior_login.css">
比如 <link rel="stylesheet" href="../css/senior_login.css"> 改成
<link rel="stylesheet" href="http://xxx.com/css/senior_login.css">
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询