背景图像未显示 [英] backgroung image is not displaying

查看:97
本文介绍了背景图像未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景图像未显示
代码:

backgroung image is not displaying
code:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="error_page.aspx.cs" Inherits="DVD.error_page" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head  runat="server">
<title></title>
</head>
<body>
<form id="form1"  runat="server" style= "background-image :url(images\error.jpg);">
    <div style="height: 398px; width: 581px"  >    
    </div>
    </form>
    <p>
       </p>
    <p>
         </p>
</body>
</html>




请帮助我.. !!!




plz help me out..!!!

推荐答案

使用
style= "background-image :url(images\error.jpg)


身体为


with body as

<body style="background-image :url(images\error.jpg)">
</body>


没有格式


not with form


确保图像文件在那里.

检查此
CSS-背景图像 [
Make sure the image file exist there.

Check this
CSS - background-image[^]


您好..
以此替换您的表单标签,您的问题将得到解决..

Hi there..
Replace your form tag with this, your problem will be resolved..

<form id="form1" runat="server" style="background-image:<br mode=" hold=" />        url('images/error.jpg')"></form>



如果愿意,请接受答案.

最好的..:)



Accept the answer if you like it..

All the best.. :)


这篇关于背景图像未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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