简体   繁体   English

当我使用中继标记CSS时未加载

[英]When I am using meta tag css is not getting loaded

When I am using the meta tag css is not getting loaded properly. 当我使用meta标签时,css无法正确加载。

Here is my meta tag that I am using. 这是我正在使用的meta标签。

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>

I am using the above tag to disable the auto zooming of input fields in phones(iphone), but I have observed that, unfortunately when I am using above (meta)tag css is not getting loaded. 我正在使用上面的标签来禁用手机(iphone)中输入字段的自动缩放,但是我观察到,不幸的是,当我使用上面的(元)标签css时,没有加载。

EDIT 编辑

Here is my html around meta tag 这是我围绕meta标签的html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/styles/some_file.css" />
<link rel="stylesheet" href="/styles/file2.css" />

我的问题已通过meta标签的修改版本得到解决,我正在使用以下代码

<meta name="viewport" content="user-scalable=no" />

This my site header tag and its working for me: 这是我的网站标题标签,它对我有用:

<meta content='True' name='HandheldFriendly' />
<meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' name='viewport' />

暂无
暂无

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

相关问题 为什么我在使用img标签时会被禁止403? - Why am i getting a 403 forbidden when using a img tag? CSS 文件未在 HTML 文件中加载。 我正在使用 Netbeans IDE - CSS file is not getting loaded in HTML file. I am using Netbeans IDE 为什么我在申请时会收到 Chrome 错误<meta>为了响应? - Why am I getting a Chrome error when applying <meta> for responsiveness? 尝试在Colfusion中使用JavaScript将src属性添加到img标签时,为什么会出现错误? - Why am I getting an error when trying to add the src attribute to an img tag using JavaScript within Colfusion? 在 html 中添加正文标签时,出现“[violation] Avoid using document write()”错误 - I'am getting “[violation] avoiding using document write()” error when adding a body tag in html 使用输入标签在 chrome android 中显示我的页面时,为什么会出现不同的字体大小 - Why am I getting different font sizes when displaying my page in chrome android using input tag 当我想让我的页面响应时,为什么 html 视口元标记会破坏我的 CSS? - Why is the html view port meta tag breaking my CSS when I want to make my page responsive? 在css的视口元标记 - Viewport meta tag in css 我在引导程序中使用选择标签,并且在使用CSS更改选择框的背景 - I am using select tag in bootstrap and I am using css for changing the background of select box 我使用通知div时Href标签不起作用 - Href tag is not working when i am using notification div
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM