用户:RedDragon/Test1:修订间差异
来自Rizline中文维基
更多操作
小 |
小 |
||
| 第32行: | 第32行: | ||
container.innerHTML = '' | container.innerHTML = '' | ||
var wrapper = document.createElement('div') | |||
wrapper.className = 'clearfix' | |||
wrapper.style.cssText = 'display: inline-block; width: 100%;' | |||
var leftClone = leftContent.cloneNode(true) | |||
leftClone.style.cssText = 'width: 35%; float: left;' | |||
wrapper.appendChild(leftClone) | |||
var rightClone = rightContent.cloneNode(true) | |||
rightClone.style.cssText = 'float: right; width: 60%;' | |||
wrapper.appendChild(rightClone) | |||
container.appendChild(wrapper) | |||
var baseUrl = window.location.protocol + '//' + window.location.host | var baseUrl = window.location.protocol + '//' + window.location.host | ||