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

DiyVM独立服务器:香港沙田服务器,5M带宽CN2线路,L5630*2/16G内存/120G SSD硬盘,499元/月

diyvm怎么样?diyvm商家VPS主机均2GB内存起步,三个地区机房可选,使用优惠码后每月69元起;DiyVM独立服务器开设在香港沙田电信机房,CN2线路,5M带宽,自动化开通上架,最低499元/月,配置是L5630*2/16G内存/120G SSD硬盘。DiyVM是一家成立于2009年的国人主机商,提供的产品包括VPS主机、独立服务器租用等,产品数据中心包括中国香港、日本大阪和美国洛杉矶等,...

buyvm迈阿密机房VPS国内首发测评,高性能平台:AMD Ryzen 9 3900x+DDR4+NVMe+1Gbps带宽不限流量

buyvm的第四个数据中心上线了,位于美国东南沿海的迈阿密市。迈阿密的VPS依旧和buyvm其他机房的一样,KVM虚拟,Ryzen 9 3900x、DDR4、NVMe、1Gbps带宽、不限流量。目前还没有看见buyvm上架迈阿密的block storage,估计不久也会有的。 官方网站:https://my.frantech.ca/cart.php?gid=48 加密货币、信用卡、PayPal、...

ZJI全新上架香港站群服务器,4C段238个IP月付1400元起

ZJI本月新上线了香港葵湾机房站群服务器,提供4个C段238个IPv4,支持使用8折优惠码,优惠后最低每月1400元起。ZJI是原Wordpress圈知名主机商家:维翔主机,成立于2011年,2018年9月更名为ZJI,提供中国香港、台湾、日本、美国独立服务器(自营/数据中心直营)租用及VDS、虚拟主机空间、域名注册等业务,所选数据中心均为国内普遍访问速度不错的机房。葵湾二型(4C站群)CPU:I...

css样式大全为你推荐
虚拟主机购买虚拟主机哪里购买的好?免费com域名注册有没有完全免费的域名?美国服务器托管美国服务器租用有哪些系列?海外域名外贸网站如何选择合适的海外域名?jsp虚拟空间请问如何卖掉JSP虚拟主机网站空间商哪有好一点的网站空间商?欢迎友友们给我推荐下,100m网站空间100M的最好的网站空间价格多少?深圳网站空间怎样申请免费网站空间apache虚拟主机如何用Apache配置安全虚拟主机 - PHP进阶讨论大连虚拟主机找个大连企业建站公司,大家给推荐一下吧。
国外主机空间 100m虚拟主机 vps虚拟服务器 新网域名解析 美国主机评论 rak机房 sub-process NetSpeeder 英文站群 我爱水煮鱼 帽子云 有奖调查 工作站服务器 北京双线 爱奇艺vip免费试用7天 中国电信测速网 免费申请网站 重庆双线服务器托管 个人免费主页 国内域名 更多