让输入文字在div中的右下角
需要如下效果:
html代码:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style type="text/css"> #box { width: 1000px; height: 900px; background-color: sandybrown; position: absolute; } #box>p { position: absolute; right: 0; bottom: 0; color: salmon; } </style> </head> <body> <div id="box"> <p> hello 过年好! </p> </div> </body> </html>
纸上得来终觉浅,绝知此事要躬行!