点击显示代码,为什么点击显示按钮,隐藏的iframe标签的内容还是不显示呢?
<body><script>functionopenme(){document.getElementById('if').style.display='block';}<...
<body>
<script>
function openme(){
document.getElementById('if').style.display='block';
}
</script>
<div id="if" style="display:none;">
<iframe src="file:///F|/Bestcolorsoter/English/产品列表/Beans color sorter/Beans color sorter,White rice color sorter,Parboiled rice color sorter,Mung bean color sorter_files/b_20150311015841465.jpg" align="left" style=" display:none; width:400px; height:400px;" >
</iframe>
</div>
<center>
<input type="button" value="显示" onclick="openme()" name="button">
</center>
</html> 展开
<script>
function openme(){
document.getElementById('if').style.display='block';
}
</script>
<div id="if" style="display:none;">
<iframe src="file:///F|/Bestcolorsoter/English/产品列表/Beans color sorter/Beans color sorter,White rice color sorter,Parboiled rice color sorter,Mung bean color sorter_files/b_20150311015841465.jpg" align="left" style=" display:none; width:400px; height:400px;" >
</iframe>
</div>
<center>
<input type="button" value="显示" onclick="openme()" name="button">
</center>
</html> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询