Php 第二次打开并使用的CSS链接不起作用,也不允许我在CSS文件中更改或添加内容
昨天,当我第二次使用之前的CSS文件时,我遇到了同样的问题。我遇到的问题是,当我将CSS文件用于特定的HTML或PHP文件时,我无法对我的PHP和HTML文件进行任何更改。我确实学习了基本的CSS以及如何链接外部CSS文件,并且外部文件是Php 第二次打开并使用的CSS链接不起作用,也不允许我在CSS文件中更改或添加内容,php,jquery,mysql,html,css,Php,Jquery,Mysql,Html,Css,昨天,当我第二次使用之前的CSS文件时,我遇到了同样的问题。我遇到的问题是,当我将CSS文件用于特定的HTML或PHP文件时,我无法对我的PHP和HTML文件进行任何更改。我确实学习了基本的CSS以及如何链接外部CSS文件,并且外部文件是(这是我目前使用的CSS文件),我不知道我遇到了什么样的问题,但自从我使用括号编辑器时,我就遇到了这种问题,我认为它的系统或其他方面存在某种问题,因为这是我的问题的开始,CSS链接没有连接到我的HTML文件,我现在使用的是sublime free,我仍然遇到问题
(这是我目前使用的CSS文件),我不知道我遇到了什么样的问题,但自从我使用括号编辑器时,我就遇到了这种问题,我认为它的系统或其他方面存在某种问题,因为这是我的问题的开始,CSS链接没有连接到我的HTML文件,我现在使用的是sublime free,我仍然遇到问题,同样的问题也发生在记事本++。请帮助我,因为我真的找不到答案,即使是在互联网上,这个问题对我来说在未来会变得很难
这是我的PHP文件,我正在尝试创建自己的注册页面
<?php
include('seasion.php');
include('hFunction.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>register</title>
<link rel="stylesheet" type="text/css" href="signcss.css">
<?php include('bootstrap.php');?>
<script type="text/javascript" src="jquery.min.js"></script>
</head>
<body>
<div class="container">
<h1>Start here <span class="glyphicon glyphicon-pencil"></span></h1><hr class="style">
<div class="error"><?php echo $error; ?></div>
<form method = "post">
<div id="box">
<h3>Reminder:</h3>
<p>Once you have been signed up click here.<a href="../index.html"> Home</a></p>
<p style="color:red;">Hello and welcome to login/sign up page. Reworking the sign up page. Doing stuff with the Database or re-learning the mysql database</p>
<p style="color:red;">Reminder if you want to log out, you will need to come back to this page if you want to logout. </p>
<p>If you're already signed up go to do the login page</p>
<button href="hapibeelog-in.php">Login</button>
</div>
<div class="form-group">
<label for="name">First Name:</label>
<input name="name" type="text" class="form-control" placeholder="Name">
<label for="name">Last Name:</label>
<input name="name" type="text" class="form-control" placeholder="Name">
<label for="email">Email Address:</label>
<input name="email" type="email" class="form-control" placeholder="Email address">
<label for="phone-number">Phone number:</label>
<input name="phone-number" type="text" class="form-control" placeholder="Phone number">
<label for="password">Password:</label>
<input name="password" type="password" class="form-control" placeholder="Password"><br>
<input type="checkbox" name="stayLoggedIn" value="1">
<input type="hidden" name="signUp" value="1">
<input type="submit" name="submit" value="Sign up!">
</div>
<div class="break"></div>
</form><br><hr class="style">
</div>
<?php include('bscript.php');?>
</body>
<footer>
<div class="footerL">
<h5>Date:2/21/17</h5>
<h3>Source:</h3>
<ul>
<li>https://www.udemy.com/the-web-developer-bootcamp/learn/v4/content</li>
<li>www.w3schools.com</li>
<li>www.getbootstrap.com</li>
<li>www.css-tricks.com</li>
</ul>
</div>
<div class="footerR">
<p>King st.</p>
</div>
</footer>
</html>
不计算
当我将CSS文件用于特定的HTML或PHP文件时,我无法对我的PHP和HTML文件的CSS进行任何更改
你的标题听起来像是在试图解释缓存问题。尝试在浏览器中执行CTRL+F5或SHIFT+F5,然后查看CSS是否更新。您还可以将?v1
添加到链接的href
,例如:href=“signcss.css?v1”
,并在每次进行更改时增加该值。如果这确实解决了您的问题,那么问题在于您的浏览器只是在缓存CSS。因为它已经获取了一次,所以它试图通过重新使用它已经拥有的文件来节省下次访问的时间,所以不会显示任何更新。您可以使用上述方法强制它重新下载CSS。非常感谢!v1真的很有效。我使用CSS对mines做了一些修改,它确实起了作用。我需要更多地了解缓存问题。
body{
}
hr.style {
border: 0;
height: 1px;
background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
margin: 10px;
}
#box{
border:1px solid #a6a6a6;
border-radius: 0.5em;
background-color: #d9d9d9;
padding:10px;
margin:0 auto;
height: 350px;
width: 320px;
top:100px;
right:100px;
float:right;
}
input.form-control{
width: 500px;
}
.break {
clear: both;
}
footer{
width: 75%;
margin:10px auto;
}
.footerR{
float:right;
}
.footerL{
float:left;
}