小编Ste*_*aan的帖子

mailto:link中的换行符

我想在博客文章下面创建一个"转发给朋友"链接,该帖子打开我的电子邮件客户端并准备好了消息.我可以让它用于单行消息,但我希望能够在消息体内打破行.我怎样才能做到这一点?

<?php
printf(
    '<a href="mailto:?subject=%s&body=%s">Forward this to a friend</a>',
    the_title_attribute('echo=0'),
    sprintf('The link: %s Have a great day! Stefaan', get_the_permalink())
);
?>
Run Code Online (Sandbox Code Playgroud)

如何在上面有空行的新行上开始"祝你有美好的一天!"

链接: ...

祝你有美好的一天!

斯特凡

我的博客使用带有Genesis主题的WordPress,我将我的代码放入genesis_footer_entry启用PHP 的钩子中(参见截图 - 电子邮件文本是荷兰语).

php mailto email email-client line-breaks

6
推荐指数
1
解决办法
2379
查看次数

如何防止脚本在移动设备上运行?

我的网站具有粘性导航,但它不适用于移动设备...

如何在移动设备上粘贴它,或者如何防止粘性(当然保持导航)?

我到处寻找答案,但找不到一个有效(并没有禁用我的导航:)你的帮助非常感谢!

这是我的index.html标题的一部分:

<head>

<link href="css/reset.css" rel="stylesheet" type="text/css" />
<link href="css/960.css" rel="stylesheet" type="text/css" />
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<link href="fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" />

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="js/smooth-scroll.js" type="text/javascript"></script>
<script src="js/jquery.sticky.js" type="text/javascript"></script>
<script src="contactform.js" type="text/javascript"></script>

<!-- sticky nav -->
<script type="text/javascript">
$(window).load(function(){
$("nav").sticky({ topSpacing: 0, className: 'sticky', center: true });
});
</script>

</head>
Run Code Online (Sandbox Code Playgroud)

这是jquery.sticky javascript中的代码:

(function($) {
var defaults = {
        topSpacing: 0,
        bottomSpacing: 0,
        className: 'is-sticky',
        center: false
    },
    $window = $(window),
    $document …
Run Code Online (Sandbox Code Playgroud)

javascript iphone mobile ipad

5
推荐指数
1
解决办法
1万
查看次数

全角div与背景颜色

在这个页面上:http://www.tff-bvba.be,我需要图片背后的灰色背景在所有分辨率上都是全宽的,文本和图片要在屏幕上居中.一切正常,除了背景继续向右,离屏幕(滚动到右边,你会看到).

我花了2个小时寻找解决方案,但发现没有一个对我有用......这是我的代码:

HTML:

<div class="wide">
<div class="odd">
<div class="homeimage"><img src="http://www.tff-bvba.be/wp-content/uploads/2013/11/hugo-  home.png" alt="hugo-home" class="alignright size-full wp-image-1283" /></div>
<div class="hometext"><h1>Slaag in je materiaalinnovatie</h1>
Plan je een complexe innovatie waarbij de <b>combinatie en vorm van materialen</b> essentieel is? Missen je medewerkers <i>knowhow</i> of heb je tijdelijk versterking nodig?<br /><br />TFF maximaliseert de slaagkans van je project door:
<ul>
    <li><b>35 jaar ervaring</b> in slimme materiaalcombinaties</li>
    <li>maximaal <b>draagvlak </b>bij je medewerkers</li>
    <li>bewezen expertise in<b> technieken en processen</b></li>
</ul>
<a class="bttn" title="Slimme …
Run Code Online (Sandbox Code Playgroud)

css background

5
推荐指数
1
解决办法
5万
查看次数

悬停时更改按钮内的字体图标颜色

在我的网站(开发中)http://www.stefaanoyen.be的页脚中,文本前有 3 个带有箭头的按钮。箭头是一种图标字体,我希望它在按钮悬停时改变颜色(与按钮文本一样)。

知道如何做到这一点吗?

这是我的 html:

<a class="footerbutton"><span class="footerlist">X</span>Vraag offerte</a>
Run Code Online (Sandbox Code Playgroud)

这是按钮:悬停CSS:

a:hover.footerbutton {
background-color: #B61618;
color: #ddd;
border: none;
text-decoration: none;
}
Run Code Online (Sandbox Code Playgroud)

这是页脚列表 span 类 css:

.footerlist:hover {
color: #ddd;
 }
Run Code Online (Sandbox Code Playgroud)

css hover css-selectors

4
推荐指数
1
解决办法
8161
查看次数

只有背景图片必须在页面加载时淡入

我有一个带背景图像的div(箭头).在div中是一些文本,箭头在它下面.我希望div中的文本加载页面,但几秒钟后加载背景图像.

这是我的代码:

.homearrow {
    background: url(http://www.stefaanoyen.be/wp-content/uploads/2013/03/arrow.png) no-repeat 200px 155px;
    background-size: 125px 125px;
    float: left;
    -webkit-animation: fadein 4s; /* Safari and Chrome */
    -moz-animation: fadein 4s; /* Firefox */
    -ms-animation: fadein 4s; /* Internet Explorer */
    -o-animation: fadein 4s; /* Opera */
    animation: fadein 4s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari and Chrome …
Run Code Online (Sandbox Code Playgroud)

html fade background-image css3

2
推荐指数
1
解决办法
9924
查看次数