Problem solved.

First, create a custom.css in _static/css/, then mark it in the conf.py: 
html_css_files = ['css/custom.css,']

Second, in the rst file:

.. role:: underdot
   :class: underdot

This is a test for underdotted text inline :underdot:`underdotted text`


----------------------------------------------------------------------
Here is the custom.css file:
.underdot {
   text-emphasis: dot;
   text-emphasis-color: #ff0000;
   text-emphasis-position: under;
}

在2023年4月20日星期四 UTC+8 13:03:45<ycproject> 写道:

> I want to create a custom css for in-line text underdot effect. I am able 
> to implement custom css for text color, but I can't write css for  underdot.
>
> I also refer to MDN and it always fails to work.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/5df70d8c-a64e-40e1-aba2-15a653d9a786n%40googlegroups.com.

Reply via email to