simple way to display data in a .txt file on a webpage?

后端 未结 8 1015
遥遥无期
遥遥无期 2020-12-13 02:23

Working on a project, one of the webpages will display a list of people (specifically, a list of people from a graduation class that haven\'t been located yet). Instead of m

相关标签:
8条回答
  • 2020-12-13 03:00

    How are you converting the submitted names to "a simple .txt list"? During that step, can you instead convert them into a simple HTML list or table? Then you could wrap that in a standard header which includes any styling you want.

    0 讨论(0)
  • 2020-12-13 03:02

    I find that if I try things that others say do not work, it's how I learn the most.

    <p>&nbsp;</p>
    <p>README.txt</p>
    <p>&nbsp;</p>
    <div id="list">
      <p><iframe src="README.txt" frameborder="0" height="400"
          width="95%"></iframe></p>
    </div>
    

    This worked for me. I used the yellow background-color that I set in the stylesheet.

    #list  p {
        font: arial;
        font-size: 14px;
        background-color: yellow ;
    }
    
    0 讨论(0)
提交回复
热议问题