我正在创建车辆列表网站,并且我有车辆选项字段,其中包含大量用逗号分隔的文本。这是代码
<div class="dvs-options">
Driver Airbag,Anti-Lock Brakes,Passenger Airbag,Alarm,Side AirbagCD Player,AM/FM Radio,AM/FM Stereo,DVD,CD Changer,Aftermarket Speaker,Hard Disc,Satellite RadioPower Windows,Rear Window Defroster,Tinted Glass,Rear Window WiperPower Door Locks,Alloy Wheels,Power Mirrors,Sunroof,Third Row Seats,Power Slide DoorNo Accident history,Maintenance Records Available,One Owner,New Tires,Non-Smoker,Fully Loaded,Performance Tires,Turbo,Upgraded Sound System,Custom Wheels,Repainted CarLeather Seats,Power Seats,Child Seat,Bucket Seat
</div>
我想逐行输出此文本字段的显示内容,如:
Driver Airbag
Anti-Lock Brakes
Passenger Airbag
如何使用 CSS 或 javascript 实现这一点?
哆啦的时光机
PIPIONE
POPMUISE
慕尼黑5688855
相关分类