logichell 发表于 2019-6-15 06:17:49

如何對特定詞典的 table 定義?

我想讓一些詞典的 table 中的內容居中顯示,在 article-style.css 加了:


table{
text-align: center;
vertical-align: middle;
}


但這樣一來,所有詞典 table 中的內容都居中了。是否有辦法在 CSS 中指定某一些詞典的 Table 內容居中顯示呢?我試了這樣定義:

table #gdarticlefrom-79cde16ace07881cbd46fdc363836{
text-align: center;
vertical-align: middle;
}但目測 table 的定義都都效了。請高手幫助!

deeke 发表于 2019-6-15 11:55:54

反过来。
#gdarticlefrom-79cde16ace07881cbd46fdc363836 table { ... }

logichell 发表于 2019-6-15 16:57:08

deeke 发表于 2019-6-15 11:55
反过来。

太謝謝了!這下終於舒服了 {:4_97:}
页: [1]
查看完整版本: 如何對特定詞典的 table 定義?