CSS Sheet 未在移动设备上获取
CSS Sheet not being picked up on Mobile devices
一切都在我的笔记本电脑上完美运行,并且在调整大小等时在浏览器上呈现得很好。我已经上传了所有文件并尝试在我的手机和平板电脑上进行测试,但是我的 css sheet 似乎没有被拾起。我的 headers 是:
<!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">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="http://localhost/mrfcredesign/public/css/mrfc.css"/>
</head>
谁能帮我理智一下?
localhost
在您的 phone 上与您的笔记本电脑上的本地主机不同 - 您需要将样式表上的 href 更改为一个相对的 link(例如 /css/mrfc.css
或类似),或绝对 link 到实际服务器地址。
一切都在我的笔记本电脑上完美运行,并且在调整大小等时在浏览器上呈现得很好。我已经上传了所有文件并尝试在我的手机和平板电脑上进行测试,但是我的 css sheet 似乎没有被拾起。我的 headers 是:
<!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">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="http://localhost/mrfcredesign/public/css/mrfc.css"/>
</head>
谁能帮我理智一下?
localhost
在您的 phone 上与您的笔记本电脑上的本地主机不同 - 您需要将样式表上的 href 更改为一个相对的 link(例如 /css/mrfc.css
或类似),或绝对 link 到实际服务器地址。