http://www.tutorialspoint.com/css/css_layouts.htm

css样式大全  时间:2021-01-06  阅读:()
Copyrighttutorialspoint.
comCSS-LAYOUTSCSS-LAYOUTSHopeyouareverycomfortablewithHTMLtablesandyouareefficientindesigningpagelayoutsusingHTMLTables.
ButyouknowCSSalsoprovidesplentyofcontrolsforpositioningelementsinadocument.
SinceCSSisthewaveofthefuture,whynotlearnanduseCSSinsteadoftablesforpagelayoutpurposesThefollowinglistcollectsafewprosandconsofboththetechnologiesMostbrowserssupporttables,whileCSSsupportisbeingslowlyadopted.
Tablesaremoreforgivingwhenthebrowserwindowsizechanges-morphingtheircontentandwrappingtoaccommodatethechangesaccordingly.
CSSpositioningtendstobeexactandfairlyinflexible.
TablesaremucheasiertolearnandmanipulatethanCSSrules.
ButeachoftheseargumentscanbereversedCSSispivotaltothefutureofWebdocumentsandwillbesupportedbymostbrowsers.
CSSismoreexactthantables,allowingyourdocumenttobeviewedasyouintended,regardlessofthebrowserwindow.
Keepingtrackofnestedtablescanbearealpain.
CSSrulestendtobewellorganized,easilyread,andeasilychanged.
Finally,wewouldsuggestyoutousewhichevertechnologymakessensetoyouandusewhatyouknoworwhatpresentsyourdocumentsinthebestway.
CSSalsoprovidestable-layoutpropertytomakeyourtablesloadmuchfaster.
FollowingisanexampleCSStablelayoutcell1CSStablelayoutcell2CSStablelayoutcell3Youwillnoticethebenefitsmoreonlargetables.
WithtraditionalHTML,thebrowserhadtocalculateeverycellbeforefinallyrenderingthetable.
Whenyousetthetable-layoutalgorithmtofixed,however,itonlyneedstolookatthefirstrowbeforerenderingthewholetable.
Itmeansyourtablewillneedtohavefixedcolumnwidthsandrowheights.
SampleColumnLayoutHerearethestepstocreateasimpleColumnLayoutusingCSSSetthemarginandpaddingofthecompletedocumentasfollowsNow,wewilldefineacolumnwithyellowcolorandlater,wewillattachthisruletoa:Uptothispoint,wewillhaveadocumentwithyellowbody,soletusnowdefineanotherdivisioninsidelevel0Now,wewillnestonemoredivisioninsidelevel1,andwewillchangejustbackgroundcolorFinally,wewillusethesametechnique,nestalevel3divisioninsidelevel2togetthevisuallayoutfortherightcolumnCompletethesourcecodeasfollowsbody{margin:9px9px09px;padding:0;background:#FFF;}#level0{background:#FC0;}#level1{margin-left:143px;padding-left:9px;background:#FFF;}#level2{background:#FFF3AC;}#level3{margin-right:143px;padding-right:9px;background:#FFF;}#main{background:#CCC;}FinalContentgoes

spinservers($89/月),圣何塞10Gbps带宽服务器,达拉斯10Gbps服务器

spinservers是Majestic Hosting Solutions LLC旗下站点,主要提供国外服务器租用和Hybrid Dedicated等产品的商家,数据中心包括美国达拉斯和圣何塞机房,机器一般10Gbps端口带宽,高配置硬件,支持使用PayPal、信用卡、支付宝或者微信等付款方式。目前,商家针对部分服务器提供优惠码,优惠后达拉斯机房服务器最低每月89美元起,圣何塞机房服务器最低每月...

水墨云历史黑名单IDC,斟酌选购

水墨云怎么样?本站黑名单idc,有被删除账号风险,建议转出及数据备份!水墨云ink cloud Service是成立于2017年的商家,自2020起开始从事香港、日本、韩国、美国等地区CN2 GIA线路的虚拟服务器租赁,同时还有台湾、国内nat vps相关业务,也有iplc专线产品,相对来说主打的是大带宽服务器产品。注意:本站黑名单IDC,有被删除账号风险,请尽量避免,如果已经购买建议转出及数据备...

hosthatch:14个数据中心15美元/年

hosthatch在做美国独立日促销,可能你会说这操作是不是晚了一个月?对,为了准备资源等,他们拖延到现在才有空,这次是针对自己全球14个数据中心的VPS。提前示警:各个数据中心的网络没有一个是针对中国直连的,都会绕道而且ping值比较高,想买的考虑清楚再说!官方网站:https://hosthatch.com所有VPS都基于KVM虚拟,支持PayPal在内的多种付款方式!芝加哥(大硬盘)VPS5...

css样式大全为你推荐
虚拟空间虚拟内存什么意思,简单一点虚拟空间购买站长教你怎样购买虚拟主机?美国vps服务器请问国外VPS服务器去哪里买呀,急求?拜托了各位 谢谢免费云主机有永久免费的云主机吗?ip代理地址IP代理什么意思?国外网站空间怎么样把网站空间放到国外去?网站空间申请网站空间申请万网虚拟主机万网免费虚拟主机和收费虚拟主机有什么区别上海虚拟主机谁能告诉我杭州哪个公司的虚拟主机最好,机房最好是上海或浙江的.大连虚拟主机找个大连企业建站公司,大家给推荐一下吧。
什么是虚拟主机 电信服务器租赁 warez 主机评测 css样式大全 xen 云全民 免费智能解析 t云 香港新世界中心 如何注册阿里云邮箱 流媒体加速 湖南idc 秒杀品 lamp兄弟连 免费个人网页 稳定空间 广东主机托管 apnic 广东服务器托管 更多