【发布时间】:2015-09-13 08:18:11
【问题描述】:
我目前正在开发一个模板电子邮件。我需要显示这种样式的进度条:
.progress {
width:100px;
}
.progressleft {
float: left;
height: 15px;
}
.progressright {
overflow: hidden;
height: 15px;
}
<div style="position:relative;top: 20px; text-align:center; color:#ffffff;">50%</div>
<div style="width:250px">
<div id="prog4" class="progressleft" style="width:50%;text-align:center;background-color: #f83;"></div>
<div class="progressright" style="background-color: #ccc;"bgcolor="#ccc"></div>
但是,在收到带有 Outlook 的电子邮件时,什么都没有出现..但是当我在浏览器中打开电子邮件时,一切都完美显示..
提前感谢您的帮助...
【问题讨论】:
-
float在电子邮件中不起作用。浮点数应替换为align="left",您应该研究如何编写电子邮件,div 应替换为表格元素,您的类应添加为属性选择器 [class=progress]
标签: html css email outlook progress-bar