小编HGa*_*ble的帖子

为什么我的 html 电子邮件顶部有多余的空白?

我正在尝试写一封 HTML 电子邮件。当我在 Chrome 中运行它时,它位于页面顶部,但是当我通过电子邮件发送它时,顶部有很多空白。此外,它在雅虎邮件和 gmail 中看起来也很不同。有人能告诉我为什么吗?谢谢。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--[if !mso]><!-->
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <!--<![endif]-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>


    <!--[if (gte mso 9)|(IE)]>
    <style type="text/css">
        table {border-collapse: collapse !important !important;}
    </style>
    <![endif]-->
</head>
<body style="margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;background-color:#ffffff;" >
    <center style="width:100%;table-layout:fixed;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;" >
        <div style="max-width:600px;margin-top:0;margin-bottom:0;margin-right:auto;margin-left:auto;" >
            <!--[if (gte mso 9)|(IE)]>
            <table width="600" align="center" cellpadding="0" cellspacing="0" border="0" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
            <tr>
            <td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
            <![endif]-->
            <table …
Run Code Online (Sandbox Code Playgroud)

html html-email

5
推荐指数
2
解决办法
8922
查看次数

如何使用西里尔字体列出文件夹的内容?

我想在文件中列出我的目录和子目录的内容,但子目录的内容具有俄语标题。我怎样才能做到这一点?如果我在命令提示符窗口中列出内容,列表将正确显示。这有效。

> dir /s
Run Code Online (Sandbox Code Playgroud)

但是,如果我尝试将列表保存在文档中,西里尔字母将呈现为问号。这是行不通的。

> dir /s > myFiles.txt
Run Code Online (Sandbox Code Playgroud)

directory command-line cyrillic

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

如何在Google Apps脚本中将CSS连接到html

我正在尝试制作我的第一个Google App。我有我的HTML文档,该文档包含HTML服务:最佳做法中概述的include语句。

<html>
    <head>
        <base target="_top">
        <?!= include('stylesheet') ?>
    </head>
    <body>
       ...
    </body>
Run Code Online (Sandbox Code Playgroud)

我的code.gs文件如下:

function doGet() {
   return HtmlService.createTemplateFromFile('BooksTS2.html')
  .evaluate();
}
Run Code Online (Sandbox Code Playgroud)

我的样式表名为stylesheet.html,并且出于测试目的非常简单:

<style>
   p {color: green;}
</style>
Run Code Online (Sandbox Code Playgroud)

但是,当我运行它时,出现以下错误消息:ReferenceError:未定义“ include”。

html css google-apps-script

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