我想在HTML文件中显示文本文件。 我找到一种简单的方法,即使用html
的iframe标签<iframe src="test.txt" style="width:100%; height:100%;" frameborder="0" scrolling="auto"/>
但它对用户不友好。还有其他更好的方法。
答案 0 :(得分:1)
几个选项: - javascript / ajax - php
这个帖子有一些很好的建议:http://www.hotscripts.com/forums/html-xhtml-xml/53593-how-display-text-file-using-php-html.html