当我根据 Laravel Mailable 的 6.x 文档(因为我的 Laravel 版本是 6.0)编写组件时,我遇到了问题。但尽管如此,在实际的电子邮件中,有些组件可以正确呈现,有些只是纯 HTML。我所说的纯 HTML 是指文本字面意思是<a>...</a>,但不呈现实际元素。
为什么会这样呢?也许有一个错误,或者我错过了什么?我用 Laravel 文档提供的组件编写了最常规的电子邮件。没有 linter 错误。顺便说一句,该视图是用 Blade 编写的。
@section('content')
@foreach ($paragraphs as $item)
<p> {{ $item }} </p>
@endforeach
@component('mail::button', [ 'url' => $link ])
{{ $buttonText }}
@endcomponent
@endsection
Run Code Online (Sandbox Code Playgroud) 所以我真的很愚蠢.我正在为官方游戏网站制作设计.他告诉我会有很多截图.我做了一个设计,一切都很酷,但实际上有很多,所以我想通过jQuery在Mobile版本(px <640px)中关闭它们,然后创建按钮以显示它们.我知道互联网上有很多指令,但它们根本没有与我的标记进行比较,实际上我希望它与我想的完全相同.所以我想要的是找到我的图像块的每个子项的第n个子编号,以及每个第n个子编号超过4到.hide()的块.谢谢你的帮助!
<div class="images-block">
<div class="image-sq">
<p>? Expand</p>
</div><div class="image-sq">
<p>? Expand</p>
</div><div class="image-sq">
<p>? Expand</p>
</div><div class="image-sq">
<p>? Expand</p>
</div><div class="image-sq">
<p>? Expand</p>
</div><div class="image-sq">
<p>? Expand </p>
</div>
</div>
Run Code Online (Sandbox Code Playgroud) 我的问题是:是否可以在不重写相同变量的情况下添加相同的元素.我正在创建一个滑块,我需要将div一个类附加slide-el到块中slider.这是代码的一部分
var body, html, sliderBody, btnLeft, btnRight, i, parts, vHeight, vWidth;
//Variable definitions
var i = 0,
parts = 3,
//Main html elements
body = document.body,
html = document.element,
//viewport Height and Width
vHeight = window.innerHeight,
vWidth = window.innerWidth,
sliderBody = _id("slider"),
btnLeft = _id("btn-left"),
btnRight = _id("btn-right"),
urls = ["http://www.wallpapereast.com/static/images/pier_1080.jpg",
"http://www.wallpapereast.com/static/images/pier_1080.jpg",
"http://www.wallpapereast.com/static/images/pier_1080.jpg",
"http://www.wallpapereast.com/static/images/pier_1080.jpg"];
slide = _createEl("div");
slide.className += "slide-el";
function _id(el){
return document.getElementById(""+ el +"");
}
function _createEl(el){
return document.createElement(""+ el +"");
} …Run Code Online (Sandbox Code Playgroud)