前端开发2025年06月25日
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <script> var m=parseInt(Math.random()*); ...
前端开发2025年06月25日
这一段存放了一个模板。在js里面,经常需要使用js往页面中插入html内容。比如这样: var number = 123; $('#d').append('&lt;div class="t"&gt;'+number+'&lt;/div&gt;') 如果html很短还好说,但是遇到描述里面的这么大段,直接用...
前端开发2025年06月24日
{-webkit-animation: scaleout 1.2s infinite ease-in-out; animation: scaleout 1.2s infinite ease-in-out;} @keyframes scaleout { 0% { transform: scale(1.0); -webkit-transform: scale(...
前端开发2025年06月24日
在html中添加script脚本有两种方法,直接将javascript代码添加到html中与添加外部js文件,这两种方法都比较常用,大家可以根据自己需要自由选择 在html中添加<script>脚本的方法: 1、可以直接将javascript代码添加到html中 <script type="text/javascript"> //j...
前端开发2025年06月23日
1.IFrame 框架的形式. <iframe name="toppage" width=100% height=30 marginwidth=0 marginheight=0 src="top.htm" ></iframe> iframe也称作嵌入式框架,嵌入式框架和框架网页类似,它可以把一个网页的框架和内容嵌入在现有的网页中。它...
前端开发2025年06月23日
模板部分 <select name="select2" size="4" > <{html_options options=$sysUser}> </select> 程序部分 $sql_sysuser = "select * from tuser where tuser_status='1' order by tuser...
前端开发2025年06月23日
主要属性: prefix //string类型 默认前缀名为"Date_" start_year //string类型 默认为当前年份 仍可以用(+/-N)模式表示 如start_year="-10" option就从1998年开始 end_year //string类型 默认同上 可用(+/-N)模式表示 如end...
前端开发2025年06月22日
HTML5对link的rel属性添加N多值,其中最有用的就是预加载功能了。它比网上提到图片预加载有时不同,它的加载时机是由浏览器决定的,只有在空闲时间才偷偷加载指定资源,防止一下子加载这么多东西把页面卡死。 下面是MDC的说明 Link prefetching is a browser mechanism, which utilizes browser i...
前端开发2025年06月22日
private string StripHTML(string htmlString) { //This pattern Matches everything found inside html tags; //(.|\n) - &gt; Look for any character or a new line // *? -&gt; 0 ...
前端开发2025年06月22日
====索引===== 【Web缓存机制概述】1 – Web缓存的作用与类型 【Web缓存机制概述】2 – Web浏览器的缓存机制 【Web缓存机制概述】3 – 如何构建可缓存站点 【Web缓存机制概述】4 – HTML5时代的Web缓存机制 【Web缓存机制概述】5 – Web App时代的缓存机制新思路 ============ 随着现代浏览器的推动,...