文档详情

htmlDIVCSSjavascript笔记HTML标签属性.doc

发布:2018-05-22约4.74万字共110页下载文档
文本预览下载声明
韩顺平ht?ml第二讲? html head title?第一个网页?/title? /head body !-1-font color?=redhello? world?/font !--使用font color?=red/font来调整字体?颜色-- /br !-2-font size=7 color?=bluehello? world?1/font !--使用font size=7/font来调整字体?大小,但是siz?e里面的取?值是1—7-- /br !-3-font style?=font-size:150px? color?=yello?whello? world?2/font !--使用CSS?中font style?=font-size:40px/font将字体调整?更大-- /br !-4-pfont color?=cyan为字体更换?颜色4/font/p b font color?=redhhhhh?/font/b !-5- /body /html 韩顺平ht?ml第三讲? Html的?超链接: 例子: html xmlns?=/1999/xhtml? head meta http-equiv?=Conte?nt-Type conte?nt=text/html; chars?et=utf-8 / title?无标题文档?/title? /head body !--*****************html超?链接案例***************-- !--*****************html超?链接默认格?式***************-- a href=超链接/a /br !--超链接基本?格式-- !--**targe?t常见的两?个属性-blank?(表示在新页?面打开文件?).-self(表示替换当?前页面)**-- a href=targe?t= -blank?在新窗口打?开/a !--超链接在新?窗口下打开?文件--/br a href=targe?t= -self在本页面打?开/a !--超链接在本?页面打开文?件--/br a href=mailt?o:yanli?45735?2797@hotma?给自己写信?/a /body /html Html图? img src =图片路径 width?=宽度 heigh?t=”高度” /img 案例:(网页上显示?图片) html xmlns?=/1999/xhtml? head title?无标题文档?/title? /head body !--*****************图片元素***************-- img src =a.jpg width?=100 !--***********插入图片************-- a href=img src =a.jpg width?=100 /a !--***********图片链接************-- img src =/photo?/OqCsS?Ur6yt?mOilp?U0_1V?aA==/40231?21842?12590?1437.jpg width?=400 img src =a.jpg width?=100 borde?r=10 /img !--*******borde?r表示为插?入的图片加?上边框********-- /body /html Table?表格: !--table? borde?r=”边框宽度 “cells?pacin?g”两个列行间?的距离大小?” cellp?addin?g”各行列间的?内容被填充? align?=表格的位置? bgcol?or=设置表格背?景颜色/table? !--**tr表示行?,td表示列?,tr align?=设置字体对?齐方式/tr***-- 案例: html xmlns?=/1999/xhtml? head title?无标题文档?/title? /head body ******************表格,为表格添加?背景****************/br !--table? borde?r=”边框宽度 ”cells?pacin?g”空隙大小” cellp?addin?g”填充大小 align?=表格的位置? bgcol?or=设置表格背?景颜色/table?-- table? borde?r=15 heigh?t=1 cellp?addin?g=20
显示全部
相似文档