如何重置某个div的所有CSS样式? (Jekyll博客) [英] How do I reset all css styles for a certain div? (Jekyll blog)

查看:107
本文介绍了如何重置某个div的所有CSS样式? (Jekyll博客)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个时间表.我正在使用此时间轴 https://github.com/ybogdanov/history-timeline 是JavaScript时间轴.

I need to create a timeline. I'm using this timeline https://github.com/ybogdanov/history-timeline which is a JavaScript timeline.

我确实阅读了这篇文章,并尝试了所有解决方案 仅重置/删除元素的CSS样式

I did read this post and tried all of its solutions Reset/remove CSS styles for element only

我无法使嵌入时间表生效:(

I cannot make my embed timeline working :(

这是仅带有时间轴的html

This is the html with the timeline only

这是博客(基于Jekyll)

This is the blog (Jekyll based)

推荐答案

尝试

div {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

这篇关于如何重置某个div的所有CSS样式? (Jekyll博客)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆