首页
统计
留言
Search
1
Konsole 和 oh-my-zsh 的配置与使用
1,422 阅读
2
docker启动报错
811 阅读
3
wsl2使用windows下v2ray的代理
744 阅读
4
go-stress-testing 压力测试
493 阅读
5
ssh-agent手动添加sshkey报错
490 阅读
全部
PHP
Linux
软路由
杂项
Sql
Go
登录
Search
标签搜索
kubuntu
docker
mysql
pgsql
git
csv
shell
wine
linux
oh-my-zsh
wps
gost
起名
redis
ip
crontab
mac
nginx
wss
docker-compose
JyPony
累计撰写
49
篇文章
累计收到
0
条评论
首页
栏目
全部
PHP
Linux
软路由
杂项
Sql
Go
页面
统计
留言
搜索到
1
篇与
的结果
2021-08-11
PHP 正则替换img标签中的width
function removeImgAttr($content) { $content = preg_replace( array( '/(<img [^<>]*?)width=.+?[\'|\"]/', '/(<img.*?)((height)=[\'"]+[0-9|%]+[\'"]+)/', '/(<img.*?)((style)=[\'"]+(.*?)+[\'"]+)/', ) , array('$1 width="90%" ', '$1', '$1') , $content); return $content; }
2021年08月11日
381 阅读
0 评论
0 点赞