我正在尝试使用 html5 视频在滑块中显示视频。这与controls参数(显示控件)配合得很好。但是当我添加它时autoplay,它不会自动播放,所以我搜索了原因,发现 chome 只允许静音视频自动播放。
所以我muted向其中添加了参数,但是当我这样做时,我的整个视频变黑并且仍然无法自动播放。
为什么会这样呢?
我的代码:
<div class="r-slider-item">
<video width="100%" height="100%" autoplay muted loop>
<source src="assets/watertuin.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="container">
<div class="r-slider-top-content">
<h1 class="animated fadeInDown">RESERVEER <span>NU</span></h1>
<a href="#" class="btn btn-outlined animated fadeInUp"> Reserveren </a>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
在 Firefox 和 IE 11 中它工作得很好。
我正在使用插件:charts.js
在悬停雷达图表(其中的子弹)时,会显示工具提示.我该如何删除它?
我有一个看起来像这样的字符串:
id_company=57&name=&address=&zip=&place=&phone=&mobile=&email=&birthdate=&birthplace=&bsn=&driver_expires=&role=&date_started=&contract=Tijdelijk&id_type=Paspoort&id_number=&id_expires=
Run Code Online (Sandbox Code Playgroud)
上面的示例大部分都是空的(除了id_company).
我在jquery中序列化我的表单,如下所示:
var $serialized = $form.serialize();
Run Code Online (Sandbox Code Playgroud)
在我的PHP中我这样做:
$jsonemployee = unserialize($_POST['serialized']);
Run Code Online (Sandbox Code Playgroud)
之后我尝试打印它因为我期待一个数组:
echo '<pre>';
print_r($jsonemployee);
echo '</pre>';
Run Code Online (Sandbox Code Playgroud)
但这没有给我什么.
我100%确定所有数据都已通过,在我的网络选项卡中,我看到发布的字符串,如果我只是回显字符串,则显示字符串.
如何从该字符串创建PHP数组?
我想要注释掉一些内联的css样式(在一些html标签内).我该怎么做呢?我是否使用CSS的/**/注释?或者<!-- -->对于HTML?
<span class="color_dark" style="top:20px;font-size: 17px;line-height: 0px;position: relative;">onbezorgd genieten van uw<br> haard of kachel</span>
Run Code Online (Sandbox Code Playgroud)
这是我正在谈论的部分.我想评论一些样式属性.
I'm trying to shorten the speed of the autoplay on an owl carousel (I'm using owl carousel 1), but it's always stuck at 5 seconds. On the website (which is broken) it says you can add an integer after autoplay: but it doesn't matter what number I add, it always takes 5 seconds to play.
And I should mention that autoPlay (with capital P) does not work for me like it's shown on their website. Only if I use autoplay …
当我打印我的对象时,它是这样的:
stdClass Object
(
[data] => Array
(
[0] => stdClass Object
(
[name] => post_impressions
[period] => lifetime
[values] => Array
(
[0] => stdClass Object
(
[value] => 4448
)
)
[title] => Lifetime Post Total Impressions
[description] => Lifetime: The number of impressions of your Page post. (Total Count)
[id] => 367712570004555_1292256510883485/insights/post_impressions/lifetime
)
)
[paging] => stdClass Object
(
[previous] => https://graph.facebook.com/v2.10/3677125700055_129256510883485/insights?access_token=EAACEdEse0cBANjKErkMLhCgmZBBrgLn8KtZBW2d6JbWz7sZAivld67JxvP8MqyZCs9xg3Bh11lzETwd64LAPp3zbstu8ELFZC8HOwYyxckqJ60WQcVL1FqB3iy5L3oRCsFSQzPx2B53WZCMwRTSGKyqXe8uFGPhMZBnFYsZCFHyaUA7MzHGgcqIYxsjAlJomYrOMZCqo6PwZDZD&metric=post_impressions&since=1505890800&until=1506063600
[next] => https://graph.facebook.com/v2.10/36771257004555_1292256583485/insights?access_token=EAACEdEose0cBANjLn8KtZBW2d6JbWz7sZAivld67JxvP8MqyZCs9xg3Bh11lzETOwd64LIpAPp3zbstu8ELFZC8HOwYyxcVL1FqB3iy5L3oRCsFSQzPx2B53WZCMwRTSGKyqXe8uFGPhMZBnFYsZCFHyaUA7MzHGgcqIYxsjAlJomYrOMZCqo6PwZDZD&metric=post_impressions&since=150626400&until=150409200
)
)
Run Code Online (Sandbox Code Playgroud)
我怎么回声[value]?
我试过了
echo $insights[0]->data->values->value; 但这给了我一个 Fatal error: Cannot …
我需要在背景图像上添加透明的彩色图层.我尝试用rgba做这个但没有结果.
我现在得到的是:
page-heading {
background: rgba(36, 70, 105, 0.74) url("../images/samples/bg3.jpg") no-repeat fixed 50% 0px / cover;
opacity: 0.9;
position: relative;
text-align: center;
padding: 72px 0px;
}
Run Code Online (Sandbox Code Playgroud)
我知道背景颜色是无法加载图像时的后备颜色.如何以正确的方式在其上添加图层?
我有一个看起来像这样的数组:
Array
(
[companyid] => 22
[userid] => Array
(
[0] => 60
[1] => 61
[2] => 65
[3] => 63
[4] => 64
[5] => 66
[6] => 68
[7] => 69
[8] => 70
[9] => 71
)
[username] => Array
(
[0] => nu1234
[1] => nu12345
[2] => username1235
[3] => testtttttt
[4] => username123
[5] => nu123
[6] => nu
[7] => sdgsdgsdg
[8] => testtttttt1234
[9] => nu1235678910
[10] =>
)
[password] => …Run Code Online (Sandbox Code Playgroud) Uncaught SyntaxError: Unexpected token {尝试在JavaScript中使用JSON对象时出现错误.
我的代码现在是这样的:
$bedrijven = "
select
cnt.id, cnt.title, cnt.introtext, cnt.ordering, cnt.state, f.item_id,
max(case when f.field_id = 3 then f.value end) as plaats,
max(case when f.field_id = 1 then f.value end) as straat
from snm_fields_values f
join snm_content cnt
on cnt.id = f.item_id
where cnt.state = 1
group by f.item_id
order by f.item_id, plaats, straat";
$bedrijvencon = $conn->query($bedrijven);
while($bedrijven = $bedrijvencon->fetch_assoc()){
$jsonobject .= json_encode($bedrijven);
}
Run Code Online (Sandbox Code Playgroud)
然后在我的页脚中我使用以下内容:
<script>
var bedrijven = <? echo $jsonobject; ?>;
console.log(bedrijven);
</script> …Run Code Online (Sandbox Code Playgroud)