English 中文(简体)
2. 与牛页宽度相同的组别
原标题:Make asp Panel with the same as aspx page width

页: 1

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="SectionPreview.aspx.vb" Inherits="Management.SectionPreview" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link rel="stylesheet" type="text/css" href="Style_1.css" />
<link href="css/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="javascripts/jquery.js" type="text/javascript"></script>
<script src="javascripts/jquery-ui.min.js" type="text/javascript"></script>
<title>Addition Data Fields Section Preview</title>

<style type="text/css">
    @import url( Style_1.css );
   .style1 {
       text-align: center;
   }
  .footerMenu {
      font: xx-small serif;
      color: #336699;
      text-decoration: none;
  }
  .CustomSize
  {
      height: 100%;
      width: 100%;
  }

我把这pop成一个路窗,点击,该代码执行如下:

function showpage1() {
    var mydiv = $( #<%=poppage.ClientID%> );
    mydiv.dialog({
        autoOpen: false, modal: true, title:  Data Field Preview , width:  75% ,
        position: { my:  top , at:  top+150  },
        buttons:
        [
            {text: "Close", click: function() {$(this).dialog("close")}}
        ]

    });
    // Open the dialog
    mydiv.dialog( open );
}

我需要使小组的宽度和高度与网页相同。 我迄今所尝试的一切都没有任何效果。 该网页将配备用户定义的监控、电子计算机、文本箱、下级清单等。 然而,我无法让小组扩大到该页的宽度。 而且,我和小组一样,在用户转播该网页时,只要有可能,就自动转播。 我也找不到这样做的任何方法。 我做了什么错误?

问题回答

玻璃窗高(NOT文件高度),占90%。

因此,尝试:

            var winHeight = $(window).height() * 0.9;
            function showpage1() {
                var mydiv = $( #poppage );
                mydiv.dialog({
                    autoOpen: false, modal: true, title:  Data Field Preview ,
                    width:  75% , height : winHeight,
                    position: { my:  top , at:  top+150  },
                    buttons:
                        [
                            { text: "Close", click: function () { $(this).dialog("close") } }
                        ]

                });
                // Open the dialog
                mydiv.dialog( open );
            }

你们不需要作风,才能在作为方言pop的四分五裂中打出血。 然而,以上应为你工作。 height 0.9(90%)高,或使用全身文件高。 (我认为,有些婚礼应留在方言旁边,你已经拥有75%的宽度,因此说,90或80%的高度应该很好地发挥作用。

因此,文件。 视力往往达到页数的任何部分,而只是窗户。 浏览量达到目前浏览器窗户的高度。

我怀疑贵方位,但不管怎样,你很可能想去掉你的立场环境。 TU dialog将结束 d的高度和宽度,并超越风格。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签