0
我有這樣的字符串,它由HTML語法,但也有一些CSS標籤還舉例說:更改CSS與JSOUP的Java
<style type='text/css'> #gallery-1 { margin: auto; } #gallery-1 .gallery-item { float: left; margin-top: 10px; text-align: center; width: 25%; } #gallery-1 img { border: 2px solid #cfcfcf; } #gallery-1 .gallery-caption { margin-left: 0; } /* see gallery_shortcode() in wp-includes/media.php */ </style>
而且我想改變width: 25%;
到width : 100%;
的幫助下JSOUP。我怎樣才能像這樣訪問字符串中的CSS標籤?
試試這個http://cssparser.sourceforge.net/ –