随笔分类 - HTML
摘要:转载至 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.
阅读全文
摘要:$("#nav").load("nav.html"); #nav为防止其他页面代码的容器,nav.html为要加载的外部代码文件 容器代码 <nav class="mt-2"> <ul id="nav"> </ul> </nav>
阅读全文
摘要:方法一:采用正则表达式获取地址栏参数:( 强烈推荐,既实用又方便!) function GetQueryString(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.searc
阅读全文
摘要:disabled 属性规定应该禁用 input 元素,被禁用的 input 元素,不可编辑,不可复制,不可选择,不能接收焦点,后台也不会接收到传值。设置后文字的颜色会变成灰色。disabled 属性无法与 <input type="hidden"> 一起使用。示例:<input type="text
阅读全文
摘要:<html> <head> <title>Test</title> </head> <body> <div id="div1" style="border:1px solid red; width:500px; position:relative; height:500px;"> 1111111 <
阅读全文
摘要:System.out.println("转义HTML,注意汉字:"+StringEscapeUtils.escapeHtml4("<font>chen磊 xing</font>")); //转义HTML,注意汉字 System.out.println("反转义HTML:"+StringEscapeU
阅读全文
摘要:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>CSS3:HSL和HSLA</title> <style type="text/css"> body{ background-color: #c8c8c8; bac
阅读全文
摘要:背景色 Marine Biology The Composition of Seawater Almost anything can be found in seawater. This includes dissolved materials from Earth's crust as well as materials released from...
阅读全文
摘要:前景色 Marine Biology The Composition of Seawater Almost anything can be found in seawater. This includes dissolved materials from Earth's crust as well as materials released ...
阅读全文
摘要:src:该特性指定视频的路径poster:在视频加载时或者视频播放之前,该特性用于指定在播放器中显示一个图像。width,height:用像素指定播放器的宽和高controls:让浏览器提供默认的播放控件autopplay:让视频自动播放loop:让视频在结束后重新播放,重复播放。preload:该
阅读全文
摘要:action:每个<form>元素都需要一个action特性,其特性值是服务器上一个页面的URL,这个页面用来在用户提交表单时接收表单中的信息 method:表单的提交方式可以采取以下两种方式 get和post ID:对元素进行唯一标示,用于定位。 <input>:这个元素用来创建多种不同的表单控件
阅读全文