English 中文(简体)
• 如何把这些纽子集中起来
原标题:How do I center these buttons
  • 时间:2012-01-15 18:41:23
  •  标签:
  • jquery
  • css

我在我的酒吧有两个职能,管理两个县,然后展示。 我想的是,要在该中心展示的纽芬兰语,但align=center。 没有工作。 是否有任何人知道如何在我的酒类法典中这样做?

页: 1 如下文法:

function insertQuestion(form) {   

    var $answer = $("<table class= answer ></table>");

    $( .allBtns:first-child ).each(function() {
        var $this = $(this);
        var $allBtnsClass =   ;

        $allBtnsClass = $("<input class= allBtns btnsAll  type= button  style= display: inline-block;  value= Select All Answers  onClick= selectAll(this);  />")
            .attr( name , $this.attr( name ))
            .attr( value , $this.val())
            .attr( class , $this.attr( class ));
        }

        $answer.append($allBtnsClass);
    });

    $( .allRemoveBtns:first-child ).each(function() {
        var $this = $(this);
        var $removeBtnsClass =   ;

        $removeBtnsClass = $("<input class= allRemoveBtns btnsRemove  type= button  style= display: inline-block;  value= Remove All Answers  onClick= removeAll(this);  />")
            .attr( name , $this.attr( name ))
            .attr( value , $this.val())
            .attr( class , $this.attr( class ));
        }

        $answer.append($removeBtnsClass);
    });

    $tr.append($answer);   
}
最佳回答

我不知道这是否是唯一的问题,但你将座子放在<条码>表上;表格不应直接包含<条码>的内容。 我不认为你需要一张桌子。 如果您将集装箱元素作为<条码>div(例如,带<条码>的载体/代码>),那么你就能够以你的风格:

.answers { text-align: center; }

然后,如果你停止在<条码>上设置<条码>显示:在您的<条码>上安装<>>条码/条码>,就应当逐条显示,然后在“条码”上显示:该集装箱的

页: 1 只有在与<条码>{相配时才需要。

I hope that helps.

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签