我有一个包含 WebRTC 视频通话的 Flutter 应用程序。Flutter 有没有办法让应用程序在接到电话时显示自己或最大化自己?
我正在使用js来改变内容输入的div的内容我希望用它们与Ajax一起使用,我使用Firefox暂存器来调试这个函数:
function show(id){
var div = document.getElementById('com');
div.innerHTML = '';
var input1 = document.createElement('input')
.createAttribute('type').setAttribute('type', 'hidden')
.createAttribute('value').setAttribute('value',id )
.setAttribute('name','id' );
var input2 = document.createElement('input')
.createAttribute('type').setAttribute('type', 'input')
.createAttribute('name').setAttribute('name', 'com');
var btn = document.createElement('button')
.createAttribute('onClick').setAttribute('onClick', 'post()');
btn.innerHTML = 'Comment';
div.appendChild(input1).appendChild(input2).appendChild(btn);
}
Run Code Online (Sandbox Code Playgroud)
我得到的是这个:
/*
Exception: document.createElement(...).createAttribute is not a function
@Scratchpad/2:2
*/
Run Code Online (Sandbox Code Playgroud)
我什么都不懂,有什么想法?
我有3个<div>像这样:
-----------------------------------------
| | div2 | |
| div1 |--------------------| div3 |
| |////////new div/////| |
-----------////////////////////----------
Run Code Online (Sandbox Code Playgroud)
CSS
.parentdiv{
position:relative;
}
div1,div2,div3{
position:relative
float:left}
Run Code Online (Sandbox Code Playgroud)
我试图制作新<div>的position:relative,float
但无法制作它.
我不想用position:absolute.
html ×2
android ×1
css ×1
firefox ×1
flutter ×1
ios ×1
javascript ×1
mobile ×1
position ×1
scratchpad ×1