2016-12-28 3 views
3

Das ist meine Klinge Ansicht:CSS nicht in Laravel Klinge Laden (5.3)

@extends('emails.newlayout') 

@section('title', 'Reminder') 

@section('content') 
<?php $total = 0; ?>   
<table class="table table-striped"> 
<thead> 
<tr> 
<th>Name</th> 
<th>Amount</th> 
</tr> 
</thead> 
<tbody> 
@foreach ($sallary as $emp) 
<tr> 
<td>{{ $emp->employee['name'] }}</td> 
<td>{{ $emp['value'] }}</td> 
<?php $total += $emp['value']; ?> 
</tr> 
@endforeach 
</tbody> 
</table> 
<p>Total: US${{ $total }}</p> 
@stop 

Und das ist im Header meiner newlayout.blade.php:

<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> 

funktioniert gut auf mein Browser, wenn ich es als html öffne, aber wenn ich es auf laravel rendere, lädt es gerade das bootstrap css überhaupt nicht (lädt alles andere). Ich frage mich, was mache ich falsch?

OUTPUT

enter image description here

<table class="m_-7473167048951624218table m_-7473167048951624218table-striped"> 
<thead> 
<tr> 
<th>Name</th> 
<th>Value</th> 
</tr> 
</thead> 
<tbody> 
<tr> 
<td>Test 2</td> 
<td>1,093.55</td> 
</tr> 
<tr> 
<td>Test 3</td> 
<td>1,090.33</td> 
</tr> 
</tbody> 
</table> 
+0

Was ist die Ausgabe nach dem Rendern auf Laravel? – Dekel

+0

Alles, was es sollte, * außer * das Tabellen-Styling, das vom Bootstrap geladen werden sollte. – Rosenberg

+0

Was ist - bieten die ** Exakt ** Ausgabe – Dekel

Antwort

0

es

Peinlicher gelöst, aber es stellt sich heraus, wegen der E-Mail ist. Jeder Stil sollte inline css auf einer E-Mail sein, sonst ist es nicht gut nach einer Fülle von Dokumentation über das Stylen von E-Mails online.