xml这段代码怎样改

来源:百度知道 编辑:UC知道 时间:2024/05/14 03:41:59
我想对这段代码加上对应图片的文字说明如:“够年头的酒”
<story1
imageURL="images/b-01.jpg"
readMore="http://www.mifeng.cc/video/够年头的酒/index.html"
thumbURL="images/s-01.jpg"
/>
三个相关文件:
xml文件<?xml version="1.0" encoding="UTF-8"?>
<topStories>
<story1
imageURL="images/b-01.jpg"
readMore="http://www.mifeng.cc/video/够年头的酒/index.html"
thumbURL="images/s-01.jpg"
/>
以下略
HTML文件 <html>
<head>
<style type="text/css">
body {
text-align:center;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
</head>

xml文档里面加上文字说明还是没有用,主要是读取xml时,是否读取了这个说明。
如你加了
<story1
imageURL="images/b-01.jpg"
readMore="http://www.mifeng.cc/video/够年头的酒/index.html"
thumbURL="images/s-01.jpg"
title="够年头的酒"/>
但在读取这个页面时还是要加上读取title这个字段内容。
请把你的读取给发上来。。。。否则也不好入怎么去改。

加alt标签,指定好控件。建议多看看相应的手册。了解一下其他元素。

查看源文件,然后在记事本里改,不行吗?