寬度我有一個PHP串狀波紋管,得到CSS註釋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>';
我需要閱讀600px
從/*message_width 600px */
是否有可能得到的字符串值?
這可能會幫助你.. http://stackoverflow.com/questions/1935918/php-substring-extraction-get-the-string-before-the-first-or-the-whole-strin – Chella 2014-10-29 06:34:05