作者:空灵一_一_379 | 来源:互联网 | 2023-05-16 10:43
IneedtorecreatethefollowingdesignusingonlyCSS:我只需要使用CSS重新创建以下设计:Whatyoureseeingin
I need to recreate the following design using only CSS
:
我只需要使用CSS重新创建以下设计:
What you're seeing in the picture is the top of a website container - the "links" are part of the main menu.
您在图片中看到的是网站容器的顶部 - “链接”是主菜单的一部分。
As it stands, I've created the container but I'm not sure how to go about making the slant on the navigation without using an image.
就目前而言,我已经创建了容器,但我不知道如何在不使用图像的情况下在导航上进行倾斜。
For the record: I'd rather not use an image as the chances of the box shadow on the slant matching up with box shadow rendered by the browser are slim-to-none, especially when it comes to multiple browsers.
为了记录:我宁愿不使用图像,因为倾斜的盒子阴影与浏览器呈现的盒子阴影相匹配的可能性很小,尤其是涉及多个浏览器时。
I was thinking along the lines of a positioned and rotated div with a white background and a box shadow, but I haven't been able to build it yet.
我正在考虑一个带有白色背景和盒子阴影的定位和旋转div的线条,但我还没有能够构建它。
Any ideas?
有任何想法吗?
4 个解决方案