使用laracasts / PHP-Vars-To-Js-Transformer

时间:2015-12-08 09:38:31

标签: css twitter-bootstrap

Twitter Bootstraplaracasts/PHP-Vars-To-Js-Transformer的组合我有以下视觉差异:

BEFORE 使用PHP-Vars-To-Js-Transformer enter image description here

AFTER 使用PHP-Vars-To-Js-Transformer enter image description here

有什么建议,如何解决这个问题?

我还创建了bug tracker entry

修改 PHP-Vars-To-Js-Transformer似乎回应了DOM之外的东西。

如果我运行此代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw==" crossorigin="anonymous">
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha256-KXn5puMvxCw+dAYznun+drMdG1IFl3agK0p/pqT9KAo= sha512-2e8qq0ETcfWRI4HJBzQiA3UoyFk6tbNyG+qSaIBZLyW9Xf3sWZHN/lxe9fTh1U45DpPf07yj94KsUHHWe4Yk1A==" crossorigin="anonymous"></script>
</head>
<body class="container">

    <br>
    <button class="btn btn-primary btn-xs">
      <span class="glyphicon glyphicon-star"></span>
    </button>
</body>
</html>

我得到了预期的结果。

但是在第一行中有一个回音,我得到了这个破碎的按钮。

<?php
    echo 'test';
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw==" crossorigin="anonymous">
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha256-KXn5puMvxCw+dAYznun+drMdG1IFl3agK0p/pqT9KAo= sha512-2e8qq0ETcfWRI4HJBzQiA3UoyFk6tbNyG+qSaIBZLyW9Xf3sWZHN/lxe9fTh1U45DpPf07yj94KsUHHWe4Yk1A==" crossorigin="anonymous"></script>
</head>
<body class="container">

    <br>
    <button class="btn btn-primary btn-xs">
      <span class="glyphicon glyphicon-star"></span>
    </button>
</body>
</html>

0 个答案:

没有答案