html - 将 html 主题转换为 drupal 主题后响应不起作用

标签 html css drupal

在尝试将 HTML 响应式主题转换为 Drupal 7 主题时,它的响应式不起作用!!!

谁能帮我解决这个问题?我们复制了 Bartik 主题并删除了 CSS 并粘贴了我们创建的 HTML5 主题 CSS 和 js...将 index.tpl 更改为页面 -- front.tpl.php 并将其复制到模板文件夹中......在页面中 -- front.tpl.php 我们将 CSS 和 js 的所有路径指定为:

<?php $path="http://".$_SERVER['HTTP_HOST']; ?>
<link rel="icon" href="$path.">
<link rel="shortcut icon" href="images/favicon.ico" />
<link rel="stylesheet" href="<?php echo $path.base_path().path_to_theme()?>/css/style.css">. As specified we gave path for all css and js files,but don;t know where we went wrong!!

最佳答案

可能是因为你没有:

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

在你的脑海里?

关于html - 将 html 主题转换为 drupal 主题后响应不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22282122/

相关文章:

css - Firefox 在使用 flex 时忽略元素的宽度属性

德鲁帕尔 6 : Drupal Themer gives same candidate name for different type of content types

php - Drupal token 使用示例

drupal - 如何递归地保护/sites 文件夹?

html - CSS 在线显示输入(最后输入宽度 :100%)

javascript - 我如何在 React js 中获得多个选择选项?

javascript - 如何在 slider 中的图像之间转换

html - 在 HTML 页面输入值中使用双引号

javascript - 动态插入均匀间隔的列表项打破了合理的方法

html - 为什么即使将 box-sizing 设置为 border-box,padding 也会增加元素的可见宽度?