代码之家  ›  专栏  ›  技术社区  ›  user225269

如何在花式盒子中设计元素

  •  0
  • user225269  · 技术社区  · 15 年前

    这是我第一次使用模态窗口。我现在用的是花式盒子。但问题是我不能在里面设计元素的样式。使用通常的样式使用css。

    <a id="inline"  href="http://localhost/pos/php/regprod.php" ><img src="http://localhost/pos/img/store/add-icon.png"></img></a>
    

    我使用准确的url将css文件链接到regprod.php:

    <link rel="stylesheet" href="http://localhost/pos/css/formstyle.css" />
    

    看起来是这样的:

    alt text

    我该怎么打扮呢

    3 回复  |  直到 15 年前
        1
  •  1
  •   Fedir RYKHTIK    15 年前

    您应该使用JS而不是传统的CSS来访问远程iframe内容。 这是使用jQuery访问iframe的一个例子:

    var yourFrame = $(’#yourFrameId’);
    yourFrame.load(function() {
        yourFrame.contents().find(’#yourElementInFrame’).css('display:block');
    });
    
        2
  •  1
  •   nerkn    15 年前

    fancybox获取regprod.php的内容,然后放入div(实际上是mant div)

        3
  •  0
  •   nicorellius    13 年前

    <form style="font: normal 16px/1.3em Helvetica, Verdana, Arial;"
        id="ml-form" class="site-form" method="post" action="">
    
        <p style="font-weight: bold; color: #6d6e71; text-align: center;">
            Mailing list sign up form</p>
    
        <div style="display: none;">
            <p id="login_error">Please enter data below...</p>
        </div>
    
        <table style="font-size: 0.8em; font-weight: bold; padding-left: 10px;">
    
        . . .
    
    </form>