Gmail - CSS - 列计数不起作用

时间:2018-03-19 07:02:21

标签: html css css3 gmail webmail

问题是gmail webmail界面不想读取"列数:2"嵌入式。我尝试在一些HEAD标签中嵌入样式以及使用一些内联样式。似乎没什么用。我应该尝试任何建议或替代方案吗?

注意:此HTML是动态构建的。正在使用javascript在代码隐藏中以编程方式修改该类。目标是在单列视图与双列视图之间提供切换选项。我似乎无法使用TABLE元素在两列之间均匀地包装文本。任何建议将不胜感激。

<!DOCTYPE html>
<html>
<head>
<style>
      .twoColumn {
        column-count: 2!important; 
        -webkit-column-count: 2!important; 
        -moz-column-count: 2!important;
      }
    </style>
</head>
<body>

<div style="width: 700px; "><div><div style="background-color: #f2f2f2; width: 1000px;"><div style="width: 800px; border: solid 1px #888888; background-color: white; margin-left: 100px;"><div><img style="width: 100%;" src="http://cdn.eldercounsel.com/assets/uploads/misc/20180318201901_success.jpg" /></div><div style="width: 88%; word-break:break-all;color:#000000; padding: 0 10px 0 10px;  margin: 30px;"><div><div><h2>Newsletter Two Column Article</h2></div><div><div><p>Hi <label data-toggle="tooltip" id="Subscriber" title="This will be replaced by your contact's first name on file">Bob</label>,</p><div class="fr-inner twoColumn" id="ParentDiv"><span style="font-size: 30px;">What is Lorem Ipsum?</span><br><p><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#39;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p><h2>Why do we use it?</h2><p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using &#39;Content here, content here&#39;, making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for &#39;lorem ipsum&#39; will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p><br><br><h2>Where does it come from?</h2><p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of &quot;de Finibus Bonorum et Malorum&quot; (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, &quot;Lorem ipsum dolor sit amet..&quot;, comes from a line in section 1.10.32.</p><p>The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from &quot;de Finibus Bonorum et Malorum&quot; by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.</p><h2>Where can I get some?</h2><p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don&#39;t look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn&#39;t anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.</p></div></div></div></div><br />

</body>
</html>

1 个答案:

答案 0 :(得分:3)

电子邮件中不支持列。有关支持的css属性列表,请参阅this图表。