赞
踩
<tr class="pb_date content">
<th style="width:80px;">
<div class="oline">
<span class="span1">部门</span> <span class="span2">日期</span>
</div>
</th>
<th>星期一</th>
<th>星期二</th>
<th>星期三</th>
<th>星期四</th>
<th>星期五</th>
<th>星期六</th>
<th>星期日</th>
</tr>
th, td { border: 1px #CED3DC solid; font-size: 12px; line-height: 30px; } /* 模拟对角线 */ .oline { border-top: 40px #fff solid; /*上边框宽度等于表格第一行行高*/ width: 0px; /*让容器宽度为0*/ height: 0px; /*让容器高度为0*/ border-left: 80px #fff solid; /*左边框宽度等于表格第一行第一格宽度*/ position: relative; /*让里面的两个子容器绝对定位*/ } .oline::before { position: absolute; top: -57px; left: -80px; width: 146px; height: 74px; background: #E3ECFF url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxsaW5lIHgxPSIwIiB5MT0iMCIgeDI9IjEwMCUiIHkyPSIxMDAlIiBzdHJva2U9IiNDRUQzREMiIHN0cm9rZS13aWR0aD0iMSIvPjwvc3ZnPg==) no-repeat 100% center; content: ''; } .span1 { font-style: normal; display: block; position: absolute; top: -42px; left: 13px; width: 37px; } .span2 { font-style: normal; display: block; position: absolute; top: -25px; left: -70px; width: 55px; }
$(function () {
var str =
'<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><line x1="0" y1="0" x2="100%" y2="100%" stroke="#CED3DC" stroke-width="1"/></svg>'; // 要进行Base64编码的字符串
var encodedStr = btoa(str); // Base64编码后的结果
console.log(encodedStr)
})
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。