所引用的css也都拷过去了!这点事肯定的!
我重新弄个html和aspx,分别都考过去试了一下,在html中没有问题!!但是只要到了aspx中就不行了!!
请高手指点!!
在http://topic.****.net/u/20090420/17/6fc888bb-ef3a-489b-a02f-3ddeed7a3240.html中的方法我都试过了,还是不行!!!!!!!
26 个解决方案
#1
是不是样式冲突了。。?
#2
要看了代码才知道
#3
看看
#4
说的太模糊了 要看具体情况的
#5
样式连接是否正确
贴出一部分代码看看
贴出一部分代码看看
#6
有时候ASPX里面的from表单会导致变形 如果html里面没有 aspx里面有的话 那肯定会变形的。
还是贴代码上来看看咯!!
还是贴代码上来看看咯!!
#7
是不是你的路径设置的有问题。
#8
我遇到过...
要是没错的话..应该是css样式文件和你的aspx页面编码不一样
美工一般喜欢用gb2312写样式,aspx 页面默认是utf-8的
你吧css样式文件改下编码
试试
要是没错的话..应该是css样式文件和你的aspx页面编码不一样
美工一般喜欢用gb2312写样式,aspx 页面默认是utf-8的
你吧css样式文件改下编码
试试
#9
注意<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
这句的区别
这句的区别
#10
1,除了css,用到其他样式没
2,样式用的是内联还是级联
3,检查一下,必有一处有问题
4,必要的话,查看属性页的设置
2,样式用的是内联还是级联
3,检查一下,必有一处有问题
4,必要的话,查看属性页的设置
#11
这个是aspx的头部
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="drugandshop_Default2" %>
<!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>
<link href="css/head.css" rel="stylesheet" type="text/css" />
<link href="css/bottom.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/meidicine_rank.css" rel="stylesheet" type="text/css" />
<link href="css/recommand_medicine.css" rel="stylesheet" type="text/css" />
<link href="css/drugStore.css" rel="stylesheet" type="text/css" />
</head>
这个是html的头部
<!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>
<title>无标题页</title>
<link href="css/head.css" rel="stylesheet" type="text/css" />
<link href="css/bottom.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/meidicine_rank.css" rel="stylesheet" type="text/css" />
<link href="css/recommand_medicine.css" rel="stylesheet" type="text/css" />
<link href="css/drugStore.css" rel="stylesheet" type="text/css" />
</head>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="drugandshop_Default2" %>
<!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>
<link href="css/head.css" rel="stylesheet" type="text/css" />
<link href="css/bottom.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/meidicine_rank.css" rel="stylesheet" type="text/css" />
<link href="css/recommand_medicine.css" rel="stylesheet" type="text/css" />
<link href="css/drugStore.css" rel="stylesheet" type="text/css" />
</head>
这个是html的头部
<!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>
<title>无标题页</title>
<link href="css/head.css" rel="stylesheet" type="text/css" />
<link href="css/bottom.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/meidicine_rank.css" rel="stylesheet" type="text/css" />
<link href="css/recommand_medicine.css" rel="stylesheet" type="text/css" />
<link href="css/drugStore.css" rel="stylesheet" type="text/css" />
</head>
#12
刚才我又查了些资料,改了一下,可以肯定是gb2312 跟utf-8 的问题!!
但是怎么改??请高手指点!!
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
当把后一个 utf-8改成gb2312后样式部分正常,但是还有相当的一部分不正常!!!!!
但是怎么改??请高手指点!!
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
当把后一个 utf-8改成gb2312后样式部分正常,但是还有相当的一部分不正常!!!!!
#13
在head 里加上 responseEncoding="utf-8"/
或者强制
Html的内容可以用GB2312码,也可用UTF-8码,
用<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8"> 的方法告诉浏览器.
或者强制
Html的内容可以用GB2312码,也可用UTF-8码,
用<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8"> 的方法告诉浏览器.
#14
试试我的方法行不行。
#15
简单点的办法,你用vs建个css文件,默认是UTF-8编码,把原css的内容复制到这个新文件就ok了。
以前也碰到过这种情况 - -
#16
up
#17
学习
#18
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 这行删掉试试
#20
支持9楼的说法。
然后你再看看URL是否正确。CSS里的图片地址等等 ,另外图片有没有拷全。
然后你再看看URL是否正确。CSS里的图片地址等等 ,另外图片有没有拷全。
#21
这个发方法不管用
#22
编码问题
#23
这个同样不管用!!
css的编码的问题???
改了之后怎么还是不行呢??
#24
这个我知道,但是该怎么解决呢???
#25
这句不管用!!
还有其他方法么?谢谢!!!
#26
将HTML的body中的内容放到ASPX的Form标签内即可,样式放到单独的CSS文件,并在aspx做个导入链接,应该不会有问题,
#1
是不是样式冲突了。。?
#2
要看了代码才知道
#3
看看
#4
说的太模糊了 要看具体情况的
#5
样式连接是否正确
贴出一部分代码看看
贴出一部分代码看看
#6
有时候ASPX里面的from表单会导致变形 如果html里面没有 aspx里面有的话 那肯定会变形的。
还是贴代码上来看看咯!!
还是贴代码上来看看咯!!
#7
是不是你的路径设置的有问题。
#8
我遇到过...
要是没错的话..应该是css样式文件和你的aspx页面编码不一样
美工一般喜欢用gb2312写样式,aspx 页面默认是utf-8的
你吧css样式文件改下编码
试试
要是没错的话..应该是css样式文件和你的aspx页面编码不一样
美工一般喜欢用gb2312写样式,aspx 页面默认是utf-8的
你吧css样式文件改下编码
试试
#9
注意<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
这句的区别
这句的区别
#10
1,除了css,用到其他样式没
2,样式用的是内联还是级联
3,检查一下,必有一处有问题
4,必要的话,查看属性页的设置
2,样式用的是内联还是级联
3,检查一下,必有一处有问题
4,必要的话,查看属性页的设置
#11
这个是aspx的头部
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="drugandshop_Default2" %>
<!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>
<link href="css/head.css" rel="stylesheet" type="text/css" />
<link href="css/bottom.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/meidicine_rank.css" rel="stylesheet" type="text/css" />
<link href="css/recommand_medicine.css" rel="stylesheet" type="text/css" />
<link href="css/drugStore.css" rel="stylesheet" type="text/css" />
</head>
这个是html的头部
<!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>
<title>无标题页</title>
<link href="css/head.css" rel="stylesheet" type="text/css" />
<link href="css/bottom.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/meidicine_rank.css" rel="stylesheet" type="text/css" />
<link href="css/recommand_medicine.css" rel="stylesheet" type="text/css" />
<link href="css/drugStore.css" rel="stylesheet" type="text/css" />
</head>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="drugandshop_Default2" %>
<!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>
<link href="css/head.css" rel="stylesheet" type="text/css" />
<link href="css/bottom.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/meidicine_rank.css" rel="stylesheet" type="text/css" />
<link href="css/recommand_medicine.css" rel="stylesheet" type="text/css" />
<link href="css/drugStore.css" rel="stylesheet" type="text/css" />
</head>
这个是html的头部
<!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>
<title>无标题页</title>
<link href="css/head.css" rel="stylesheet" type="text/css" />
<link href="css/bottom.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/meidicine_rank.css" rel="stylesheet" type="text/css" />
<link href="css/recommand_medicine.css" rel="stylesheet" type="text/css" />
<link href="css/drugStore.css" rel="stylesheet" type="text/css" />
</head>
#12
刚才我又查了些资料,改了一下,可以肯定是gb2312 跟utf-8 的问题!!
但是怎么改??请高手指点!!
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
当把后一个 utf-8改成gb2312后样式部分正常,但是还有相当的一部分不正常!!!!!
但是怎么改??请高手指点!!
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
当把后一个 utf-8改成gb2312后样式部分正常,但是还有相当的一部分不正常!!!!!
#13
在head 里加上 responseEncoding="utf-8"/
或者强制
Html的内容可以用GB2312码,也可用UTF-8码,
用<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8"> 的方法告诉浏览器.
或者强制
Html的内容可以用GB2312码,也可用UTF-8码,
用<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8"> 的方法告诉浏览器.
#14
试试我的方法行不行。
#15
简单点的办法,你用vs建个css文件,默认是UTF-8编码,把原css的内容复制到这个新文件就ok了。
以前也碰到过这种情况 - -
#16
up
#17
学习
#18
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 这行删掉试试
#19
#20
支持9楼的说法。
然后你再看看URL是否正确。CSS里的图片地址等等 ,另外图片有没有拷全。
然后你再看看URL是否正确。CSS里的图片地址等等 ,另外图片有没有拷全。
#21
这个发方法不管用
#22
编码问题
#23
这个同样不管用!!
css的编码的问题???
改了之后怎么还是不行呢??
#24
这个我知道,但是该怎么解决呢???
#25
这句不管用!!
还有其他方法么?谢谢!!!
#26
将HTML的body中的内容放到ASPX的Form标签内即可,样式放到单独的CSS文件,并在aspx做个导入链接,应该不会有问题,