放置1个标签顶部,1个输入底部和2个按钮

时间:2015-06-08 00:39:54

标签: html html5 css3 browser

我想在输入的顶部放置1个标签,右边有两个居中的按钮(在div内)。

目前我的代码不灵活,我无法在任何地方轻松使用我的课程 在我的网页上,因为它强烈依赖于#.bu-container高度远远超过它应该的大。此外,我不确定在不同浏览器上调整更多内容时会有一个好结果。

提前感谢您的回复,

这是我错误的代码:



#position {
  height: 500px;
}
.bu-container {
  margin: 10px;
  display: block;
  float: left;
  height: 50px;
  width: 400px;
  overflow: hidden;
}
.bu-container input {
  float: left;
}
.bu-container .bu {
  float: right;
  top: 0px;
  right: 50px;
  padding: 1px;
}
.bu-container button {
  height: 10px;
  display: block;
}

<div id="Position">
  <span class="bu-container">
            	<span class="bu"> <button></button> <button></button> </span>
  <label>Height</label>
  <input id="LHeight" min="0" type="number" value="">
  </span>
  <span class="bu-container">
                <span class="bu"> <button></button> <button></button> </span>
  <label>Width</label>
  <input id="LWidth" min="0" type="number" value="">
  </span>
  <span class="bu-container">
                <span class="bu"> <button></button> <button></button> </span>
  <label>X</label>
  <input id="x" min="0" type="number" value="">
  </span>
  <span class="bu-container">
            <span class="bu"> <button></button> <button></button> </span>
  <label>Y</label>
  <input id="y" min="0" type="number" value="">

  </span>
</div>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

检查出来......

&#13;
&#13;
#!/usr/intel/pkgs/python/2.7.2/bin/python
import sys 
import argparse
import os
import time
import commands
import subprocess
import mmap
import sys 
import argparse
import os.path
import smtplib



from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart

msg = MIMEMultipart()

monty_python = "monty_python.txt"

if(os.path.getsize(monty_python) > 0) is True:
  text = "\n\n Cool !! some info found"
  part1 = MIMEText(text,'plain')
  with open(monty_python , 'r') as input_data:
  thestring = input_data.read()
  montystring = thestring[thestring.find('---------Monty Python-----'):]
  e_mailthis = montystring[montystring.find('\n')+1:]
  monty_log = MIMEText(e_mailthis,'plain')  
  print monty_log

else:
  text = "No info found"
  part1 = MIMEText(text,'plain')

msg.attach(part1)
msg.attach(monty_log)

print ("msg is %s")%(msg)

me  = "my_email"
you = "receiptant's email"

msg['Subject'] = 'Monty Python info' 
msg['From'] = "me"
msg['To'] = "you"

s = smtplib.SMTP('localhost')
s.sendmail(me, you, msg.as_string())
s.quit()
&#13;
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
}
#position {
  height: 500px;
}
.row-container {
  
  display: inline-block;
  text-align: justify;
  margin: 0px auto;
  width: 100%;
  margin-top:10px;
  margin-bottom:10px;
  border:5px solid #ccc;
  padding:10px;
}
.input-text-container {
  display: inline-block;
  width: 50%;
 
}
.input-text-container input {
  width: 100%;
}
.button-container {
  width: 49%;
  display: inline-block;
  margin: 0px auto;      
  text-align:center;
}
.button-container button {


}
&#13;
&#13;
&#13;