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.
次のようなページを作成しようとしています。
他の div と比較して少し上に見える最初の div を作成できないため、すべてがうまくいっています。また、境界線の影もあります。cssを使用して同様の画像を作成する方法を教えてください。ありがとう..
最初の項目の唯一の特別な点は、その奥行き効果を作成する影です。これを再現するには、次のようなものを試すことができます。
li:first-child{ background: #ccc; -webkit-box-shadow: 0 5px 15px 0 rgba(0,0,0,0.5); box-shadow: 0 5px 15px 0 rgba(0,0,0,0.5); position: relative; z-index: 1; }
デモフィドル