我有这个有效的 css,但我喜欢把它变成一行,这可能吗?
border-radius: 0;
border-color: #ccc;
border-width: 0 0 2px 0;
border-style: none none solid none;
Run Code Online (Sandbox Code Playgroud) 我正在 angular 1.4.2 中做一个应用程序,并想模仿 Instagram 移动网络的行为来打开应用程序,当我点击按钮时,Instagram 被打开,这可能吗?
我已经在较旧的帖子上尝试过解决方案,但似乎都没有奏效。我不知道这是角度问题还是它们不再起作用。以前的帖子:
我尝试过但没有奏效的更多细节:
<a href="instagram://media?id=434784289393782000_15903882">instagram://media?id=434784289393782000_15903882</a>
<a href="http://instagram.com/_u/{USERNAME}/">Link to Instagram Page</a>
<a href="instagram://user?username={USERNAME}">Link to Instagram Profile</a>
<a href="intent://instagram.com/_n/mainfeed/#Intent;package=com.instagram.android;scheme=https;end"> test open Instagram ANDROID</a>
<a href="http://instagram.com/_u/USERNAME/">visit our instagram page</a>
<a href="instagram://user?username=untitled.tiff">untitled.tiff</a>
<a href="instagram://app">Open Instagram</a>
Run Code Online (Sandbox Code Playgroud) 我正在使用Maatwebsite/Laravel-Excel将一些数据导入我的laravel应用程序.
我循环使用excel的行,验证数据然后保存它,但如果我得到验证错误,我想从Excel :: load()函数外部返回$ error变量.可能吗?
public function import()
{
Excel::load(Input::file('excelFile'), function ($reader) {
foreach ($reader->toArray() as $row) {
if($everythingOK){
//do stuff
} else {
$errors[] = 'error';
}
}
});
return $errors;
}
Run Code Online (Sandbox Code Playgroud) 在 laravel 5.2 中,我有一个模型的分页表。
@CityController
public function index(Request $request){
$cities = City::orderBy('name');
return view('pages.city.index', ["cities" => $cities ->paginate(25)]);
}
Run Code Online (Sandbox Code Playgroud)
这工作正常,但是当我尝试对刀片视图内的结果进行排序时不起作用。
@index.blade.php
<table>
<thead>
<tr class="sui-columnheader">
<th class="sui-headercell" data-field="Id">
<a href="{!! $cities->appends(['sort' => 'id'])->links() !!}">Id</a>
</th>
</thead>
<tbody class="list">
@foreach ($cities as $city)
<tr class="sui-row">
<td class="sui-cell id">{!! $city->id !!}</td>
</tr>
</tbody>
</table>
Run Code Online (Sandbox Code Playgroud)
当我单击排序按钮时,只会重新加载页面,但不会应用排序。
是因为“orderBy”子句吗?我怎样才能让它工作并默认按名称排序?我错过了什么吗?
var workViewer = {
container: document.documentElement,
popup: document.querySelector('.avgrund-popup'),
cover: document.querySelector('.avgrund-cover'),
init: function () {
this.addClass(this.container, 'avgrund-ready');
window.avgrund = {
activate: this.activate,
deactivate: this.deactivate,
disableBlur: this.disableBlur
};
},
activateModal: function (state) {
setTimeout(function () {
this.parent.removeClass(popup, 'no-transition'); //this line
this.parent.addClass(this.container, 'avgrund-active'); //this line
}, 0);
},
removeClass: function (element, name) {
element.className = element.className.replace(name, '');
}
};
module.exports = workViewer;
Run Code Online (Sandbox Code Playgroud)
我想通过这个进setTimeout函数,什么做的正确方法?
这是我的第一篇文章,请让我知道我是否可以以任何方式进行改进