search

Home  >  Q&A  >  body text

Position adjustment of PHP output information

After writing the html template and introducing the PHP file, I found that the echo output position is displayed in the header. How to adjust the echo output text to the specified position you want?

If you directly add a div to the echo, it is difficult to combine the layout with HTML. How is it usually done?

按键盘手指磨破皮按键盘手指磨破皮2705 days ago1936

reply all(1)I'll reply

  • 正念的奇迹

    正念的奇迹2017-07-30 19:48:49

    Define an id to store the div information, for example:

    #apDiv1 {

    position:absolute;

    left:94px;

    top:80px;

    width:105px;

    height:102px;

    z-index:1;

    }

    After, <div id="apDiv1"><?php echo 'abcd'; ?></div>

    reply
    1
  • Cancelreply