dt4233 2015-12-04 15:24
浏览 47

dropzone square没有显示

I'm building an upload function (with laravel) to my webapp with dropzone. (dropzone.com).

But I don't see the upload square that should be there. This is my main master.blade:

    <html>
<head>
    <title> @yield('title') </title>
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
    <!-- Include roboto.css to use the Roboto web font, material.css to include the theme and ripples.css to style the ripple effect -->
    <link href="/css/roboto.min.css" rel="stylesheet">
    <link href="/css/material.min.css" rel="stylesheet">
    <link href="/css/ripples.min.css" rel="stylesheet">
    <link href="/css/custom.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.2.0/dropzone.css">
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>

@include('standaard.navbar')

@yield('content')

<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script src="/js/dropzone.js"></script>

<script src="/js/ripples.min.js"></script>
<script src="/js/material.min.js"></script>
<script>
    $(document).ready(function() {
        // This command is used to initialize some elements and make them work properly
        $.material.init();
    });

</script>
</body>

</html>

And this is my dropzone page:

@extends('standaard.master')
@section('name', 'Uploadcenter')

@section('content')
    <div class="container col-md-6 col-md-offset-3">
    <div class="jumbotron">
            <h1>UploadCenter</h1>

            <p>Hier kunt u eenvoudig en snel bestanden met ons delen. U hoeft het er alleen maar in te slepen!</p>

            <p><a class="btn btn-primary btn-lg">Learn more</a></p>
          </div>
        <div class="well well bs-component">
        <div class="bs-component">
        </div>
            <form action="/{{ $user->id }}/files" method="post" class="dropzone" id="my-awesome-dropzone">
                {!! csrf_field() !!}
            </form>
        </div>
    </div>
@endsection

But I only see this:

enter image description here

enter image description here

What am I doing wrong?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度