文本gif文件如何不会覆盖背景图片 [英] How the text gif file will not cover the background picture

查看:64
本文介绍了文本gif文件如何不会覆盖背景图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能告诉我为什么我的文本gif文件"覆盖背景图片吗?我只想在背景图片上显示文字.
如何解决?谢谢.

Does anyone can tell me why my "text gif file" cover the background picture? I want to show text only on the background picture.
How to fix it? Thanks.

推荐答案

也许您的GIF背景不是透明的.也许您正在使用的浏览器不支持GIF透明度.
Perhaps your GIF background isn''t transparent. Or maybe the browser you are using doesn''t support GIF transparency.


听起来像是在谈论图像边框.此示例显示了如何使用CSS删除它们(如果您打算进行各种严肃的网络工作,这是一个非常有价值的主题):
Sounds like you are talking about image borders. This example shows how to remove them using CSS (a topic that is invaluable if you plan on doing any sort of serious web work):
<html>
<head>
	<style type="text/css">
		img
		{
			border-style: none;
		}
	</style>
</head>
<body>
	<a href="http://www.google.com/"><img src="img.png" /></a>
</body>
</html>


仅供参考,有许多网站可让您上传图像. PhotoBucket是其中之一.另外,您从未发布任何代码.下次您在这里提出问题时,请发布一些演示该问题的代码,您会得到更快的答复.


FYI, there are many websites that allow you to upload images. PhotoBucket is one of them. Also, you never posted any code. Next time you ask a question here, post some code that demonstrates the problem and you''ll get a much quicker response.


我的问题代码

< body>
< div style ="background-image:url(" App_Themes/DarkBeer/images/bh_header.png);高度:109px;宽度:798px;" >

< img style ="border-style:none; width:259px;" src ="Images/MyCraftShop.gif"
height ="109px" alt =徽标"/>

</div>
</body>
My problem code

<body >
<div style="background-image: url (''App_Themes/DarkBeer/images/bh_header.png''); height: 109px; width: 798px;" >

<img style="border-style:none; width: 259px;" src="Images/MyCraftShop.gif"
height="109px" alt="logo" />

</div>
</body>


这篇关于文本gif文件如何不会覆盖背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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