简单dom问题

简单dom问题,dom,nodes,selectnodes,google-chrome-devtools,Dom,Nodes,Selectnodes,Google Chrome Devtools,说我有 <div id="searchform"> <div style="float:right"> <a href="~">Advanced Search</a> </div> <div id="resultStats"> About 5 trillion results </div> </div> (注意:id为“子窗体\u ctrl”) 但我认为float=b

说我有

<div id="searchform">
  <div style="float:right">
    <a href="~">Advanced Search</a>
  </div>
  <div id="resultStats">
    About 5 trillion results
  </div>
</div>
(注意:id为“子窗体\u ctrl”)

但我认为float=bottom是无效的。

那么,您真正想要完成的是什么呢?

浮动:底部!(顶部?!)

浮动:底部?当然


下一个版本我将删除'in'的'About'trade'results'并删除'seconds',并且仅在秒数超过时显示秒数。5

我从未听说过浮动底部。您从未听说过浮动底部,因为它不存在,将返回文本节点(如果其中甚至有一个换行符)我也不确定,但我不认为你可以这样设计风格。
document.getElementById("subform_ctrl").childNodes[0].style = 'float:bottom';
document.getElementById('searchform').childNodes[0].style = 'float:bottom';
document.querySelector('#searchform *:first-child').style.float = 'bottom'