当打印(Control + P)并且有多页时,我在每页的顶部设置固定文本。但是,我需要在该文本的底部添加边距,以免导致页面内容出现问题。
@media print {
table.tblStandard {
position: fixed;
top: 0;
}
table {
page-break-inside: avoid;
}
}
Run Code Online (Sandbox Code Playgroud)
我只想更改特定类别的产品档案上的添加到购物车文本。例如,在预订类别上,我想要而不是add to cart文本,是Preorder. 我不知道如何在下面的函数中识别 Preorder 类别。
add_filter( 'add_to_cart_text', 'woo_archive_custom_cart_button_text' ); // < 2.1
function woo_archive_custom_cart_button_text() {
return __( 'Preorder', 'woocommerce' );
}
Run Code Online (Sandbox Code Playgroud) 我在我的网站联系表格中使用 php mailer。当我收到希腊语的消息时,我没有收到联系表中输入的文本。在 class.phpmailer.php 文件第 59 行中,编码 public $CharSet = 'iso-8859-1';是 有没有办法使我的文本正确显示为联系表单中键入的内容?
可以在此处找到 ISO/IEC 8859-1 共同支持的语言
我也试过德语和阿尔巴尼亚语,但我也有同样的问题。我只能收到英语,如果用户在某些单词上输入另一种语言,我会收到“中文”。
编码:
<?php
require_once('phpmailer/class.phpmailer.php');
// if(isset($_POST['g-recaptcha-response'])){
if (empty($_POST['Email'])) {
$_POST['Email'] = "-";
}
if (empty($_POST['Name'])) {
$_POST['Name'] = "-";
}
if (empty($_POST['Subject'])) {
$_POST['Subject'] = " ";
}
if (empty($_POST['message'])) {
$_POST['message'] = "-";
}
$mymail = smtpmailer("example@gmail.com", $_POST['Email'], $_POST['Name'],
$_POST['Subject'], $_POST['message']);
function smtpmailer($to, $from, $from_name, $subject, $body)
{
$mail = new PHPMailer;
$mail->isSMTP();
$mail->Debugoutput = 'html';
$mail->Host = 'smtp.gmail.com'; …Run Code Online (Sandbox Code Playgroud) 我有以下图像,我想在购物篮图标上添加链接。这怎么可能?
感谢您的回答。现在我有两种方法可以做到这一点或使用html:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<p style="font-weight:normal;text-transform:uppercase;color:#FFD700;background-color:#000000;border: 5px ridge #ababab;letter-spacing:4pt;word-spacing:-3pt;font-size:42px;text-align:center;font-family:georgia, serif;line-height:4;margin:0px;padding:0px;width:100%;height:183px;">New Online Shop <a href="https://frix-cy.com/shop/"><i class="fa fa-shopping-cart " aria-hidden="true"></i></a>
</p>Run Code Online (Sandbox Code Playgroud)
或者使用图像上的html shape 属性使用 @blue 答案:
<img src='https://i.stack.imgur.com/5I8q6.jpg' width='500' height='150' usemap='#basket' />
<map name='basket'>
<area shape='rect' coords='440 50 500 100' href='www.your_link.com' alt='basket_icon' />
</map>
<p>Click on the basket</p>Run Code Online (Sandbox Code Playgroud)