Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 为什么不';无法解决响应web与本地和服务器不同的问题_Java_Html_Responsive - Fatal编程技术网

Java 为什么不';无法解决响应web与本地和服务器不同的问题

Java 为什么不';无法解决响应web与本地和服务器不同的问题,java,html,responsive,Java,Html,Responsive,->将页面加载到服务器无法正常工作 但“对本地开放”页面的工作响应迅速。我不明白 file:///C:/Users/mega79/8.9%20%EC%B6%9C%EA%B3%A0%EC%A0%95%EC%82%B0.HTML您的img DOM元素没有width属性, 这将加载图像源的自然宽度和高度。 这就是为什么您的img元素超出了布局。 您只需添加样式宽度:100%;到你的imgdom元素我解决了这个问题!我做到了 <!doctype html> <html lang="ko

->将页面加载到服务器无法正常工作

但“对本地开放”页面的工作响应迅速。我不明白


file:///C:/Users/mega79/8.9%20%EC%B6%9C%EA%B3%A0%EC%A0%95%EC%82%B0.HTML您的img DOM元素没有width属性, 这将加载图像源的自然宽度和高度。 这就是为什么您的img元素超出了布局。
您只需添加样式宽度:100%;到你的imgdom元素

我解决了这个问题!我做到了

<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"/>
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width"/>        
<script src="//code.jquery.com/jquery-1.11.0.js"></script>
<style>
  body {
    padding:0px;
    margin:0px;
  }
</style>    
<script>
  $(function() {
        $("#post_content img, .resizablebox").each(function() {
            var oImgWidth = $(this).width();
            var oImgHeight = $(this).height();
            $(this).css({
                'max-width':oImgWidth+'px',
                'max-height':oImgHeight+'px',
                'width':'100%',
                'height':'100%'
            });
        });
    });
</script>
</head>

<body>
<title>VANKOW ERP 메뉴얼입니다.</title>
<h1>8.별도 - 8.9 출고정산</h1>        
<div>
  <p>
    <img src="http://api.vankow.com/file/images/image045.png"/   style="maxwidth:900px; max-height: 900px; width: 100%; height:100%;">
  </p>
  </div>
 </body>
</html>

身体{
填充:0px;
边际:0px;
}
$(函数(){
$(“#post#u内容img,.resizelbox”)。每个(函数(){
var oImgWidth=$(this).width();
var oImgHeight=$(this).height();
$(this.css)({
“最大宽度”:oImgWidth+'px',
“最大高度”:oImgHeight+“px”,
“宽度”:“100%”,
“高度”:“100%”
});
});
});
万科ERP메뉴얼입니다.
8.별도 - 8.9출고정산        


你的问题似乎很不完整。哦,既然你给出了这个答案,我知道OP想问。OP是什么?是问这个问题的人。“OP”基本上是指“原创海报”(我加了样式宽度:100%,但仍然不起作用