Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用 CSS 做一个列表。像图中的东西:
我该如何继续……</p>
box-shadow您可以使用稍暗的背景颜色来模仿这种效果:
box-shadow
div { box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3); background: rgb(250, 250, 250); }
演示:http: //jsfiddle.net/cWX94/
还有一个http://jsfiddle.net/cWX94/1/