Detailed explanation of code for converting XML documents using CSS

黄舟
Release: 2017-03-30 13:56:59
Original
1541 people have browsed it

Introduction

Convert XML documents through CSS, the syntax format of linking CSS style files is as follows:

Syntax:

Copy after login

Through this Statement to reference an external CSS file to achieve formatted output of XML documents.

2 Application of CSS to convert XML documents

Apply CSS styles in examples to achieve formatted output of XML documents.

Three codes

1. CSS code:

CATALOG { background-color: #ffffff; width: 100%; } CD { display: block; margin-bottom: 30pt; margin-left: 0; } TITLE { color: #FF0000; font-size: 20pt; } ARTIST { color: #0000FF; font-size: 20pt; } COUNTRY,PRICE,YEAR,COMPANY { display: block; color: #000000; margin-left: 20pt; }
Copy after login

2. XML code:

    Empire Burlesque Bob Dylan USA Columbia 10.90 1985   Hide your heart Bonnie Tyler UK CBS Records 9.90 1988  
Copy after login

Four running results

Detailed explanation of code for converting XML documents using CSS

The above is the detailed content of Detailed explanation of code for converting XML documents using CSS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!