0
我正在Web部件的重寫的CreateChildControls()方法中創建控件。如何讓我的Sharepoint兒童控件水平對齊?
我的代碼是這樣的(沒有雙關語意):
this.Controls.Add(new LiteralControl("<h2>Duckbilled Platypus Unlimited</h2>"));
this.Controls.Add(new LiteralControl("<h3>Angle of Repose of Bill: "));
boxRequestDate = new TextBox();
this.Controls.Add(boxRequestDate);
this.Controls.Add(new LiteralControl("</h3>"));
this.Controls.Add(new LiteralControl("<h3>Venomosity/Lethality Quotient of Poison Toe: "));
boxPaymentAmount = new TextBox();
this.Controls.Add(boxPaymentAmount);
this.Controls.Add(new LiteralControl("</h3>"));
...我看到這一點:
我想看到的是 「Venomosity」 LiteralControl和TextBox右邊的/水平對齊第一個LiteralControl和TextBox(在它們的右邊,而不是在它們下面)。我怎樣才能做到這一點?