我如何在树视图后面使用图像 [英] how can i use image in back of my tree view

查看:71
本文介绍了我如何在树视图后面使用图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
如何在树形视图后面使用图像

然后显示节点文本

hi how can i use image in back of my tree view
and then node text display on it

推荐答案

请看我对这个问题的评论:这取决于它的外观应该如何。根据你的要求。



也许最简单的方法就是用CSS背景图片: https://developer.mozilla.org/en-US/docs/Web / CSS / background-image [ ^ ]。



当然,您应该将带有背景图像的类应用于树视图,而不是应用块元素,例如 div 或页面。



小心!使用背景图像很容易使您的主要内容难以阅读。你的主要目标应该是清晰的可读性,功能性,可访问性和良好的内容,而不是装饰。



-SA
Please see my comment to the question: it depends on how exactly it should look, according to your requirements.

Perhaps the simplest way to achieve it would be CSS with background image: https://developer.mozilla.org/en-US/docs/Web/CSS/background-image[^].

Of course, you should apply a class with background image not to your tree view, but to enclosing block element, such as div or the page.

Be very careful! Using background images can easily make you main content poorly readable. You main goal should be clear readability, functionality, accessibility and good content, not decorations.

—SA

这篇关于我如何在树视图后面使用图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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