Git Product home page Git Product logo

Comments (4)

ninja33 avatar ninja33 commented on August 14, 2024

是这样的,每个词典都带了一个缺省的制卡用的css,那你说的例句的背景其实是在词典代码里
比如,柯林斯英汉双解词典

ul.sents {font-size:0.8em; list-style:square inside; margin:3px 0;padding:5px;background:rgba(13,71,161,0.1); border-radius:5px;}

你要是觉得需要用自己的样式。可以在模版的样式区域自己写个同样名字的class的css,然后加个!important来加强权重。
比如,你写一个这样的样式

ul.sents {
  background:rgba(13,71,161,0)!important
  border: solid, 1px!important
}

就可以看到如下效果
image

from odh.

tinnlo avatar tinnlo commented on August 14, 2024

感谢回复! 但我不是开发者啊,看了一下,好像是要修改插件的样式代码,再自己安装,对吗?

我只是能够在Anki里勉强调整一下样式,下载插件源码调整对我来说难度有点高。。。

实在不行我就关掉夜晚模式吧,这样显示还是很好看的。 谢谢您!

from odh.

ninja33 avatar ninja33 commented on August 14, 2024

不是改插件代码。加上面我给的这个样式,到anki模版的样式表里。你可以去看看anki的用户手册。

from odh.

tinnlo avatar tinnlo commented on August 14, 2024

OK, 搞定了,谢谢老黄!

这是我在卡片styling里边添加的代码,供各位参考:

ul.sents {
  background:rgba(13,71,161,0) !important;
  border: 1px solid #e5e5e5 !important;
}

from odh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.