div+css布局丝带缎带装饰效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css布局丝带缎带装饰效果代码,适合卡片图文列表中的装饰标注效果。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { margin: 0; font-family: 'Ubuntu', sans-serif; } article { border-bottom: 2px solid $dark; border-top: 6px solid $light; padding: 20px 0; position: relative; text-align: center; } article:first-child { border-top: none; } article:last-child { border-bottom: none; } aside { position: relative; box-sizing: border-box; display: inline-block; margin: 0 20px; top: -26px; width: 80px; padding: 5px 8px 10px; background-color: $dark; color: $light; } aside:before, aside:after { content: ''; position: absolute; left: 0; border-style: solid; border-width: 0 40px 20px; } aside:before { bottom: -20px; border-color: transparent $dark; z-index: 1234; } aside:after { bottom: -26px; border-top-width: 6px; border-color: $light $light transparent $light; } aside span { display: block; } aside span.day { font-size: 60px; line-height: 65px; font-family: 'PT Serif', monospace; } aside span.month { font-family: 'PT Mono', monospace; } section { margin: 0 auto; max-width: 660px; padding: 0.........完整代码请登录后点击上方下载按钮下载查看
网友评论0