如何在HTML中创建像下面的UI
.leftside {
padding: 16px;
background-color: #0E1E2B;
border-bottom-left-radius: 50%;
}`
我为网站页面设计了一个设计,我想使用HTML和CSS在标题中添加背景。在相同的背景中,我还添加了右侧,在这里我添加了我尝试过的CSS代码。
.leftside {
padding: 16px;
background-color: #0E1E2B;
border-bottom-left-radius: 50%;
}`
I made a design for a website page and I want to add the background above in the header using HTML and CSS. in this same background I also added it right-side, here I'm adding the CSS code that I tried. I can not understand how to create a background like this!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用
剪辑路径
。该站点产生了一些数字。网站链接: https://bennettfeely.com/clippy/Use
clip-path
. This site generate some figures. Site link: https://bennettfeely.com/clippy/您也可以使用伪元素和
border
css属性来做到这一点。此处如何工作背后的理论示例: css triangles如何工作
strong> codepen链接: https://codepen.io/thechewy/thechewy/thechewy/pen/pen/pen/pen/pen/pen/eyvmlgm
You can also do this by using pseudo elements and the
border
CSS property.Example of the theory behind how this works here: How CSS triangles work
Codepen link: https://codepen.io/thechewy/pen/eYVMLGM
这是您可能尝试或开始的方法:
替代选项是使用JavaScript库,甚至在HTML 5画布中使用。
Here's what you may try or start with:
Alternative options would be to use javascript library or even do in Html 5 canvas.