TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Recreating the Reeder Two-tone Horizontal Rule in Pure CSS

11 点作者 recurser大约 12 年前

3 条评论

j4_james大约 12 年前
Another way to achieve this effect:<p><pre><code> hr { background-image: linear-gradient(left,rgba(195,195,195,0),rgba(195,195,195,1),rgba(195,195,195,0)), linear-gradient(left,rgba(255,255,255,0),rgba(255,255,255,1),rgba(255,255,255,0)); background-position:0 0,0 1px; background-repeat:no-repeat; background-size:100% 1px,100% 3px; border:0; height:4px; } </code></pre> Fallback is non-existent for browsers that don't support linear gradients, but it has the advantage of automatically working with any background color.<p>Not a criticism of the original solution - just offering an alternative approach to the problem.
tghw大约 12 年前
Your font is particularly difficult to read. Chrome 26 on Win 7.<p><a href="http://i.imgur.com/kkGtESR.png" rel="nofollow">http://i.imgur.com/kkGtESR.png</a>
评论 #5507490 未加载
评论 #5507495 未加载
dz0ny大约 12 年前
heh, <a href="http://www.daveperrett.com/articles/2014/04/07/recreating-the-reeder-two-tone-horizontal-rule-in-pure-css/" rel="nofollow">http://www.daveperrett.com/articles/2014/04/07/recreating-th...</a> massage from the future?
评论 #5507289 未加载