【发布时间】:2015-11-28 11:34:13
【问题描述】:
我有一个 iframe 的 html 字符串,其中包含宽度和它的值。我想用 php 中的正则表达式替换宽度的值。例如,我动态地获取一个值
<iframe width="560" height="315" src="" frameborder="0" allowfullscreen></iframe>
我想通过正则表达式改变宽度的值。你能帮帮我吗?
【问题讨论】:
-
使用 PHP 改变宽度?正在使用模板? (我不是反对者)
-
@HalayemAnis 没问题,伙计。我明白。谢谢你的评论。但是,仍在尝试解决我的问题。
-
你应该找到另一种方法。看这里:stackoverflow.com/questions/1732348/…