【发布时间】:2014-12-24 18:47:39
【问题描述】:
我有一个像下面这样的 php 字符串,
$str= ' <html>------- <style type="text/css">@media only screen and (max-width: 480px) { .message_mobile,.mesage_logo_mobile { width: 100% !important;} } .message_mobile{ width:600px;} /*message_width 600px */</style> -----</html>';
我需要从/*message_width 600px */ 读取600px 是否可以从字符串中获取该值?
【问题讨论】:
-
这可能对你有帮助.. stackoverflow.com/questions/1935918/…