介绍
本篇文章给大家分享的是有关使用php怎么实现一个文件预览功能,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。
代码如下:
1.玉兰。php
& lt; ! DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0,过渡//EN",“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"比; & lt; html  xmlns=癶ttp://www.w3.org/1999/xhtml"比; & lt; head> & lt; meta  http-equiv=癈ontent-Type",内容=皌ext/html;, charset=utf-8",/比; & lt; title>无标题文档& lt;/title> & lt; style 类型=拔谋?css"比; # yl{,宽度:200 px;,身高:300 px;,背景图片:url(图片/timg1.jpg);, background-size: 200 px 300 px;} #文件{,宽度:200 px;,身高:300 px;,浮动:左,,不透明度:0;} & lt;/style> & lt;/head> & lt; body> & lt; form id=皊c", action=皔lchuli.php",方法=皃ost", enctype=岸嗖糠?form-data",目标=皊hangchuan"比; ,, ,, & lt;才能input 类型=癶idden", name=皌p",价值=https://www.yisu.com/zixun/" id=" tp "/>身体>