【发布时间】:2012-06-02 07:08:08
【问题描述】:
我有一个 HTML 内容,它是一个描述,我想使用 substring 函数剪切它。但它显示错误。
这是我的 HTML:
<span style="font-family: verdana; font-size: 13px; color: #000000;"><p><span style="font- family: verdana; font-size: 13px; color: #000000;">There's no need to sacrifice performance with a small system.<br /> <br /> Experience the eco-friendly Small Form Factor (SFF) desktop platform powered by the 2nd generation Intel® Core™ vPro™ processor family.<br /> <br /> The EVO DQ67, coupled with the latest Intel® Active Management Technology (Intel® AMT) 7.0, provides the unprecedented secured and seamless PC remote management in SFF platform, featuring the latest SuperSpeed USB 3.0, SATA 6 Gb/s technologies, and triple graphic port options.<br /> <br /> </span><span style="font-family: verdana; font-size: 13px; color: #000000;">Select from our range of pre configured sytems or tell us what you want and we will build you your own individul bespoke PC.</span></p>
【问题讨论】:
-
你想剪它是什么意思?像将文本换行一样剪切?还是只显示一定数量的字符?
-
不是一个真正的问题。描述您想要什么、您的目标是什么等,并请发布您遇到的错误、您尝试过的代码等。阅读How to Ask 页面了解更多信息。
-
我只想显示一定数量的字符