dreamweaver如何批量转换把html代码改成服务器的写法

xinqq163 2009-10-19 11:08:00
如何下面的那样
dreamweaver如何批量转换把html代码改成服务器的写法
就是把html代码改成服务器的写法
如果是手写的话好像太慢了 也很烦点
有更好的方法实现吗?
<table width="100%" border="0" cellspacing="4" cellpadding="0">
<tr>
<td style="padding-left:12px">
<img src="/img/ad/001.jpg" border=0>
</td>
</tr>
<tr>
<td style="padding-left:12px">
<img src="/img/ad/003.jpg" border=0>
</td>
</tr>
</table>

<%
Inxfun = Inxfun & "<table width=""100%"" border=""0"" cellspacing=""4"" cellpadding=""0"">"& vbcrlf
Inxfun = Inxfun & " <tr>" '发行
Inxfun = Inxfun & " <td style=""padding-left:12px"">"& vbcrlf
Inxfun = Inxfun & " <img src=""/img/ad/001.jpg"" border=0>"& vbcrlf
Inxfun = Inxfun & " </td>"& vbcrlf
Inxfun = Inxfun & "</tr>"& vbcrlf
Inxfun = Inxfun & " <tr>" '发行
Inxfun = Inxfun & " <td style=""padding-left:12px"">"& vbcrlf
Inxfun = Inxfun & " <img src=""/img/ad/003.jpg"" border=0>"& vbcrlf
Inxfun = Inxfun & " </td>"& vbcrlf
Inxfun = Inxfun & "</tr>"& vbcrlf
Inxfun = Inxfun & "</table>"& vbcrlf
%>
...全文
80 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵弟栋 2009-10-19
  • 打赏
  • 举报
回复
也想知道这样的方法 这个在代码分离是很有用的吧
lzp4881 2009-10-19
  • 打赏
  • 举报
回复
Dreamweaver没有这个功能,也不建议这样作,原因1楼已经说了,会加重服务器负担。
街头小贩 2009-10-19
  • 打赏
  • 举报
回复
不建议这样作!会让解析效率降低!能用.htm后缀的不要用.asp
xinqq163 2009-10-19
  • 打赏
  • 举报
回复
就是要用才要这样做的了 生成静态用的 。里面也有动态的 啊 我只是发个例子而已

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧