简体   繁体   English

标头css / bootstrap问题,很奇怪

[英]Headers css/bootstrap issues, strange

I do not understand what is going on here. 我不明白这是怎么回事。

This is my file-data "structure": 这是我的文件数据“结构”:

在此处输入图片说明

Over here is the content of my folder "css" 这是我的文件夹“ css”的内容

在此处输入图片说明

So, in my program: this files"estudiante.php","editar.php" and "hola.php" got the same header. 因此,在我的程序中:该文件“ estudiante.php”,“ editar.php”和“ hola.php”具有相同的头。 Take a look: 看一看:

    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>


</head>

The problem is that i could not link the file "estilos.css" from the "css" folder because i was given some errors while i was checking the inspect element tool using chrome: 问题是我无法从“ css”文件夹链接文件“ estilos.css”,因为在使用chrome检查检查元素工具时出现了一些错误:

在此处输入图片说明

But it is strange, because i wrote this line on my header: 但这很奇怪,因为我在标头上写了这一行:

<meta name="viewport" content="width=device-width, initial-scale=1">

That line makes my page responsive, but those commands are in my estilos.css file.. i don get it, take a look: 那行使我的页面响应,但是这些命令在我的estilos.css文件中。我不明白,看一下:

在此处输入图片说明

So, estilos.css doesnt appear in my code but the header uses the content and makes my website responsive?. 因此,estilos.css没有出现在我的代码中,但是标题使用了内容并使我的网站具有响应能力? I dont understand this mates :( 我不明白这个队友:(

Double-check your file naming conventions. 仔细检查您的文件命名约定。 It looks like you're hiding file extensions, since bootstrap , bootstrap.min , etc don't have .css on the end, but estilos.css does. 看来您正在隐藏文件扩展名,因为bootstrapbootstrap.min等结尾没有.css ,而estilos.css It's possible your file is actually named estilos.css.css and you aren't aware. 您的文件实际上可能名为estilos.css.css ,但您可能不知道。

https://www.howtogeek.com/205086/beginner-how-to-make-windows-show-file-extensions/ https://www.howtogeek.com/205086/beginner-how-to-make-windows-show-file-extensions/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM