如何在HTML Doxygen中指定图像大小? [英] How to specify image size in HTML Doxygen?

查看:165
本文介绍了如何在HTML Doxygen中指定图像大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图手动指定由Doxygen生成的HTML中的图像大小。但是,在我阅读文档时,只能在使用LaTeX输出。这里的任何人都知道有任何解决方法吗?

I am trying to manually specify the image size in the HTML generated by Doxygen. However, as I read in the documentation, this can only happen if using LaTeX output. Anybody here knows any workaround?

举个例子,我想这样做:

As an example, I would like to do something like this:

\image html example.png "Caption" width=10px

谢谢!

推荐答案

将其放在CSS文件Doc / doxygen_html_style.css中:

Put this in the CSS file "Doc/doxygen_html_style.css":

div.image img[src="example.png"]{ 
    width:100px; 
}

并将Doxygen配置变量* HTML_EXTRA_STYLESHEET *设置为Doc / doxygen_html_style.css

And set the Doxygen config variable *HTML_EXTRA_STYLESHEET* to "Doc/doxygen_html_style.css"

这篇关于如何在HTML Doxygen中指定图像大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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