日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > HTML >内容正文

HTML

HTMLCSS设计与构建网站 笔记HTML

發布時間:2025/3/20 HTML 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 HTMLCSS设计与构建网站 笔记HTML 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1.<p>中的特殊符號

????當瀏覽器遇到2個或更多的空格(回車)會顯示成一個空格。


&nbsp;? 空格

&amp;?? &

&lt;?????? <

&gt;????? >

&quot;?? "

&qpos;?? '

<br /> 回車

2.語義標記


<em> 重點文字

<blockquote> ?縮進,表明引用


3.<a>


target='_blank'

href='mailto:sldjfd@163.com'

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

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



4.<figure>

? <figcaption>


大家在寫xhtml、html中常常用到一種圖片列表,圖片+標題或者圖片+標題+簡單描述。以前的常規寫法:

<li>
<img src="" /><p>title</P>
</li>

而在html5中有了新標簽更能語義化的定義出這中圖片列表,那就是figure標簽。

w3c賦予的定義:figure標簽規定獨立的流內容(圖像、圖表、照片、代碼等等)。figure 元素的內容應該與主內容相關,但如果被刪除,則不應對文檔流產生影響。

實例代碼:

<figure>
<p>黃浦江上的的盧浦大橋</p>
<img src="shanghai_lupu_bridge.jpg" width="350" height="234" />
</figure>

figure用來代替原來li標簽,P標簽誰來取代呢?答案就是:figcaption


w3c賦予的定義:figcaption?標簽定義 figure 元素的標題(caption)。"figcaption" 元素應該被置于 "figure" 元素的第一個或最后一個子元素的位置。

那么上面的代碼就變成了:

<figure>
<figcaption>黃浦江上的的盧浦大橋</figcaption>
<img src="shanghai_lupu_bridge.jpg" width="350" height="234" />
</figure>



5.<label>


<form>??<label?for="male">Male</label><input?type="radio"?name="sex"?id="male"?/><br?/>??<label?for="female">Female</label><input?type="radio"?name="sex"?id="female"?/> </form>

<label> 標簽為 input 元素定義標注(標記)。

label 元素不會向用戶呈現任何特殊效果。不過,它為鼠標用戶改進了可用性。如果您在 label 元素內點擊文本,就會觸發此控件。就是說,當用戶選擇該標簽時,瀏覽器就會自動將焦點轉到和標簽相關的表單控件上。

<label> 標簽的 for 屬性應當與相關元素的 id 屬性相同。



6.SWFObject


<form>??<label?for="male">Male</label><input?type="radio"?name="sex"?id="male"?/><br?/>??<label?for="female">Female</label><input?type="radio"?name="sex"?id="female"?/> </form>

<label> 標簽為 input 元素定義標注(標記)。

label 元素不會向用戶呈現任何特殊效果。不過,它為鼠標用戶改進了可用性。如果您在 label 元素內點擊文本,就會觸發此控件。就是說,當用戶選擇該標簽時,瀏覽器就會自動將焦點轉到和標簽相關的表單控件上。

<label> 標簽的 for 屬性應當與相關元素的 id 屬性相同。




使用

?SWFObject library?

播放flash

<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Strict//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html?xmlns="http://www.w3.org/1999/xhtml"?lang="en"?xml:lang="en"><head><title>SWFObject?-?step?3</title><meta?http-equiv="Content-Type"?content="text/html;?charset=iso-8859-1"?/><script?type="text/javascript"?src="swfobject.js"></script><script?type="text/javascript">swfobject.registerObject("myId",?"9.0.115",?"expressInstall.swf");</script></head><body><div><object?id="myId"?classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"?width="780"?height="420"><param?name="movie"?value="C:\Users\Administrator\Desktop\1.swf"?/><object?type="application/x-shockwave-flash"?data="C:\Users\Administrator\Desktop\1.swf"?width="780"?height="420"><p>Alternative?content</p></object></object></div></body> </html>


  • 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)


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

  • 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".

  • 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.

  • 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?<object>?on the page (see?API documentation)


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



    使用

    ?SWFObject 自動加載

    播放flash

    <!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Strict//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html?xmlns="http://www.w3.org/1999/xhtml"?lang="en"?xml:lang="en"><head><title>SWFObject?dynamic?embed?-?step?3</title><meta?http-equiv="Content-Type"?content="text/html;?charset=iso-8859-1"?/><script?type="text/javascript"?src="swfobject.js"></script><script?type="text/javascript">swfobject.embedSWF("1.swf",?"myContent",?"300",?"120",?"9.0.0");</script></head><body><div?id="myContent"><p>Alternative?content</p></div></body> </html>


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

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

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

  • width (String, required) specifies the width of your SWF

  • height (String, required) specifies the height of your SWF

  • 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

    總結

    以上是生活随笔為你收集整理的HTMLCSS设计与构建网站 笔记HTML的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

    主站蜘蛛池模板: jizz日本女人 | 国产一精品一aⅴ一免费 | 日韩在线视频不卡 | 波多野结衣视频在线观看 | 激情五月在线观看 | 国产又粗又硬又黄的视频 | 91日批视频| 欧美精品久久久久久久免费 | 高清视频免费在线观看 | 毛片毛片毛片毛片毛片毛片毛片毛片毛片 | 亚洲国产一二三 | 黄色国产网站 | 亚洲午夜在线观看 | 成人午夜精品一区二区三区 | 日本三级生活片 | 日韩精品久久久久久久电影99爱 | 成年人在线观看视频 | 国产精品久久久一区二区 | 国产精品久久久久一区二区 | 欧洲综合视频 | 国产精品无码内射 | caoporn成人| 午夜成人亚洲理伦片在线观看 | 色偷偷噜噜噜亚洲男人的天堂 | 日本不卡高字幕在线2019 | 国模吧无码一区二区三区 | 丝袜美女av | 狠狠鲁狠狠干 | 99热国 | 中文字幕日本人妻久久久免费 | 国产页| 夏目彩春娇喘呻吟高潮迭起 | av在线天堂网 | 草莓视频在线观看18 | 伊人自拍 | 青娱乐极品视频在线 | 女女av在线| 久久精品第一页 | 一二三区免费 | 日本裸体xx少妇18在线 | 狠狠一区| 男人的天堂网在线 | 精品久久网 | 波多野结衣视频在线观看 | 中文字幕一区二区三区人妻电影 | 青草视频网 | 91成品视频 | 亚洲成人va| 69视频免费观看 | 成人h动漫精品一区二区无码 | 亚洲国产v | 亚洲福利电影 | 日日射视频 | 91视频免费观看网站 | 中文字幕永久免费 | 后进极品美女白嫩翘臀 | 日韩美女做爰高潮免费 | 久久99精品久久久久久园产越南 | 开心激情av | 色妻影院 | 亚洲爽爽爽| 成人在线观 | 精品久久久久久久久久久久久久久久 | 一区二区有码 | av中亚| 脱美女衣服亲摸揉视频 | 张柏芝54张无删码视频 | 亚洲色图制服诱惑 | av加勒比在线 | 中文字幕亚洲欧美 | 性久久久 | 日本捏奶吃奶的视频 | 澳门久久久 | 一级大片免费 | 精品三区 | 丰满雪白极品少妇流白浆 | 成人免费观看网站 | 伊人黄色 | 日韩在线免费视频 | 尤物自拍 | 成人黄色片网站 | 欧美极品喷水 | 国产吃瓜在线 | av大片在线免费观看 | 亚洲一区欧美激情 | 熟女俱乐部一区二区视频在线 | 国产一二 | 夜夜天天干 | 精品视频免费在线观看 | av一区在线观看 | 国产偷人妻精品一区二区在线 | 男女av网站 | 毛片无码一区二区三区a片视频 | 久久色在线 | 日本免费网 | 国内精品国产三级国产aⅴ久 | 香蕉婷婷 | 国产精品二区在线 | av天天堂|