html - 是否有可能在 css3 中完美地复制它?

标签 html css

div:sidebar-top 位于 http://alex.piechowski.org/school/ ...

CSS:

.sidebar-top {
float: left;
height: 32px;
width: 292px;
background: url(../images/sidebar_top.png) no-repeat;
padding: 4px 15px;
}

请注意,这是一张图片。没有那个图像可能吗?

最佳答案

您可以使用这些规则实现非常相似的效果:

border-top-right-radius: 12px;
border-top-left-radius: 12px;
border: 1px solid #ccc;
width: 290px;
background: -webkit-linear-gradient(top, white 0%,#ddd 100%);
background: linear-gradient(to bottom, white 0%,#ddd 100%);

关于html - 是否有可能在 css3 中完美地复制它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15037272/

相关文章:

html - 我有一个倾斜的菜单列表,我怎样才能把它对齐?

html - 显示 :none/Display:block with Combined Sibling Selectors

css - 以外部 div 高度的百分比垂直对齐内部 div

jquery - 使用 css 或 jquery 更改特定字符的格式

css - Div 宽度对我不起作用

html - 无法更改图像的不透明度

html - 将#href anchor 添加到网页

javascript - 如何在不单击按钮的情况下使用颜色选择器更改背景颜色?

html - 表中表

jquery - 在 HTML 中使图像内联( block )