我正在做一個網站,而不使用任何圖像,使其響應速度更快,只有CSS(3)。 我試圖用做以下效果CSS是否有可能使用CSS(不使用圖像)做到這一點「一半刪除線」
我曾經做到這一點使用
<div class="strikethrough">
<span>Ou</span>
</div>
和CSS(使用圖像):
.strikethrough {
background: url('strip.gif') repeat-x 50% 50%;
}
.strikethrough span {
background: #EAEBEC;
padding: 0 5px;
display: inline-block;
margin: 0 auto;
}
是有可能只用CSS做同樣的事情?
我會堅持與圖像。它就像200字節(如果正確完成)並向後兼容。 – Blender 2013-04-20 05:15:40