我试图在一行中给出6个col-md-4' enter image description here并将它们包装成两行,并在调整大小时以相同的方式工作,当我尝试使用col进行相同操作时-md-3(通过给出8个)它们在调整大小时会导致问题。请帮忙
main = Tk()
main.title("Players Names")
var1 = StringVar()
var2 = StringVar()
Label(main, text="Player One: ").pack(side=LEFT)
e1 = Entry(main, textvariable=var1).pack(side=LEFT)
Label(main, text="Player Two: ").pack(side=LEFT)
e2 = Entry(main, textvariable=var2).pack(side=LEFT)
def enter():
player1 = var1.get()
player2 = var2.get()
def printIt():
print player1
print player2
Button(main, width=15, text="ENTER", command=enter).pack(side=LEFT)
Button(main, width=15, text="PRINT", command=printIt).pack(side=LEFT)
main.mainloop()

这是我用过的导致错误的html代码。感谢您的帮助