当我使用CSS3将它们转换为列时,列表项上的项目符号消失.任何想法为什么或如何纠正它的建议?
请参阅示例:http://jsfiddle.net/gduDm/1/
ul li {
list-style-type: disc !important;
column-break-inside: avoid;
}
ul {
list-style-type: disc !important;
margin-top: 1em;
column-count: 2;
column-gap: 0.5em;
}
Run Code Online (Sandbox Code Playgroud) 我有一个带海报属性的HTML5视频.我想以某种方式设置它,以便您可以点击视频元素上的任何位置(海报图像的区域),它将触发播放事件并启动视频?我觉得这是相当标准的做法,但我没有办法在没有闪光灯的情况下做到这一点.任何帮助将非常感激.
我有一个基本的表单,我使用一些基本的PHP提交.我有表单提交伟大的工作,但我有一个单选按钮(用于接触的首选方法),我不知道如何添加在PHP,以便在电子邮件中发送.两个单选按钮选项具有相同的名称,因此不能用作值.我的代码如下.
PHP如下:
<?php
$name = stripslashes($_POST['name']);
$email = stripslashes($_POST['email']);
$phone = stripslashes($_POST['phone']);
$contact = stripslashes($_POST['contact']);
$message = stripslashes($_POST['message']);
$form_message = "Name: $name \nEmail: $email \nPhone: $phone \nPreferred Method of Contact: $contact \nMessage: $message";
// Exit process if field "human" is filled (because this means it is spam)
if ( $_POST['human'] ) {
echo 'Tastes Like Spam!'; exit; }
// if it is not filled, submit form
else {
header( "Location: http://www.newurl.com");
mail("myemail@gmail.com", "Email Subject", $form_message, "From: $email" );
}
?> …Run Code Online (Sandbox Code Playgroud) 我正在寻找一种方法将CSS3过渡链接到滚动事件.我正在寻找与http://nizoapp.com/类似的功能,当你到达页面上的某个滚动点时,某些元素会移动.我知道你必须用jQuery调用scroll事件(使用offset和scroll),但我很好奇是否有一种方法可以将CSS3用于动画部分,或者如果需要在jQuery中完成.无论哪种方式,我都希望得到一些关于如何让这个开始工作的帮助.谢谢您的帮助.
我有一个href为的链接"/news#1930".当我在/news页面上点击此链接时,它不刷新页面(它只是将#1930添加到URL的末尾).我希望它刷新页面(我使用#tag后面的信息和一些jquery来加载相应的iframe中的特定文章,当它不刷新时它不会加载新文章).关于如何强制刷新的任何想法?
我目前的代码是:
$(document).ready(function() {
var $news_story = $(window.location.hash.substring(1)),
$news_number = $news_story.selector,
$news_url = 'http://www.synergy-pr.com/news/mediacenter/index.html?view=article&CustomerID=41b1if9-a17d4va5sf7of15e3kb0pa3kd2y-99d03n8sq4ad2xk8h47j00r98el5pf&ClientArticleID=' + $news_number, //url of specific article
$news_url_default = 'http://www.synergy-pr.com/news/mediacenter/index.html?CustomerID=41b1if9-a1hd4xa52f78f1ke3bb0oa3ld2k-90208c8g64x02nh8wf7ad0m181p5su'; //url of general news page
if ($news_number.length>0) { //if their is a # with a number, this means it is a sidebar link and should load that specific article
$('#news-feed').attr('src', $news_url);
} else { //if not, load the main news page
$('#news-feed').attr('src', $news_url_default);
}
});
Run Code Online (Sandbox Code Playgroud) 我目前正在位于www.example.com/staging的临时环境中的某个站点上工作.该站点的所有链接都已相对设置(例如:/ about /).我正在尝试编写一些简单的jQuery来为页面上的每个链接添加"/ staging",因此我不必更改本周的所有链接,因此它在暂存环境中.我知道HTML标签是一个选项,但因为链接是使用ExpressionEngine动态添加的,似乎不起作用.我认为jQuery应该相当简单.这就是我所拥有的,但有些事情并不恰当:
$(function() {
var href = $('a').attr('href');
$(href).prepend('/staging');
});
Run Code Online (Sandbox Code Playgroud)
在此先感谢您的帮助.