Z-Index无样式表 [英] Z-Index without style sheet

查看:108
本文介绍了Z-Index无样式表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以为HTML中的图片设置Z-Index,而无需编写或嵌入样式表?我上传一些内容到网络论坛,我需要能够在图像的顶部放置一些文本,格式化在表格内,但图像只是被推开的方式。没有办法发送回。我一直在对HTML本身进行细微的修改,但我一直在试图避免它,因为基于GUI的编辑器往往添加了很多额外的填充到HTML,并使它很容易阅读。

Can you set the Z-Index for an image in HTML without writing or embedding a style sheet? I am uploading some content to a web forum and I need to be able to put some text on top of an image, formatted inside of a table, but the image just gets pushed out of the way. There is no way to "send to back". I have been making minor changes to the HTML itself, but I have been trying to avoid it as the GUI based editor tends to add a lot of extra filler to the HTML and makes it aweful to read.

推荐答案

你的意思是一个内联样式?所以像

You mean like an inline style? So someting like

<img src="http://path/to/img/" style="position: absolute; z-index: 3" />

这篇关于Z-Index无样式表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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