小编Fel*_*nen的帖子

媒体查询可以根据div元素而不是屏幕调整大小吗?

我想使用媒体查询根据元素的大小调整元素的大小div.我不能使用屏幕大小,因为div它只是像网页中的小部件一样使用,其大小可能会有所不同.

更新

看起来现在正在做的工作:https: //github.com/ResponsiveImagesCG/cq-demos

css css3 media-queries

283
推荐指数
7
解决办法
15万
查看次数

svn commands return error "symbol not found"

After installing svn through homebrew on MacOS it quits every command with the following error:

dyld[25717]: Symbol not found: _apr_crypto_block_cleanup
  Referenced from: /usr/local/Cellar/subversion/1.14.1_4/lib/libsvn_subr-1.0.dylib
  Expected in: /usr/lib/libaprutil-1.0.dylib
Run Code Online (Sandbox Code Playgroud)

Any idea how to fix that? I already reinstalled svn and updated brew.

svn macos homebrew

8
推荐指数
1
解决办法
827
查看次数

从服务器下载文件Laravel和reactjs

大家好,我是 Laravel 和 Reactjs 的新手,我有一个问题,我尝试从服务器下载文件到浏览器。我的请求没问题,但我想要的文件不可读(如果我右键单击浏览器网络->预览,我发现符号和字符不可读),文件也未下载。我使用 Visual Studio Code 在 Windows 中进行编码。

下载控制器:

public function download()
{
    $file = public_path()."/file.pdf";
    return response()->download($file);
}
Run Code Online (Sandbox Code Playgroud)

路线/api.php:

Route::get('download','Api\DownloadController@download');
Run Code Online (Sandbox Code Playgroud)

在文件Js中:

import React, { Component } from 'react';
import axios from 'axios';

export default class download extends Component{

    constructor () {
        super();
    }

    componentDidMount() {
            axios.get(`http://127.0.0.1:8000/api/download`)
                .then((response) => {
                    console.log('hello');
                });
    }

    render() {
        return (
            <div>
                <button onClick={this.componentDidMount.bind(this)} className="btn btn-primary">Download</button>
            </div>
        );
    }
}
Run Code Online (Sandbox Code Playgroud)

laravel reactjs

3
推荐指数
1
解决办法
8369
查看次数

标签 统计

css ×1

css3 ×1

homebrew ×1

laravel ×1

macos ×1

media-queries ×1

reactjs ×1

svn ×1