1.

中的特殊符号

    当浏览器遇到2个或更多的空格(回车)会显示成一个空格。



   空格

&   &

<       <

>      >

"   "

&qpos;   '


回车

2.语义标记



重点文字

 缩进,表明引用



3.



target='_blank'

href='mailto:[email protected]'

href='#id' 返回到当前页面指定id的元素位置

href='http://sdfsdf/#id' 返回到sdfsdf页面指定id的元素位置





4.

 





大家在写xhtml、html中常常用到一种图片列表,图片+标题或者图片+标题+简单描述。以前的常规写法:



  • title



  • 而在html5中有了新标签更能语义化的定义出这中图片列表,那就是figure标签。



    w3c赋予的定义:figure标签规定独立的流内容(图像、图表、照片、代码等等)。figure 元素的内容应该与主内容相关,但如果被删除,则不应对文档流产生影响。

    实例代码:



    黄浦江上的的卢浦大桥







    figure用来代替原来li标签,P标签谁来取代呢?答案就是:figcaption



    w3c赋予的定义:figcaption 标签定义 figure 元素的标题(caption)。"figcaption" 元素应该被置于 "figure" 元素的第一个或最后一个子元素的位置。



    那么上面的代码就变成了:



    黄浦江上的的卢浦大桥








    5.



      Male  Female

    label 元素不会向用户呈现任何特殊效果。不过,它为鼠标用户改进了可用性。如果您在 label 元素内点击文本,就会触发此控件。就是说,当用户选择该标签时,浏览器就会自动将焦点转到和标签相关的表单控件上。





    6.SWFObject



      Male  Female

    label 元素不会向用户呈现任何特殊效果。不过,它为鼠标用户改进了可用性。如果您在 label 元素内点击文本,就会触发此控件。就是说,当用户选择该标签时,浏览器就会自动将焦点转到和标签相关的表单控件上。







    使用

     SWFObject library 

    播放flash

    
    SWFObject - step 3swfobject.registerObject("myId", "9.0.115", "expressInstall.swf");

    Alternative content



    • classid (outer object element only, value is always clsid:D27CDB6E-AE6D-11cf-96B8-444553540000)

    • type (inner object element only, value is always application/x-shockwave-flash)

    • data (inner object element only, defines the URL of a SWF)

    • width (both object elements, defines the width of a SWF)

    • height (both object elements, defines the height of a SWF)



    1. The first argument (String, required) specifies the id used in the markup.

    2. The second argument (String, required) specifies the Flash player version your content is published for. It activates the Flash version detection for a SWF to determine whether to show Flash content or force alternative content by doing a DOM manipulation. While Flash version numbers normally consist of major.minor.release.build, SWFObject only looks at the first 3 numbers, so both "WIN 9,0,18,0" (IE) or "Shockwave Flash 9 r18" (all other browsers) will translate to "9.0.18". If you only want to test for a major version you can omit the minor and release numbers, like "9" instead of "9.0.0".

    3. The third argument (String, optional) can be used to activate Adobe express install and specifies the URL of your express install SWF file. Express install displays a standardized Flash plugin download dialog instead of your Flash content when the required plugin version is not available. A default expressInstall.swf file is packaged with the project. It also contains the corresponding expressInstall.fla and AS files (in the SRC directory) to let you create your own custom express install experience. Please note that express install will only fire once (the first time that it is invoked), that it is only supported by Flash Player 6.0.65 or higher on Win or Mac platforms, and that it requires a minimal SWF size of 310x137px.

    4. The fourth argument (JavaScript function, optional) can be used to define a callback function that is called on both success or failure of creating a Flash plug-in  on the page (see API documentation)



      https://code.google.com/p/swfobject/wiki/documentation





      使用

       SWFObject 自动加载

      播放flash

      
      SWFObject dynamic embed - step 3swfobject.embedSWF("1.swf", "myContent", "300", "120", "9.0.0");

      Alternative content



      swfobject.embedSWF(swfUrl, id, width, height, version, expressInstallSwfurl, flashvars, params, attributes, callbackFn)has five required and five optional arguments:

      1. swfUrl (String, required) specifies the URL of your SWF

      2. id (String, required) specifies the id of the HTML element (containing your alternative content) you would like to have replaced by your Flash content

      3. width (String, required) specifies the width of your SWF

      4. height (String, required) specifies the height of your SWF

      5. version (String, required) specifies the Flash player version your SWF is published for (format is: "major.minor.release" or "major")















      转载于:https://blog.51cto.com/bysowhat/1600023

      更多相关:

      • 上篇笔记中梳理了一把 resolver 和 balancer,这里顺着前面的流程走一遍入口的 ClientConn 对象。ClientConn// ClientConn represents a virtual connection to a conceptual endpoint, to // perform RPCs. // //...

      • 我的实验是基于PSPNet模型实现二维图像的语义分割,下面的代码直接从得到的h5文件开始往下做。。。 也不知道是自己的检索能力出现了问题还是咋回事,搜遍全网都没有可以直接拿来用的语义分割代码,东拼西凑,算是搞成功了。 实验平台:Windows、VS2015、Tensorflow1.8 api、Python3.6 具体的流程为:...

      • Path Tracing 懒得翻译了,相信搞图形学的人都能看得懂,2333 Path Tracing is a rendering algorithm similar to ray tracing in which rays are cast from a virtual camera and traced through a s...

      • configure_file( [COPYONLY] [ESCAPE_QUOTES] [@ONLY][NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ]) 我遇到的是 configure_file(config/config.in ${CMAKE_SOURCE_DIR}/...

      •     直接复制以下代码创建一个名为settings.xml的文件,放到C:UsersAdministrator.m2下即可