[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"/id/blog/2066760608567316480":3,"/v1/social/getSocialPlatformList___id":8,"/blog/2066760608567316480___id___BLOG_POST":40,"/admin_advice/get-by-permalink___id":73,"/v1/website_terms_settings/list-all___id":84,"/author/profile___id":99,"/admin_advice/list_time___id":100},{"code":4,"message":5,"timestamp":6,"data":5,"success":7},"0",null,"2026-06-29 15:46:41",true,{"code":4,"message":5,"timestamp":6,"data":9,"success":7},[10,20,26,33],{"id":11,"name":12,"svgImage":13,"svgImageColours":14,"url":15,"isHide":16,"createBy":17,"createDate":18,"updateBy":17,"updateDate":19},2,"facebook","https://hl-file.8kds.com/admin/0911a812ca594df4abaf8e251cdbc79f.webp","https://hl-file.8kds.com/user/2063192546762428416.svg","https://www.facebook.com/people/Holinkdigitalsolusi-Holink/pfbid0uwTYocZaZT8RFPikTPyTU6wKaAa8zm9C44LqjMMpSwtEAnMk1LkkBuPyYnLgCMS3l/",0,1,1760508292449,1764150150048,{"id":21,"name":22,"svgImage":23,"svgImageColours":24,"url":25,"isHide":16,"createBy":17,"createDate":18,"updateBy":17,"updateDate":18},3,"Instagram","https://hl-file.8kds.com/admin/12fd7bcfe7cc4abb865c5076ac670041.webp","https://hl-file.8kds.com/user/2063193084358955008.svg","https://www.instagram.com/holink.id/saved/",{"id":27,"name":28,"svgImage":29,"svgImageColours":30,"url":31,"isHide":16,"createBy":17,"createDate":18,"updateBy":17,"updateDate":32},8,"TikTok","https://hl-file.8kds.com/admin/745140efbda646b392203ae099fcec2c.webp","https://hl-file.8kds.com/user/2063194267718914048.svg","https://tiktok.com",1781251475658,{"id":34,"name":35,"svgImage":36,"svgImageColours":37,"url":38,"isHide":16,"createBy":17,"createDate":18,"updateBy":17,"updateDate":39},12,"YouTuBe","https://hl-file.8kds.com/admin/bd669d52601b45029c21bc4a0fe9a373.webp","https://hl-file.8kds.com/user/2063194653750071296.svg","http://youtube.com",1766563964000,{"code":4,"message":5,"timestamp":6,"data":41,"success":7},{"id":42,"parentId":43,"parentType":44,"tdk":45,"meta":48,"social":58,"advanced":63,"schemas":65,"langPermalinks":66,"createdAt":71,"updatedAt":72},"2066760624396619776","2066760608567316480","BLOG_POST",{"isAddToMetaTitle":46,"title":47,"keywords":47,"permalink":43,"description":47},false,"",{"labels":49},[50,54],{"label":51,"type":52,"keyName":53,"metaDescription":5},"in id dolor cupidatat et","ullamco quis","盍静",{"label":55,"type":56,"keyName":57,"metaDescription":5},"deserunt culpa do veniam officia","ut","慕容一全",{"facebook":59,"twitter":61},{"title":5,"description":5,"image":60},"https://hl-file.8kds.com/admin/445307932aaf440d81c31790b95d6da4.jpeg",{"title":5,"description":5,"image":62,"useDataFromFacebook":7},"https://loremflickr.com/400/400?lock=883382057070446",{"robotsMeta":64,"canonicalUrl":47},"quis esse",[],[67,69],{"langCode":68,"permalink":43},"en",{"langCode":70,"permalink":43},"id",1781617905,1782728884,{"code":4,"message":5,"timestamp":6,"data":74,"success":7},{"id":43,"author":5,"title":75,"content":76,"classTypeId":77,"classTypeName":78,"publishStatus":17,"publishTime":72,"isHide":16,"sort":79,"coverImg":80,"createBy":81,"createDate":82,"updateBy":17,"updateDate":72,"pageTitle":5,"slug":5,"tagList":83,"authorAvatar":5,"authorBio":5},"测试关联视频","{\"time\":1782728892682,\"blocks\":[{\"id\":\"8VGqAO5Kol\",\"type\":\"video\",\"data\":{\"url\":\"https://hl-file.8kds.com/admin/3d684e7e536746a58db13d35844ff97f.mp4\",\"name\":\"testVideo.mp4\",\"coverUrl\":\"https://hl-file.8kds.com/admin/6427947afe11411d8af28982adf213eb.jpg\"},\"tunes\":{\"alignmentTune\":{\"alignment\":\"left\"}}}],\"version\":\"2.31.6\"}",16,"Tiongkok-16",9,"https://loremflickr.com/400/400?lock=4538268718232799",-1,1781589102,[],{"code":4,"message":5,"timestamp":6,"data":85,"success":7},[86,89,92,95],{"id":87,"type":17,"permalink":88},"2008091676899291136","cookie设置",{"id":90,"type":11,"permalink":91},"2008091993644773376","cn-privacy-policy",{"id":93,"type":21,"permalink":94},"2008092243876941824","terms-conditions3",{"id":96,"type":97,"permalink":98},"2026842754595823616",4,"refund-policy",{"code":4,"message":5,"timestamp":6,"data":5,"success":7},{"code":4,"message":5,"timestamp":6,"data":101,"success":7},{"records":102,"total":122,"size":21,"current":17,"orders":123,"searchCount":7,"pages":21},[103,114,121],{"id":104,"author":105,"title":106,"content":107,"classTypeId":108,"classTypeName":109,"publishTime":110,"coverImg":111,"pageTitle":5,"slug":5,"permalink":106,"authorAvatar":47,"authorBio":5,"createBy":112,"updateDate":113},"2071565580882227200","cmstest","cms测试id","{\"time\":1782742935787,\"blocks\":[{\"id\":\"b61c4052b7\",\"type\":\"html\",\"data\":{\"fallbackHtml\":\"\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eBe inspired and informed by these climate crisis documentaries, from calls to protect our dwindling seas and oceans to reasons to feel climate optimism and hope\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eYanuni\\u003c/em\\u003e\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eStunningly cinematic footage through the Amazon follows Juma Xipaia as she strives to protect her people’s land over many years, from Glasgow\\u0026#8217;s COP through to Brazilian elections and the establishment of the Ministry of Indigenous Peoples.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=PO8jgMP8gTY%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eYanuni film trailer\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThis is juxtaposed with her love story with husband Hugo Loss, who works at Brazil\\u0026#8217;s environmental protection agency IBAMA, scouting illegal mining operations throughout the Amazon from helicopter and boat, setting dredgers and planes ablaze.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eYanuni\\u003c/em\\u003e\\u0026nbsp;was shortlisted for Best Feature Documentary in the 98th Academy Awards – the Oscars in 2026 – in a fantastic recognition of this vital film.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eLucy Fulford and Jasmin Qureshi, Multimedia Leads\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eMossville: When Great Trees Fall\\u003c/em\\u003e\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWords really fall short in describing how powerful the story of\\u0026nbsp;\\u003ca href=\\\"http://www.mossvilleproject.com/\\\"\\u003e\\u003cem\\u003eMossville\\u003c/em\\u003e\\u003c/a\\u003e\\u0026nbsp;is. It\\u0026#8217;s one you have to see for yourself.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eDescribed as \\u0026#8220;the material toxicity of racism\\u0026#8221; by the\\u0026nbsp;\\u003cem\\u003eNew York Times\\u003c/em\\u003e, and with William J Barber III saying that \\u0026#8220;the story of Mossville is the story of America,\\u0026#8221; the film tells the story of Mossville, Louisiana – a once-thriving community founded by formerly enslaved and free people-of-colour, and an economically flourishing safe haven for generations of African-American families.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eToday it\\u0026#8217;s a breeding ground for petrochemical plants and their toxic black clouds.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=n4LVRdKJbIw%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe film follows one man who refuses to abandon his family\\u0026#8217;s land,\\u0026nbsp;despite prolonged exposure to contamination, pollution and destruction that forced the rest of the community out.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eYet it\\u0026#8217;s also a story that connects the struggle for environmental justice from Louisiana to South Africa and beyond, where communities time and again face the toxic fallout from the massive corporate power of polluting industries.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe UN Human Rights Office hosted a virtual screening of the film to kick off the 28th Session on Environmental Justice, the Climate Crisis, and People of African Descent.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eCheck out how you can see the film and support the project:\\u0026nbsp;\\u003ca href=\\\"http://www.mossvilleproject.com/\\\"\\u003emossvilleproject.com\\u003c/a\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eJulieta Biegner, US Communications and Campaigns Officer\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003eSign up for email updates\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eStay up to date with Global Witness investigations and campaignsEmail\\u003c/p\\u003e\\n\\n\\n\\n\\u003cfigure class=\\\"wp-block-embed\\\"\\u003e\\u003cdiv class=\\\"wp-block-embed__wrapper\\\"\\u003e\\nhttps://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/b/turnstile/f/ov2/av0/rch/xsdg5/0x4AAAAAAAjsgg8P8WYjmiDn/auto/fbE/new/normal?lang=auto\\n\\u003c/div\\u003e\\u003c/figure\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eBy subscribing you consent to receiving email updates about campaigns and other ways to support Global Witness. For more information about how Global Witness processes your personal data, see our\\u0026nbsp;\\u003ca href=\\\"https://globalwitness.org/en/privacy-policy/\\\"\\u003eprivacy policy\\u003c/a\\u003e.\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eSeaspiracy\\u003c/em\\u003e\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWith its courageous investigative journalism, coupled with clear and captivating storytelling, it’s easy to see why Netflix\\u0026#8217;s\\u0026nbsp;\\u003ca href=\\\"https://www.netflix.com/gb/title/81014008\\\"\\u003e\\u003cem\\u003eSeaspiracy\\u003c/em\\u003e\\u003c/a\\u003e\\u0026nbsp;has proven so popular.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eFilmmakers Ali and Lucy Tabrizi aim to shock audiences into caring – and ultimately doing something\\u0026nbsp; – about an issue they view as the most critical to the sustainability of our planet, namely what is happening in our oceans.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=1Q5CXN7soQg%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe story begins with a focus on plastic in the ocean but very quickly expands out to hone in on global fishing practices, carried out by Big Business. It’s a regular theme throughout the film of challenging conventional and mainstream understanding of the problems in our seas.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThis is particularly welcome and resonates with Global Witness’ own campaigning efforts, to move away from the idea that individual acts of consumers are most responsible for environmental destruction, when in truth it is huge multinationals disproportionately to blame.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOne of the many striking facts – this is a film that uses facts extremely effectively – reveals that almost half of all plastics in the Great Pacific Garbage Patch are discarded fishing nets, rather than straws and cotton buds.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOne particular scene that illuminates this point shows a small group of fishermen from a Liberian coastal community risking their lives in a makeshift boat to ask bigger ships to\\u0026nbsp;throw down food.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eTabrizi then explains that overfishing in Liberian waters, by Big Business, has depleted an important food source for the local community. It is the “industrialisation” of fishing that is highlighted as the problem.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWhile the land impact is well noted here, there are moments where other environmental damages are downplayed. At times the film tries to counterpose the global focus on deforestation and fossil fuels against the lack of attention on the oceans.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOf course, this is more a tactic to win attention, rather than dismiss the work organisations like Global Witness do, but the film could have given more care to this argument.\\u0026nbsp;\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThere does also seem to be some disconnect between the final conclusion and the great work done earlier in the film to position the problem away from individual acts. “Don’t eat seafood” is the top message, as a consumer choice, as opposed to empowering viewers to campaign in more active ways.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThat being said there is no doubt this is a high-impact, well-made, campaigning film that should be both applauded and learned from.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eAs a featured voice throughout, George Monbiot and others are in fine form, amidst a narrative that brings a much needed focus and emotion to what is happening in the world’s oceans.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eDominic Kavakeb, Senior Communications Adviser\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eI Am Greta\\u003c/em\\u003e\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eGreta Thunberg is arguably one of the most influential climate crisis activists of our time – helping to inspire the global Fridays for Future movement and hundreds of thousands of young people in at least 60 countries to take action for the climate.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=i74n4BUYgHI%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThis documentary offers an insight into Greta’s life and charts her journey from a lone figure and outsider at school, standing outside the Swedish Parliament on her first school strike, to speaking at international conferences such as COP.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWe see her heart-warming relationship with her father (who accompanies her everywhere, even on a challenging journey at sea), we see her giggling at right-wing politicians and press who mock her, we witness her laser-like focus on climate science, and watch her craft speeches on her laptop before high-level meetings, obsessing over how to get leaders to listen.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eGreta is clearly an intelligent and influential activist, who is determined for the world to avoid a climate disaster. Yet, what makes for uncomfortable viewing is how politicians and experts patronise her and treat her like a schoolchild.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eAdults ask her for selfies, but barely listen to her. The French Emmanuel President Macron appears to smirk at her as he says, \\u0026#8220;So you take the train everywhere?\\u0026#8221; British politician Jeremy Bercow simply says to her, \\u0026#8220;Just do what you believe is right,\\u0026#8221; without sharing what the British government could do.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eGreta herself becomes increasingly aware that she is being used at public events as a token gesture to the climate movement.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u0026#8220;Did you hear what I just said? Is my English OK? Is the microphone on? Because I’m beginning to wonder,\\u0026#8221; she says in a speech at the UK’s Houses of Parliament. The ministers laugh – but she means business, she wants to be heard, she wants youth voices to be heard.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eJasmin Qureshi, Multimedia Manager\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch3 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eThis Changes Everything\\u003c/em\\u003e\\u003c/h3\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eThis Changes Everything,\\u003c/em\\u003e\\u0026nbsp;the feature documentary of Naomi Klein’s critically acclaimed book of the same name, turns the way we think about climate change on its head.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWhat if climate change isn’t just the story of doom, despair and destruction? What if it’s the best reason the world has ever had to build a better world – to change everything?\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eIn the face of the climate crisis, there can be no status quo. The world as we know it is being transformed by the changing climate – but instead of facing down an ever more hostile environment, people around the world are instead creating a more just, healthier, cleaner, fairer world.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=YQhflH4alO0%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe film takes a tour through the frontlines of the fight against climate change, and against the pursuit for economic growth at all costs that is driving the crisis.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eFrom the tribes fighting tar sands extraction in Canada, through opposition to mining companies in Greece and to power companies in India – this presents the huge, varied and interconnected movement pushing back against the climate crisis and for a better world.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eMurray Worthy, Campaign Leader,\\u0026nbsp;Gas Team\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch3 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eVirunga\\u003c/em\\u003e\\u003c/h3\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003ca href=\\\"https://globalwitness.org/en/campaigns/forests/virunga/\\\"\\u003eVirunga\\u003c/a\\u003e\\u0026nbsp;is a beautiful and powerful documentary which brings together several compelling narratives: the\\u0026nbsp;\\u003ca href=\\\"https://globalwitness.org/en/campaigns/forests/virunga-uk-company-bankrolled-soldiers-accused-of-bribery-and-violence-in-quest-for-oil-in-africas-oldest-national-park/\\\"\\u003eterrible violence\\u003c/a\\u003e\\u0026nbsp;that has ravaged eastern Democratic Republic of ­­Congo (DRC); the British oil company seeking to drill in the midst of the beauty of Africa’s oldest national park; the incredible young journalist on the case; and the tear-jerking relationship between a handler and his gorilla \\u0026#8220;family\\u0026#8221;.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=iyBb6pdnJfI%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eAfter the documentary was shot, non-governmental organisations, including Global Witness, which had been following the case previously, were able to\\u0026nbsp;\\u003ca href=\\\"https://globalwitness.org/en/campaigns/oil-gas-and-mining/10-questions-uk-oil-company-soco-international-must-answer-virunga-documentary-nominated-oscar/\\\"\\u003eput intense pressure on the oil company\\u003c/a\\u003e, Soco International, to stop its activities inside the park.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOur investigators uncovered further signs of corruption and human rights abuses and eventually the company left the DRC, leaving the park in peace.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eShortly after we discovered that the Ugandan government was about to issue an oil licence in the same area, putting the park at risk once again. We rallied our allies and fought a successful public campaign to stop oil companies bidding for the block. This wouldn\\u0026#8217;t have been possible without the publicity the film achieved.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe park is safe for now but oil companies are still opening up new oil reserves all along the Uganda/DRC border, putting many protected areas at risk.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eGeorge Boden, former Campaign Leader, Industries Team, Land and Environmental Defenders\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch3 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eGiant\\u003c/em\\u003e\\u003c/h3\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eCome for the bevy of cinema legends (Dean, Hudson, Taylor, Hopper), stay for the fact it’s James Dean’s last big screen appearance, leave with the clear message that all the oil in the word will not bring you happiness.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eI could have taken\\u0026nbsp;\\u003ca href=\\\"https://www.imdb.com/title/tt0049261/?ref_=nv_sr_srsg_0\\\"\\u003ethis epic tale\\u003c/a\\u003e\\u0026nbsp;of a simple farm hand striking black gold at face value but instead I feel we must marry the current climate crisis with the possible subliminal messaging throughout the film on the dangers of America’s reliance on oil.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cstrong\\u003eBick Benedict:\\u003c/strong\\u003e\\u0026nbsp;Just remember, one of these days, that bourbon\\u0026#8217;s [oil’s] gonna kill you.\\u003cbr\\u003e\\u003cstrong\\u003eUncle Bawley:\\u003c/strong\\u003e\\u0026nbsp;Okay, it\\u0026#8217;ll be me or it. One of us has gotta go.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eSo who’ll be the first to go – us or oil?\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eRichard Gardiner, Senior Campaigner, Corporate Accountability\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch3 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eThe New Corporation\\u003c/em\\u003e\\u003c/h3\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003ca href=\\\"https://thenewcorporation.movie/\\\"\\u003e\\u003cem\\u003eThe New Corporation\\u003c/em\\u003e\\u003c/a\\u003e\\u0026nbsp;sounds the alarm about the role of Big Business in the biggest challenges we are currently facing – the climate crisis and related human rights abuses.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThis film is a grand and devastating overview of everything wrong with today’s world: forest destruction, ruthless extraction of fossil fuels, erosion of democracy and murders of land and environmental activists – all linked back to the enormous power and influence of corporations who value profit above people.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOne of the most striking sequences pits the devastation caused by energy companies against their greenwashing activities and corporate social responsibility PR campaigns.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eThe New Corporation\\u003c/em\\u003e\\u0026nbsp;also shows us a glimpse of a better future – and outlines the changes that are already happening.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe film shows us politicians who do represent people, rather than business, who have come to power through grassroots movements. It gives a platform to\\u0026nbsp;\\u003ca href=\\\"https://globalwitness.org/en/campaigns/land-and-environmental-defenders/\\\"\\u003eland and environmental defenders\\u003c/a\\u003e\\u0026nbsp;who have managed to stop destructive companies. It points to the racial justice movements as reasons to look forward to positive change.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eDespite the apocalyptic nature of the film, I left it with a feeling of hope.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eJasmin Qureshi, Multimedia Manager\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003eAuthors\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cul class=\\\"wp-block-list\\\"\\u003e\\n\\u003cli\\u003e\\u003ca href=\\\"https://globalwitness.org/en/about-us/our-people/jasmin-qureshi/\\\"\\u003eJasmin QureshiMulti-Media Editor\\u003c/a\\u003e\\u003c/li\\u003e\\n\\u003c/ul\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003c/p\\u003e\",\"fallbackText\":\"Be inspired and informed by these climate crisis documentaries, from calls to protect our dwindling seas and oceans to reasons to feel climate optimism and hope\\nYanuni\\nStunningly cinematic footage through the Amazon follows Juma Xipaia as she strives to protect her people’s land over many years, from Glasgow’s COP through to Brazilian elections and the establishment of the Ministry of Indigenous Peoples.\\nhttps://youtube.com/watch?v=PO8jgMP8gTY%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\nYanuni film trailer\\nThis is juxtaposed with her love story with husband Hugo Loss, who works at Brazil’s environmental protection agency IBAMA, scouting illegal mining operations throughout the Amazon from helicopter and boat, setting dredgers and planes ablaze.\\nYanuni was shortlisted for Best Feature Documentary in the 98th Academy Awards – the Oscars in 2026 – in a fantastic recognition of this vital film.\\nLucy Fulford and Jasmin Qureshi, Multimedia Leads\\nMossville: When Great Trees Fall\\nWords really fall short in describing how powerful the story of Mossville is. It’s one you have to see for yourself.\\nDescribed as “the material toxicity of racism” by the New York Times, and with William J Barber III saying that “the story of Mossville is the story of America,” the film tells the story of Mossville, Louisiana – a once-thriving community founded by formerly enslaved and free people-of-colour, and an economically flourishing safe haven for generations of African-American families.\\nToday it’s a breeding ground for petrochemical plants and their toxic black clouds.\\nhttps://youtube.com/watch?v=n4LVRdKJbIw%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\nThe film follows one man who refuses to abandon his family’s land, despite prolonged exposure to contamination, pollution and destruction that forced the rest of the community out.\\nYet it’s also a story that connects the struggle for environmental justice from Louisiana to South Africa and beyond, where communities time and again face the toxic fallout from the massive corporate power of polluting industries.\\nThe UN Human Rights Office hosted a virtual screening of the film to kick off the 28th Session on Environmental Justice, the Climate Crisis, and People of African Descent.\\nCheck out how you can see the film and support the project: mossvilleproject.com\\nJulieta Biegner, US Communications and Campaigns Officer\\nSign up for email updates\\nStay up to date with Global Witness investigations and campaignsEmail\\nhttps://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/b/turnstile/f/ov2/av0/rch/xsdg5/0x4AAAAAAAjsgg8P8WYjmiDn/auto/fbE/new/normal?lang=auto\\nBy subscribing you consent to receiving email updates about campaigns and other ways to support Global Witness. For more information about how Global Witness processes your personal data, see our privacy policy.\\nSeaspiracy\\nWith its courageous investigative journalism, coupled with clear and captivating storytelling, it’s easy to see why Netflix’s Seaspiracy has proven so popular.\\nFilmmakers Ali and Lucy Tabrizi aim to shock audiences into caring – and ultimately doing something  – about an issue they view as the most critical to the sustainability of our planet, namely what is happening in our oceans.\\nhttps://youtube.com/watch?v=1Q5CXN7soQg%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\nThe story begins with a focus on plastic in the ocean but very quickly expands out to hone in on global fishing practices, carried out by Big Business. It’s a regular theme throughout the film of challenging conventional and mainstream understanding of the problems in our seas.\\nThis is particularly welcome and resonates with Global Witness’ own campaigning efforts, to move away from the idea that individual acts of consumers are most responsible for environmental destruction, when in truth it is huge multinationals disproportionately to blame.\\nOne of the many striking facts – this is a film that uses facts extremely effectively – reveals that almost half of all plastics in the Great Pacific Garbage Patch are discarded fishing nets, rather than straws and cotton buds. \\nOne particular scene that illuminates this point shows a small group of fishermen from a Liberian coastal community risking their lives in a makeshift boat to ask bigger ships to throw down food.\\nTabrizi then explains that overfishing in Liberian waters, by Big Business, has depleted an important food source for the local community. It is the “industrialisation” of fishing that is highlighted as the problem.\\nWhile the land impact is well noted here, there are moments where other environmental damages are downplayed. At times the film tries to counterpose the global focus on deforestation and fossil fuels against the lack of attention on the oceans.\\nOf course, this is more a tactic to win attention, rather than dismiss the work organisations like Global Witness do, but the film could have given more care to this argument.  \\nThere does also seem to be some disconnect between the final conclusion and the great work done earlier in the film to position the problem away from individual acts. “Don’t eat seafood” is the top message, as a consumer choice, as opposed to empowering viewers to campaign in more active ways.\\nThat being said there is no doubt this is a high-impact, well-made, campaigning film that should be both applauded and learned from.\\nAs a featured voice throughout, George Monbiot and others are in fine form, amidst a narrative that brings a much needed focus and emotion to what is happening in the world’s oceans.\\nDominic Kavakeb, Senior Communications Adviser\\nI Am Greta\\nGreta Thunberg is arguably one of the most influential climate crisis activists of our time – helping to inspire the global Fridays for Future movement and hundreds of thousands of young people in at least 60 countries to take action for the climate. \\nhttps://youtube.com/watch?v=i74n4BUYgHI%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\nThis documentary offers an insight into Greta’s life and charts her journey from a lone figure and outsider at school, standing outside the Swedish Parliament on her first school strike, to speaking at international conferences such as COP.\\nWe see her heart-warming relationship with her father (who accompanies her everywhere, even on a challenging journey at sea), we see her giggling at right-wing politicians and press who mock her, we witness her laser-like focus on climate science, and watch her craft speeches on her laptop before high-level meetings, obsessing over how to get leaders to listen.\\nGreta is clearly an intelligent and influential activist, who is determined for the world to avoid a climate disaster. Yet, what makes for uncomfortable viewing is how politicians and experts patronise her and treat her like a schoolchild.\\nAdults ask her for selfies, but barely listen to her. The French Emmanuel President Macron appears to smirk at her as he says, “So you take the train everywhere?” British politician Jeremy Bercow simply says to her, “Just do what you believe is right,” without sharing what the British government could do.\\nGreta herself becomes increasingly aware that she is being used at public events as a token gesture to the climate movement. \\n“Did you hear what I just said? Is my English OK? Is the microphone on? Because I’m beginning to wonder,” she says in a speech at the UK’s Houses of Parliament. The ministers laugh – but she means business, she wants to be heard, she wants youth voices to be heard. \\nJasmin Qureshi, Multimedia Manager\\nThis Changes Everything\\nThis Changes Everything, the feature documentary of Naomi Klein’s critically acclaimed book of the same name, turns the way we think about climate change on its head.\\nWhat if climate change isn’t just the story of doom, despair and destruction? What if it’s the best reason the world has ever had to build a better world – to change everything?\\nIn the face of the climate crisis, there can be no status quo. The world as we know it is being transformed by the changing climate – but instead of facing down an ever more hostile environment, people around the world are instead creating a more just, healthier, cleaner, fairer world.\\nhttps://youtube.com/watch?v=YQhflH4alO0%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\nThe film takes a tour through the frontlines of the fight against climate change, and against the pursuit for economic growth at all costs that is driving the crisis.\\nFrom the tribes fighting tar sands extraction in Canada, through opposition to mining companies in Greece and to power companies in India – this presents the huge, varied and interconnected movement pushing back against the climate crisis and for a better world.\\nMurray Worthy, Campaign Leader, Gas Team\\nVirunga\\nVirunga is a beautiful and powerful documentary which brings together several compelling narratives: the terrible violence that has ravaged eastern Democratic Republic of ­­Congo (DRC); the British oil company seeking to drill in the midst of the beauty of Africa’s oldest national park; the incredible young journalist on the case; and the tear-jerking relationship between a handler and his gorilla “family”. \\nhttps://youtube.com/watch?v=iyBb6pdnJfI%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\nAfter the documentary was shot, non-governmental organisations, including Global Witness, which had been following the case previously, were able to put intense pressure on the oil company, Soco International, to stop its activities inside the park.\\nOur investigators uncovered further signs of corruption and human rights abuses and eventually the company left the DRC, leaving the park in peace. \\nShortly after we discovered that the Ugandan government was about to issue an oil licence in the same area, putting the park at risk once again. We rallied our allies and fought a successful public campaign to stop oil companies bidding for the block. This wouldn’t have been possible without the publicity the film achieved.\\nThe park is safe for now but oil companies are still opening up new oil reserves all along the Uganda/DRC border, putting many protected areas at risk. \\nGeorge Boden, former Campaign Leader, Industries Team, Land and Environmental Defenders\\nGiant\\nCome for the bevy of cinema legends (Dean, Hudson, Taylor, Hopper), stay for the fact it’s James Dean’s last big screen appearance, leave with the clear message that all the oil in the word will not bring you happiness.\\nI could have taken this epic tale of a simple farm hand striking black gold at face value but instead I feel we must marry the current climate crisis with the possible subliminal messaging throughout the film on the dangers of America’s reliance on oil.\\nBick Benedict: Just remember, one of these days, that bourbon’s [oil’s] gonna kill you.\\nUncle Bawley: Okay, it’ll be me or it. One of us has gotta go.\\nSo who’ll be the first to go – us or oil?\\nRichard Gardiner, Senior Campaigner, Corporate Accountability\\nThe New Corporation\\nThe New Corporation sounds the alarm about the role of Big Business in the biggest challenges we are currently facing – the climate crisis and related human rights abuses.\\nThis film is a grand and devastating overview of everything wrong with today’s world: forest destruction, ruthless extraction of fossil fuels, erosion of democracy and murders of land and environmental activists – all linked back to the enormous power and influence of corporations who value profit above people.\\nOne of the most striking sequences pits the devastation caused by energy companies against their greenwashing activities and corporate social responsibility PR campaigns.\\nThe New Corporation also shows us a glimpse of a better future – and outlines the changes that are already happening.\\nThe film shows us politicians who do represent people, rather than business, who have come to power through grassroots movements. It gives a platform to land and environmental defenders who have managed to stop destructive companies. It points to the racial justice movements as reasons to look forward to positive change.\\nDespite the apocalyptic nature of the film, I left it with a feeling of hope.\\nJasmin Qureshi, Multimedia Manager\\nAuthors\\nJasmin QureshiMulti-Media Editor\",\"html\":\"\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eBe inspired and informed by these climate crisis documentaries, from calls to protect our dwindling seas and oceans to reasons to feel climate optimism and hope\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eYanuni\\u003c/em\\u003e\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eStunningly cinematic footage through the Amazon follows Juma Xipaia as she strives to protect her people’s land over many years, from Glasgow\\u0026#8217;s COP through to Brazilian elections and the establishment of the Ministry of Indigenous Peoples.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=PO8jgMP8gTY%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eYanuni film trailer\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThis is juxtaposed with her love story with husband Hugo Loss, who works at Brazil\\u0026#8217;s environmental protection agency IBAMA, scouting illegal mining operations throughout the Amazon from helicopter and boat, setting dredgers and planes ablaze.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eYanuni\\u003c/em\\u003e\\u0026nbsp;was shortlisted for Best Feature Documentary in the 98th Academy Awards – the Oscars in 2026 – in a fantastic recognition of this vital film.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eLucy Fulford and Jasmin Qureshi, Multimedia Leads\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eMossville: When Great Trees Fall\\u003c/em\\u003e\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWords really fall short in describing how powerful the story of\\u0026nbsp;\\u003ca href=\\\"http://www.mossvilleproject.com/\\\"\\u003e\\u003cem\\u003eMossville\\u003c/em\\u003e\\u003c/a\\u003e\\u0026nbsp;is. It\\u0026#8217;s one you have to see for yourself.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eDescribed as \\u0026#8220;the material toxicity of racism\\u0026#8221; by the\\u0026nbsp;\\u003cem\\u003eNew York Times\\u003c/em\\u003e, and with William J Barber III saying that \\u0026#8220;the story of Mossville is the story of America,\\u0026#8221; the film tells the story of Mossville, Louisiana – a once-thriving community founded by formerly enslaved and free people-of-colour, and an economically flourishing safe haven for generations of African-American families.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eToday it\\u0026#8217;s a breeding ground for petrochemical plants and their toxic black clouds.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=n4LVRdKJbIw%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe film follows one man who refuses to abandon his family\\u0026#8217;s land,\\u0026nbsp;despite prolonged exposure to contamination, pollution and destruction that forced the rest of the community out.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eYet it\\u0026#8217;s also a story that connects the struggle for environmental justice from Louisiana to South Africa and beyond, where communities time and again face the toxic fallout from the massive corporate power of polluting industries.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe UN Human Rights Office hosted a virtual screening of the film to kick off the 28th Session on Environmental Justice, the Climate Crisis, and People of African Descent.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eCheck out how you can see the film and support the project:\\u0026nbsp;\\u003ca href=\\\"http://www.mossvilleproject.com/\\\"\\u003emossvilleproject.com\\u003c/a\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eJulieta Biegner, US Communications and Campaigns Officer\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003eSign up for email updates\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eStay up to date with Global Witness investigations and campaignsEmail\\u003c/p\\u003e\\n\\n\\n\\n\\u003cfigure class=\\\"wp-block-embed\\\"\\u003e\\u003cdiv class=\\\"wp-block-embed__wrapper\\\"\\u003e\\nhttps://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/b/turnstile/f/ov2/av0/rch/xsdg5/0x4AAAAAAAjsgg8P8WYjmiDn/auto/fbE/new/normal?lang=auto\\n\\u003c/div\\u003e\\u003c/figure\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eBy subscribing you consent to receiving email updates about campaigns and other ways to support Global Witness. For more information about how Global Witness processes your personal data, see our\\u0026nbsp;\\u003ca href=\\\"https://globalwitness.org/en/privacy-policy/\\\"\\u003eprivacy policy\\u003c/a\\u003e.\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eSeaspiracy\\u003c/em\\u003e\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWith its courageous investigative journalism, coupled with clear and captivating storytelling, it’s easy to see why Netflix\\u0026#8217;s\\u0026nbsp;\\u003ca href=\\\"https://www.netflix.com/gb/title/81014008\\\"\\u003e\\u003cem\\u003eSeaspiracy\\u003c/em\\u003e\\u003c/a\\u003e\\u0026nbsp;has proven so popular.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eFilmmakers Ali and Lucy Tabrizi aim to shock audiences into caring – and ultimately doing something\\u0026nbsp; – about an issue they view as the most critical to the sustainability of our planet, namely what is happening in our oceans.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=1Q5CXN7soQg%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe story begins with a focus on plastic in the ocean but very quickly expands out to hone in on global fishing practices, carried out by Big Business. It’s a regular theme throughout the film of challenging conventional and mainstream understanding of the problems in our seas.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThis is particularly welcome and resonates with Global Witness’ own campaigning efforts, to move away from the idea that individual acts of consumers are most responsible for environmental destruction, when in truth it is huge multinationals disproportionately to blame.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOne of the many striking facts – this is a film that uses facts extremely effectively – reveals that almost half of all plastics in the Great Pacific Garbage Patch are discarded fishing nets, rather than straws and cotton buds.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOne particular scene that illuminates this point shows a small group of fishermen from a Liberian coastal community risking their lives in a makeshift boat to ask bigger ships to\\u0026nbsp;throw down food.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eTabrizi then explains that overfishing in Liberian waters, by Big Business, has depleted an important food source for the local community. It is the “industrialisation” of fishing that is highlighted as the problem.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWhile the land impact is well noted here, there are moments where other environmental damages are downplayed. At times the film tries to counterpose the global focus on deforestation and fossil fuels against the lack of attention on the oceans.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOf course, this is more a tactic to win attention, rather than dismiss the work organisations like Global Witness do, but the film could have given more care to this argument.\\u0026nbsp;\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThere does also seem to be some disconnect between the final conclusion and the great work done earlier in the film to position the problem away from individual acts. “Don’t eat seafood” is the top message, as a consumer choice, as opposed to empowering viewers to campaign in more active ways.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThat being said there is no doubt this is a high-impact, well-made, campaigning film that should be both applauded and learned from.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eAs a featured voice throughout, George Monbiot and others are in fine form, amidst a narrative that brings a much needed focus and emotion to what is happening in the world’s oceans.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eDominic Kavakeb, Senior Communications Adviser\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eI Am Greta\\u003c/em\\u003e\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eGreta Thunberg is arguably one of the most influential climate crisis activists of our time – helping to inspire the global Fridays for Future movement and hundreds of thousands of young people in at least 60 countries to take action for the climate.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=i74n4BUYgHI%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThis documentary offers an insight into Greta’s life and charts her journey from a lone figure and outsider at school, standing outside the Swedish Parliament on her first school strike, to speaking at international conferences such as COP.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWe see her heart-warming relationship with her father (who accompanies her everywhere, even on a challenging journey at sea), we see her giggling at right-wing politicians and press who mock her, we witness her laser-like focus on climate science, and watch her craft speeches on her laptop before high-level meetings, obsessing over how to get leaders to listen.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eGreta is clearly an intelligent and influential activist, who is determined for the world to avoid a climate disaster. Yet, what makes for uncomfortable viewing is how politicians and experts patronise her and treat her like a schoolchild.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eAdults ask her for selfies, but barely listen to her. The French Emmanuel President Macron appears to smirk at her as he says, \\u0026#8220;So you take the train everywhere?\\u0026#8221; British politician Jeremy Bercow simply says to her, \\u0026#8220;Just do what you believe is right,\\u0026#8221; without sharing what the British government could do.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eGreta herself becomes increasingly aware that she is being used at public events as a token gesture to the climate movement.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u0026#8220;Did you hear what I just said? Is my English OK? Is the microphone on? Because I’m beginning to wonder,\\u0026#8221; she says in a speech at the UK’s Houses of Parliament. The ministers laugh – but she means business, she wants to be heard, she wants youth voices to be heard.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eJasmin Qureshi, Multimedia Manager\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch3 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eThis Changes Everything\\u003c/em\\u003e\\u003c/h3\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eThis Changes Everything,\\u003c/em\\u003e\\u0026nbsp;the feature documentary of Naomi Klein’s critically acclaimed book of the same name, turns the way we think about climate change on its head.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWhat if climate change isn’t just the story of doom, despair and destruction? What if it’s the best reason the world has ever had to build a better world – to change everything?\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eIn the face of the climate crisis, there can be no status quo. The world as we know it is being transformed by the changing climate – but instead of facing down an ever more hostile environment, people around the world are instead creating a more just, healthier, cleaner, fairer world.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=YQhflH4alO0%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe film takes a tour through the frontlines of the fight against climate change, and against the pursuit for economic growth at all costs that is driving the crisis.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eFrom the tribes fighting tar sands extraction in Canada, through opposition to mining companies in Greece and to power companies in India – this presents the huge, varied and interconnected movement pushing back against the climate crisis and for a better world.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eMurray Worthy, Campaign Leader,\\u0026nbsp;Gas Team\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch3 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eVirunga\\u003c/em\\u003e\\u003c/h3\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003ca href=\\\"https://globalwitness.org/en/campaigns/forests/virunga/\\\"\\u003eVirunga\\u003c/a\\u003e\\u0026nbsp;is a beautiful and powerful documentary which brings together several compelling narratives: the\\u0026nbsp;\\u003ca href=\\\"https://globalwitness.org/en/campaigns/forests/virunga-uk-company-bankrolled-soldiers-accused-of-bribery-and-violence-in-quest-for-oil-in-africas-oldest-national-park/\\\"\\u003eterrible violence\\u003c/a\\u003e\\u0026nbsp;that has ravaged eastern Democratic Republic of ­­Congo (DRC); the British oil company seeking to drill in the midst of the beauty of Africa’s oldest national park; the incredible young journalist on the case; and the tear-jerking relationship between a handler and his gorilla \\u0026#8220;family\\u0026#8221;.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=iyBb6pdnJfI%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eAfter the documentary was shot, non-governmental organisations, including Global Witness, which had been following the case previously, were able to\\u0026nbsp;\\u003ca href=\\\"https://globalwitness.org/en/campaigns/oil-gas-and-mining/10-questions-uk-oil-company-soco-international-must-answer-virunga-documentary-nominated-oscar/\\\"\\u003eput intense pressure on the oil company\\u003c/a\\u003e, Soco International, to stop its activities inside the park.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOur investigators uncovered further signs of corruption and human rights abuses and eventually the company left the DRC, leaving the park in peace.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eShortly after we discovered that the Ugandan government was about to issue an oil licence in the same area, putting the park at risk once again. We rallied our allies and fought a successful public campaign to stop oil companies bidding for the block. This wouldn\\u0026#8217;t have been possible without the publicity the film achieved.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe park is safe for now but oil companies are still opening up new oil reserves all along the Uganda/DRC border, putting many protected areas at risk.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eGeorge Boden, former Campaign Leader, Industries Team, Land and Environmental Defenders\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch3 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eGiant\\u003c/em\\u003e\\u003c/h3\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eCome for the bevy of cinema legends (Dean, Hudson, Taylor, Hopper), stay for the fact it’s James Dean’s last big screen appearance, leave with the clear message that all the oil in the word will not bring you happiness.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eI could have taken\\u0026nbsp;\\u003ca href=\\\"https://www.imdb.com/title/tt0049261/?ref_=nv_sr_srsg_0\\\"\\u003ethis epic tale\\u003c/a\\u003e\\u0026nbsp;of a simple farm hand striking black gold at face value but instead I feel we must marry the current climate crisis with the possible subliminal messaging throughout the film on the dangers of America’s reliance on oil.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cstrong\\u003eBick Benedict:\\u003c/strong\\u003e\\u0026nbsp;Just remember, one of these days, that bourbon\\u0026#8217;s [oil’s] gonna kill you.\\u003cbr\\u003e\\u003cstrong\\u003eUncle Bawley:\\u003c/strong\\u003e\\u0026nbsp;Okay, it\\u0026#8217;ll be me or it. One of us has gotta go.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eSo who’ll be the first to go – us or oil?\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eRichard Gardiner, Senior Campaigner, Corporate Accountability\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch3 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eThe New Corporation\\u003c/em\\u003e\\u003c/h3\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003ca href=\\\"https://thenewcorporation.movie/\\\"\\u003e\\u003cem\\u003eThe New Corporation\\u003c/em\\u003e\\u003c/a\\u003e\\u0026nbsp;sounds the alarm about the role of Big Business in the biggest challenges we are currently facing – the climate crisis and related human rights abuses.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThis film is a grand and devastating overview of everything wrong with today’s world: forest destruction, ruthless extraction of fossil fuels, erosion of democracy and murders of land and environmental activists – all linked back to the enormous power and influence of corporations who value profit above people.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOne of the most striking sequences pits the devastation caused by energy companies against their greenwashing activities and corporate social responsibility PR campaigns.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eThe New Corporation\\u003c/em\\u003e\\u0026nbsp;also shows us a glimpse of a better future – and outlines the changes that are already happening.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe film shows us politicians who do represent people, rather than business, who have come to power through grassroots movements. It gives a platform to\\u0026nbsp;\\u003ca href=\\\"https://globalwitness.org/en/campaigns/land-and-environmental-defenders/\\\"\\u003eland and environmental defenders\\u003c/a\\u003e\\u0026nbsp;who have managed to stop destructive companies. It points to the racial justice movements as reasons to look forward to positive change.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eDespite the apocalyptic nature of the film, I left it with a feeling of hope.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eJasmin Qureshi, Multimedia Manager\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003eAuthors\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cul class=\\\"wp-block-list\\\"\\u003e\\n\\u003cli\\u003e\\u003ca href=\\\"https://globalwitness.org/en/about-us/our-people/jasmin-qureshi/\\\"\\u003eJasmin QureshiMulti-Media Editor\\u003c/a\\u003e\\u003c/li\\u003e\\n\\u003c/ul\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003c/p\\u003e\",\"text\":\"\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eBe inspired and informed by these climate crisis documentaries, from calls to protect our dwindling seas and oceans to reasons to feel climate optimism and hope\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eYanuni\\u003c/em\\u003e\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eStunningly cinematic footage through the Amazon follows Juma Xipaia as she strives to protect her people’s land over many years, from Glasgow\\u0026#8217;s COP through to Brazilian elections and the establishment of the Ministry of Indigenous Peoples.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=PO8jgMP8gTY%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eYanuni film trailer\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThis is juxtaposed with her love story with husband Hugo Loss, who works at Brazil\\u0026#8217;s environmental protection agency IBAMA, scouting illegal mining operations throughout the Amazon from helicopter and boat, setting dredgers and planes ablaze.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eYanuni\\u003c/em\\u003e\\u0026nbsp;was shortlisted for Best Feature Documentary in the 98th Academy Awards – the Oscars in 2026 – in a fantastic recognition of this vital film.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eLucy Fulford and Jasmin Qureshi, Multimedia Leads\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eMossville: When Great Trees Fall\\u003c/em\\u003e\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWords really fall short in describing how powerful the story of\\u0026nbsp;\\u003ca href=\\\"http://www.mossvilleproject.com/\\\"\\u003e\\u003cem\\u003eMossville\\u003c/em\\u003e\\u003c/a\\u003e\\u0026nbsp;is. It\\u0026#8217;s one you have to see for yourself.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eDescribed as \\u0026#8220;the material toxicity of racism\\u0026#8221; by the\\u0026nbsp;\\u003cem\\u003eNew York Times\\u003c/em\\u003e, and with William J Barber III saying that \\u0026#8220;the story of Mossville is the story of America,\\u0026#8221; the film tells the story of Mossville, Louisiana – a once-thriving community founded by formerly enslaved and free people-of-colour, and an economically flourishing safe haven for generations of African-American families.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eToday it\\u0026#8217;s a breeding ground for petrochemical plants and their toxic black clouds.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=n4LVRdKJbIw%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe film follows one man who refuses to abandon his family\\u0026#8217;s land,\\u0026nbsp;despite prolonged exposure to contamination, pollution and destruction that forced the rest of the community out.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eYet it\\u0026#8217;s also a story that connects the struggle for environmental justice from Louisiana to South Africa and beyond, where communities time and again face the toxic fallout from the massive corporate power of polluting industries.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe UN Human Rights Office hosted a virtual screening of the film to kick off the 28th Session on Environmental Justice, the Climate Crisis, and People of African Descent.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eCheck out how you can see the film and support the project:\\u0026nbsp;\\u003ca href=\\\"http://www.mossvilleproject.com/\\\"\\u003emossvilleproject.com\\u003c/a\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eJulieta Biegner, US Communications and Campaigns Officer\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003eSign up for email updates\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eStay up to date with Global Witness investigations and campaignsEmail\\u003c/p\\u003e\\n\\n\\n\\n\\u003cfigure class=\\\"wp-block-embed\\\"\\u003e\\u003cdiv class=\\\"wp-block-embed__wrapper\\\"\\u003e\\nhttps://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/b/turnstile/f/ov2/av0/rch/xsdg5/0x4AAAAAAAjsgg8P8WYjmiDn/auto/fbE/new/normal?lang=auto\\n\\u003c/div\\u003e\\u003c/figure\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eBy subscribing you consent to receiving email updates about campaigns and other ways to support Global Witness. For more information about how Global Witness processes your personal data, see our\\u0026nbsp;\\u003ca href=\\\"https://globalwitness.org/en/privacy-policy/\\\"\\u003eprivacy policy\\u003c/a\\u003e.\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eSeaspiracy\\u003c/em\\u003e\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWith its courageous investigative journalism, coupled with clear and captivating storytelling, it’s easy to see why Netflix\\u0026#8217;s\\u0026nbsp;\\u003ca href=\\\"https://www.netflix.com/gb/title/81014008\\\"\\u003e\\u003cem\\u003eSeaspiracy\\u003c/em\\u003e\\u003c/a\\u003e\\u0026nbsp;has proven so popular.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eFilmmakers Ali and Lucy Tabrizi aim to shock audiences into caring – and ultimately doing something\\u0026nbsp; – about an issue they view as the most critical to the sustainability of our planet, namely what is happening in our oceans.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=1Q5CXN7soQg%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe story begins with a focus on plastic in the ocean but very quickly expands out to hone in on global fishing practices, carried out by Big Business. It’s a regular theme throughout the film of challenging conventional and mainstream understanding of the problems in our seas.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThis is particularly welcome and resonates with Global Witness’ own campaigning efforts, to move away from the idea that individual acts of consumers are most responsible for environmental destruction, when in truth it is huge multinationals disproportionately to blame.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOne of the many striking facts – this is a film that uses facts extremely effectively – reveals that almost half of all plastics in the Great Pacific Garbage Patch are discarded fishing nets, rather than straws and cotton buds.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOne particular scene that illuminates this point shows a small group of fishermen from a Liberian coastal community risking their lives in a makeshift boat to ask bigger ships to\\u0026nbsp;throw down food.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eTabrizi then explains that overfishing in Liberian waters, by Big Business, has depleted an important food source for the local community. It is the “industrialisation” of fishing that is highlighted as the problem.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWhile the land impact is well noted here, there are moments where other environmental damages are downplayed. At times the film tries to counterpose the global focus on deforestation and fossil fuels against the lack of attention on the oceans.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOf course, this is more a tactic to win attention, rather than dismiss the work organisations like Global Witness do, but the film could have given more care to this argument.\\u0026nbsp;\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThere does also seem to be some disconnect between the final conclusion and the great work done earlier in the film to position the problem away from individual acts. “Don’t eat seafood” is the top message, as a consumer choice, as opposed to empowering viewers to campaign in more active ways.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThat being said there is no doubt this is a high-impact, well-made, campaigning film that should be both applauded and learned from.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eAs a featured voice throughout, George Monbiot and others are in fine form, amidst a narrative that brings a much needed focus and emotion to what is happening in the world’s oceans.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eDominic Kavakeb, Senior Communications Adviser\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eI Am Greta\\u003c/em\\u003e\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eGreta Thunberg is arguably one of the most influential climate crisis activists of our time – helping to inspire the global Fridays for Future movement and hundreds of thousands of young people in at least 60 countries to take action for the climate.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=i74n4BUYgHI%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThis documentary offers an insight into Greta’s life and charts her journey from a lone figure and outsider at school, standing outside the Swedish Parliament on her first school strike, to speaking at international conferences such as COP.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWe see her heart-warming relationship with her father (who accompanies her everywhere, even on a challenging journey at sea), we see her giggling at right-wing politicians and press who mock her, we witness her laser-like focus on climate science, and watch her craft speeches on her laptop before high-level meetings, obsessing over how to get leaders to listen.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eGreta is clearly an intelligent and influential activist, who is determined for the world to avoid a climate disaster. Yet, what makes for uncomfortable viewing is how politicians and experts patronise her and treat her like a schoolchild.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eAdults ask her for selfies, but barely listen to her. The French Emmanuel President Macron appears to smirk at her as he says, \\u0026#8220;So you take the train everywhere?\\u0026#8221; British politician Jeremy Bercow simply says to her, \\u0026#8220;Just do what you believe is right,\\u0026#8221; without sharing what the British government could do.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eGreta herself becomes increasingly aware that she is being used at public events as a token gesture to the climate movement.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u0026#8220;Did you hear what I just said? Is my English OK? Is the microphone on? Because I’m beginning to wonder,\\u0026#8221; she says in a speech at the UK’s Houses of Parliament. The ministers laugh – but she means business, she wants to be heard, she wants youth voices to be heard.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eJasmin Qureshi, Multimedia Manager\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch3 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eThis Changes Everything\\u003c/em\\u003e\\u003c/h3\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eThis Changes Everything,\\u003c/em\\u003e\\u0026nbsp;the feature documentary of Naomi Klein’s critically acclaimed book of the same name, turns the way we think about climate change on its head.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eWhat if climate change isn’t just the story of doom, despair and destruction? What if it’s the best reason the world has ever had to build a better world – to change everything?\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eIn the face of the climate crisis, there can be no status quo. The world as we know it is being transformed by the changing climate – but instead of facing down an ever more hostile environment, people around the world are instead creating a more just, healthier, cleaner, fairer world.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=YQhflH4alO0%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe film takes a tour through the frontlines of the fight against climate change, and against the pursuit for economic growth at all costs that is driving the crisis.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eFrom the tribes fighting tar sands extraction in Canada, through opposition to mining companies in Greece and to power companies in India – this presents the huge, varied and interconnected movement pushing back against the climate crisis and for a better world.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eMurray Worthy, Campaign Leader,\\u0026nbsp;Gas Team\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch3 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eVirunga\\u003c/em\\u003e\\u003c/h3\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003ca href=\\\"https://globalwitness.org/en/campaigns/forests/virunga/\\\"\\u003eVirunga\\u003c/a\\u003e\\u0026nbsp;is a beautiful and powerful documentary which brings together several compelling narratives: the\\u0026nbsp;\\u003ca href=\\\"https://globalwitness.org/en/campaigns/forests/virunga-uk-company-bankrolled-soldiers-accused-of-bribery-and-violence-in-quest-for-oil-in-africas-oldest-national-park/\\\"\\u003eterrible violence\\u003c/a\\u003e\\u0026nbsp;that has ravaged eastern Democratic Republic of ­­Congo (DRC); the British oil company seeking to drill in the midst of the beauty of Africa’s oldest national park; the incredible young journalist on the case; and the tear-jerking relationship between a handler and his gorilla \\u0026#8220;family\\u0026#8221;.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003ehttps://youtube.com/watch?v=iyBb6pdnJfI%3Ffeature%3Doembed%26enablejsapi%3D1%26origin%3Dhttps%253A%252F%252Fglobalwitness.org\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eAfter the documentary was shot, non-governmental organisations, including Global Witness, which had been following the case previously, were able to\\u0026nbsp;\\u003ca href=\\\"https://globalwitness.org/en/campaigns/oil-gas-and-mining/10-questions-uk-oil-company-soco-international-must-answer-virunga-documentary-nominated-oscar/\\\"\\u003eput intense pressure on the oil company\\u003c/a\\u003e, Soco International, to stop its activities inside the park.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOur investigators uncovered further signs of corruption and human rights abuses and eventually the company left the DRC, leaving the park in peace.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eShortly after we discovered that the Ugandan government was about to issue an oil licence in the same area, putting the park at risk once again. We rallied our allies and fought a successful public campaign to stop oil companies bidding for the block. This wouldn\\u0026#8217;t have been possible without the publicity the film achieved.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe park is safe for now but oil companies are still opening up new oil reserves all along the Uganda/DRC border, putting many protected areas at risk.\\u0026nbsp;\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eGeorge Boden, former Campaign Leader, Industries Team, Land and Environmental Defenders\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch3 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eGiant\\u003c/em\\u003e\\u003c/h3\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eCome for the bevy of cinema legends (Dean, Hudson, Taylor, Hopper), stay for the fact it’s James Dean’s last big screen appearance, leave with the clear message that all the oil in the word will not bring you happiness.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eI could have taken\\u0026nbsp;\\u003ca href=\\\"https://www.imdb.com/title/tt0049261/?ref_=nv_sr_srsg_0\\\"\\u003ethis epic tale\\u003c/a\\u003e\\u0026nbsp;of a simple farm hand striking black gold at face value but instead I feel we must marry the current climate crisis with the possible subliminal messaging throughout the film on the dangers of America’s reliance on oil.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cstrong\\u003eBick Benedict:\\u003c/strong\\u003e\\u0026nbsp;Just remember, one of these days, that bourbon\\u0026#8217;s [oil’s] gonna kill you.\\u003cbr\\u003e\\u003cstrong\\u003eUncle Bawley:\\u003c/strong\\u003e\\u0026nbsp;Okay, it\\u0026#8217;ll be me or it. One of us has gotta go.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eSo who’ll be the first to go – us or oil?\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eRichard Gardiner, Senior Campaigner, Corporate Accountability\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch3 class=\\\"wp-block-heading\\\"\\u003e\\u003cem\\u003eThe New Corporation\\u003c/em\\u003e\\u003c/h3\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003ca href=\\\"https://thenewcorporation.movie/\\\"\\u003e\\u003cem\\u003eThe New Corporation\\u003c/em\\u003e\\u003c/a\\u003e\\u0026nbsp;sounds the alarm about the role of Big Business in the biggest challenges we are currently facing – the climate crisis and related human rights abuses.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThis film is a grand and devastating overview of everything wrong with today’s world: forest destruction, ruthless extraction of fossil fuels, erosion of democracy and murders of land and environmental activists – all linked back to the enormous power and influence of corporations who value profit above people.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eOne of the most striking sequences pits the devastation caused by energy companies against their greenwashing activities and corporate social responsibility PR campaigns.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eThe New Corporation\\u003c/em\\u003e\\u0026nbsp;also shows us a glimpse of a better future – and outlines the changes that are already happening.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eThe film shows us politicians who do represent people, rather than business, who have come to power through grassroots movements. It gives a platform to\\u0026nbsp;\\u003ca href=\\\"https://globalwitness.org/en/campaigns/land-and-environmental-defenders/\\\"\\u003eland and environmental defenders\\u003c/a\\u003e\\u0026nbsp;who have managed to stop destructive companies. It points to the racial justice movements as reasons to look forward to positive change.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003eDespite the apocalyptic nature of the film, I left it with a feeling of hope.\\u003c/p\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003cem\\u003eJasmin Qureshi, Multimedia Manager\\u003c/em\\u003e\\u003c/p\\u003e\\n\\n\\n\\n\\u003ch2 class=\\\"wp-block-heading\\\"\\u003eAuthors\\u003c/h2\\u003e\\n\\n\\n\\n\\u003cul class=\\\"wp-block-list\\\"\\u003e\\n\\u003cli\\u003e\\u003ca href=\\\"https://globalwitness.org/en/about-us/our-people/jasmin-qureshi/\\\"\\u003eJasmin QureshiMulti-Media Editor\\u003c/a\\u003e\\u003c/li\\u003e\\n\\u003c/ul\\u003e\\n\\n\\n\\n\\u003cp class=\\\"wp-block-paragraph\\\"\\u003e\\u003c/p\\u003e\"}}],\"version\":\"2.30.0\"}",33,"Buat catatan and",1782734696,"https://hl-file.8kds.com/admin/4a699b7145e24f049704dbec9483a084.png",162,1782742935,{"id":115,"author":105,"title":116,"content":117,"classTypeId":108,"classTypeName":109,"publishTime":118,"coverImg":119,"pageTitle":5,"slug":5,"permalink":116,"authorAvatar":47,"authorBio":5,"createBy":112,"updateDate":120},"2071454084864204800","test","{\"time\":1782727129265,\"blocks\":[{\"id\":\"cc5c116f44\",\"type\":\"raw\",\"data\":{\"fallbackHtml\":\"\u003Cp class=\\\"wp-block-paragraph\\\">id\u003C/p>\\n\\n\\n\u003Cdiv class=\\\"wp-block-image\\\">\\n\u003Cfigure class=\\\"alignright is-resized\\\">\u003Ca class=\\\"td-modal-image\\\" href=\\\"https://uspolicy.org/wp-content/uploads/2026/06/maxresdefault.jpg\\\">\u003Cimg decoding=\\\"async\\\" src=\\\"https://uspolicy.org/wp-content/uploads/2026/06/maxresdefault-696x392.jpg\\\" alt=\\\"\\\" style=\\\"width:402px;height:auto\\\" title=\\\"maxresdefault\\\"/>\u003C/a>\u003C/figure>\\n\u003C/div>\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">As lawmakers continue debating rail policy, a new video from US Policy examines an important question: Do additional federal regulations make railroads safer, or do they primarily increase costs and reduce efficiency?\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">Using a model train set to illustrate the point, the video explores how each new mandate can add friction to the freight system through compliance costs, staffing requirements, and restrictions on innovation.\u003C/p>\\n\\n\\n\\n\u003Cfigure class=\\\"wp-block-embed\\\">\u003Cdiv class=\\\"wp-block-embed__wrapper\\\">\u003Ciframe src=\\\"https://www.youtube.com/embed/oaIk7TD5Yjg\\\" loading=\\\"lazy\\\" allow=\\\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\\\" referrerpolicy=\\\"strict-origin-when-cross-origin\\\" allowfullscreen>\u003C/iframe>\u003C/div>\u003C/figure>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">The video highlights concerns with provisions often associated with the Railway Safety Act, including two-person crew mandates and expanded regulatory requirements. While advocates argue these measures are necessary to prevent accidents, the video notes that freight rail companies already face significant financial incentives to prioritize safety, including the costs associated with derailments, insurance claims, cargo losses, and reputational damage.\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">The video also places the debate in historical context, noting that rail deregulation efforts beginning under President Jimmy Carter helped create a more efficient and financially sustainable freight rail system. Greater flexibility allowed railroads to invest in infrastructure, improve service, and strengthen supply chains.\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">The broader economic implications are significant. When rail transportation becomes less efficient or more expensive, freight often shifts to trucks, increasing highway congestion, road wear, and overall transportation costs.\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">Ultimately, the video argues that the debate should not be framed as safety versus no safety. Instead, policymakers should focus on identifying the most effective ways to improve safety while preserving the flexibility, innovation, and efficiency that make freight rail an essential part of the American economy.\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">Key Takeaway\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">The question is not whether railroads should be safe—they must be. The question is whether one-size-fits-all federal mandates are the best way to achieve that goal, or whether they risk increasing costs and slowing innovation without delivering meaningful safety improvements.\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML\\\">HTML\u003C/a>&nbsp;\u003Cstrong>\u003Ccode>&lt;table&gt;\u003C/code>\u003C/strong>&nbsp;元素表示表格数据——即在一个由包含数据的行和列组成的二维表格中呈现的信息。\u003C/p>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">本文内容\u003C/h2>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%B0%9D%E8%AF%95%E4%B8%80%E4%B8%8B\\\">尝试一下\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%B1%9E%E6%80%A7\\\">属性\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E7%A4%BA%E4%BE%8B\\\">示例\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%97%A0%E9%9A%9C%E7%A2%8D%E8%80%83%E8%99%91\\\">无障碍考虑\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E8%A7%84%E8%8C%83\\\">规范\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%B5%8F%E8%A7%88%E5%99%A8%E5%85%BC%E5%AE%B9%E6%80%A7\\\">浏览器兼容性\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%8F%82%E8%A7%81\\\">参见\u003C/a>\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Ca target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\" href=\\\"https://developer.mozilla.org/pong/click?code=aHR0cHM6Ly9zcnYuYnV5c2VsbGFkcy5jb20vYWRzL2NsaWNrL3gvR1RORDQyN1lDVlNJNUtKTkY2U0xZS1FVRlQ3SUMyM1lDNlNETFozSkNBQURDS0pFQ0VZSUVLSktDNlNJTEtRWUNBWURUNTNNQ1RTSTYyN1VDVzdJSzVRTUhFWUk1NTNMQ0E3REMySkVDVE5DWUJaNTJL.iT%2Bk4Hf27Db%2BR0aZIZJApRIJqL8athAHxSvjV2TQAhc%3D&version=2\\\">\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Ca target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\" href=\\\"https://developer.mozilla.org/pong/click?code=aHR0cHM6Ly9zcnYuYnV5c2VsbGFkcy5jb20vYWRzL2NsaWNrL3gvR1RORDQyN1lDVlNJNUtKTkY2U0xZS1FVRlQ3SUMyM1lDNlNETFozSkNBQURDS0pFQ0VZSUVLSktDNlNJTEtRWUNBWURUNTNNQ1RTSTYyN1VDVzdJSzVRTUhFWUk1NTNMQ0E3REMySkVDVE5DWUJaNTJL.iT%2Bk4Hf27Db%2BR0aZIZJApRIJqL8athAHxSvjV2TQAhc%3D&version=2\\\">\u003Cstrong>Remove identity bottlenecks for AI agents\u003C/strong>Let your agents log in, call APIs, and connect to MCP servers securely with Auth0.Start Building\u003C/a>\u003Ca href=\\\"https://developer.mozilla.org/en-US/advertising\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">广告\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%B0%9D%E8%AF%95%E4%B8%80%E4%B8%8B\\\">尝试一下\u003C/a>\u003C/h2>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">HTML Demo: &lt;table&gt;\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">重置HTMLCSS\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">1\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">2\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">3\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">4\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">5\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">6\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">7\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">8\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">9\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">10\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">11\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">12\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">13\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">14\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">15\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">16\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">17\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">18\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">19\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">20\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">21\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">22\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">23\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">24\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">25\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">26\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">27\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">28\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">29\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">30\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">31\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">32\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">33\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">34\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">35\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">36\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">37\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">38\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">39\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">40\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">41\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;table&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;caption&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">Front-end web developer course 2021\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/caption&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;thead&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;col&#8221;&gt;Person&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;col&#8221;&gt;Most interest in&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;col&#8221;&gt;Age&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/thead&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tbody&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221;&gt;Chris&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;HTML tables&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;22&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221;&gt;Dennis&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;Web accessibility&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;45&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221;&gt;Sarah&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;JavaScript frameworks&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;29&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221;&gt;Karen&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;Web performance&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;36&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tbody&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tfoot&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221; colspan=&#8221;2&#8243;&gt;Average age&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;33&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tfoot&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/table&gt;\u003C/p>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">输出\u003C/h4>\\n\\n\\n\\n\u003Cfigure class=\\\"wp-block-embed\\\">\u003Cdiv class=\\\"wp-block-embed__wrapper\\\">\\nhttps://848a5d79-449d-4f60-8e5b-06a6ee7ad970.mdnplay.dev/runner.html?uuid=848a5d79-449d-4f60-8e5b-06a6ee7ad970&#038;state=nVTbahsxEP2VQU8xeGtn7aTpZmMoLaW0DRRS6Mu%2BaKXZXTWytEgTXxry70WyHDtxLiUPC9Lczjmjmb1lHc01K1hJvNY4qwxAKXhPypp4AfjirKEMjYQl1iBxgdr26EDYG%2BcR8nF%2BHLNG%2B2kldchlqlCSS6foAC9sjxcVE1ZXbPYTnbemHFH3QtCl9QTKEDqMh1fCP7a4F1GOEoFg29IqqbZy%2FQpDZ5cVm33qnPKPEOXs66%2FLHxC7FnzygS%2FP90z38K%2FhfEZjngD6jTVwIdB7VSutaH0ANz15C9wVd7w7QPvGF%2FxKONUTNI7PcWnd9RMCP7wF8Tt3%2BPjpNvp6dI11c24EHmBNTp%2FCKke7ByypsZb%2BhwIIq33PzUXF8jAnC3S8ReAP5iXBTp6BTVjlaLsybMiE96xg0QC3Ia62TqLLhNWa9x4L2J7Od94C8n4F3molwbX10fF0DOkbxLAmbF7D50qvC%2FDc%2BMyjU83O59VfLGD87szhPFo1EqHLfM%2BFMm0Bx%2F3qvDJ3lalMWs8NvXTJvJJYQG2J7KZAz6XcZI5jagJaomo7CpFabgvGXRpWJjYkqebiunX2xsig3Loi6srzM8inY8inJ4NdcsiU%2B82KbPfbcTqG9A0ecjvrV1t%2Bm2Ky0NxTZpuM1n16AcIVZVyr1hQgMPw67sPD4MAMyBWGum3WES7QDF7UMXkP%2BSRoyXc6onjqDjFd6NijsKT3mZayIfsTxogNmcSG32gKN7XKiNc1SjZk1OEcWcF0SGV3%2FwA%3D\\n\u003C/div>\u003C/figure>\\n\\n\\n\\n\u003Cfigure class=\\\"wp-block-table\\\">\u003Ctable class=\\\"has-fixed-layout\\\">\u003Ctbody>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Content_categories\\\">内容分类\u003C/a>\u003C/th>\u003Ctd>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Content_categories#%E6%B5%81%E5%BC%8F%E5%86%85%E5%AE%B9\\\">流式内容\u003C/a>\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">允许的内容\u003C/th>\u003Ctd>按照这个顺序：一个可选的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/caption\\\">\u003Ccode>&lt;caption&gt;\u003C/code>\u003C/a>&nbsp;元素零个或多个的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/colgroup\\\">\u003Ccode>&lt;colgroup&gt;\u003C/code>\u003C/a>&nbsp;元素一个可选的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/thead\\\">\u003Ccode>&lt;thead&gt;\u003C/code>\u003C/a>&nbsp;元素下列任意一个：零个或多个&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tbody\\\">\u003Ccode>&lt;tbody&gt;\u003C/code>\u003C/a>零个或多个&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tr\\\">\u003Ccode>&lt;tr&gt;\u003C/code>\u003C/a>一个可选的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tfoot\\\">\u003Ccode>&lt;tfoot&gt;\u003C/code>\u003C/a>&nbsp;元素\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">标签省略\u003C/th>\u003Ctd>不允许，开始标签和结束标签都不能省略。\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">允许的父元素\u003C/th>\u003Ctd>任何支持流式内容的元素\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">隐含的 ARIA 角色\u003C/th>\u003Ctd>\u003Ccode>\u003Ca href=\\\"https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/table_role\\\">table\u003C/a>\u003C/code>\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">允许的 ARIA 角色\u003C/th>\u003Ctd>任意\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">DOM 接口\u003C/th>\u003Ctd>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLTableElement\\\">\u003Ccode>HTMLTableElement\u003C/code>\u003C/a>\u003C/td>\u003C/tr>\u003C/tbody>\u003C/table>\u003C/figure>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%B1%9E%E6%80%A7\\\">属性\u003C/a>\u003C/h2>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">此元素包含所有的\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Global_attributes\\\">全局属性\u003C/a>。\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%BC%83%E7%94%A8%E7%9A%84%E5%B1%9E%E6%80%A7\\\">弃用的属性\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#align\\\">\u003Ccode>align\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Glossary/Enumerated\\\">枚举\u003C/a>属性指定了包含在文档中的表格必须如何对齐。可能含有如下值：\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ccode>left\u003C/code>：表格将在文档左侧显示；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>center\u003C/code>：表格将在文档中央显示；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>right\u003C/code>：表格将在文档右侧显示；\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">设置&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/margin-left\\\">\u003Ccode>margin-left\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/margin-right\\\">\u003Ccode>margin-right\u003C/code>\u003C/a>&nbsp;为&nbsp;\u003Ccode>auto\u003C/code>，或者将&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/margin\\\">\u003Ccode>margin\u003C/code>\u003C/a>&nbsp;设置为&nbsp;\u003Ccode>0 auto\u003C/code>&nbsp;来实现类似于 align 属性的效果。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#bgcolor\\\">\u003Ccode>bgcolor\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">表格的背景颜色。它是一个&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Values/hex-color\\\">6 位的十六进制 RGB 编码\u003C/a>，以&nbsp;\u003Ccode>'#'\u003C/code>&nbsp;作为前缀。当然也可以使用下面已经被预先定义的\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Values/named-color\\\">颜色关键字\u003C/a>。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以使用 CSS 属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/background-color\\\">\u003Ccode>background-color\u003C/code>\u003C/a>。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#border\\\">\u003Ccode>border\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个整型属性定义了环绕表格外部的框的大小。如果设置为 0，这意味着&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#frame\\\">\u003Ccode>frame\u003C/code>\u003C/a>&nbsp;属性被设置为空。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以使用 CSS 简写属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border\\\">\u003Ccode>border\u003C/code>\u003C/a>。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#cellpadding\\\">\u003Ccode>cellpadding\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个属性定义了一个单元格的内容和它的边框之间的空间，无论显示与否。如果 cellpadding 的长度是用像素定义的，这个像素大小的空间将被应用到单元格内容的所有四边。如果长度是用百分比值定义的，内容将被居中，总的垂直空间（顶部和底部）将代表这个值。对于总的水平空间（左边和右边）也是如此。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以在&nbsp;\u003Ccode>&lt;table&gt;\u003C/code>&nbsp;元素上使用属性值为 collapse 的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-collapse\\\">\u003Ccode>border-collapse\u003C/code>\u003C/a>&nbsp;属性，在&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/td\\\">\u003Ccode>&lt;td&gt;\u003C/code>\u003C/a>&nbsp;元素上使用属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/padding\\\">\u003Ccode>padding\u003C/code>\u003C/a>。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#cellspacing\\\">\u003Ccode>cellspacing\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个属性定义了水平和垂直方向上两个单元格之间空间的大小，使用百分比或像素，包括了表格的顶部与第一行的单元格、表的左边与第一列单元格、表的右边与最后一列的单元格、表的底部与最后一行单元格之间的空间。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以在&nbsp;\u003Ccode>&lt;table&gt;\u003C/code>&nbsp;元素上使用 CSS 属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-spacing\\\">\u003Ccode>border-spacing\u003C/code>\u003C/a>。\u003Ccode>border-spacing\u003C/code>&nbsp;在&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-collapse\\\">\u003Ccode>border-collapse\u003C/code>\u003C/a>&nbsp;设置为 collapse 时将无效。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#frame\\\">\u003Ccode>frame\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个枚举属性定义了包围在表格周围的框架的哪个边必须显示。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以使用 CSS 属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-style\\\">\u003Ccode>border-style\u003C/code>\u003C/a>&nbsp;和&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-width\\\">\u003Ccode>border-width\u003C/code>\u003C/a>。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#rules\\\">\u003Ccode>rules\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个枚举属性定义了在一个表格中分隔线的显示位置。它可以有以下值：\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ccode>none\u003C/code>，这表明没有分隔线将被显示；这是默认的值；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>groups\u003C/code>，这将使得分隔线只显示在行组（row group，通过 \u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/thead\\\">\u003Ccode>&lt;thead>\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tbody\\\">\u003Ccode>&lt;tbody>\u003C/code>\u003C/a> 和 \u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tfoot\\\">\u003Ccode>&lt;tfoot>\u003C/code>\u003C/a> 元素定义）和列组（column group，通过 \u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/col\\\">\u003Ccode>&lt;col>\u003C/code>\u003C/a> 和 \u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/colgroup\\\">\u003Ccode>&lt;colgroup>\u003C/code>\u003C/a> 元素定义）之间\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>rows\u003C/code>，这将使得分隔线在行之间显示；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>cols\u003C/code>，这将使得分隔线在列之间显示；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>all\u003C/code>，这将使得分隔线在列和行之间显示；\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以在适当的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/thead\\\">\u003Ccode>&lt;thead&gt;\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tbody\\\">\u003Ccode>&lt;tbody&gt;\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tfoot\\\">\u003Ccode>&lt;tfoot&gt;\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/col\\\">\u003Ccode>&lt;col&gt;\u003C/code>\u003C/a>&nbsp;或&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/colgroup\\\">\u003Ccode>&lt;colgroup&gt;\u003C/code>\u003C/a>&nbsp;元素上使用&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border\\\">\u003Ccode>border\u003C/code>\u003C/a>&nbsp;属性。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#summary\\\">\u003Ccode>summary\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">该属性定义了概括表格内容的替代文本。请使用&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/caption\\\">\u003Ccode>&lt;caption&gt;\u003C/code>\u003C/a>&nbsp;元素代替。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#width\\\">\u003Ccode>width\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">该属性定义了表格的宽度。请使用 CSS&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/width\\\">\u003Ccode>width\u003C/code>\u003C/a>&nbsp;属性代替。\u003C/p>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E7%A4%BA%E4%BE%8B\\\">示例\u003C/a>\u003C/h2>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E7%AE%80%E5%8D%95%E7%9A%84%E8%A1%A8%E6%A0%BC\\\">简单的表格\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=f3181ffab38a41999d2d0f0afe9cfccede1f7101&state=q1bKKMnNUbJSsilJTMpJtYvJU1CwKSkC0yBWip1XfkaejX5JCpKQS34qXMRGH6oaTVdiXiphXTb6MFuVdJSSi4uVrJSUdJSyoHRJRmpuqpKVUk5mekaJUi0A&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;table&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;John&lt;/td&gt;\\n    &lt;td&gt;Doe&lt;/td&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;Jane&lt;/td&gt;\\n    &lt;td&gt;Doe&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%9B%B4%E5%A4%9A%E7%AE%80%E5%8D%95%E7%A4%BA%E4%BE%8B\\\">更多简单示例\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=bfa7e5bae3ce187fb1846055cdd45650108fff48&state=jVLbctJQFP2VM8dXNBT1oWmaJ5%2F8hryEJCXYNCdDjjPtdDqDIxUZS0uL1BaqBS8VVC46jiII%2FRg5ufyFE8IlnnLxJTmz9tp77b323oUq3tIgCzmDJ7nP1kXGqVTJ%2B%2B92MeVUqlb5N8cYvKBzWIxqCi%2FoAHA4Mfx7L5UnH%2FMcg9UgkstOEI4ZkYNJMv8AKRyD5QDyEKn6BPr%2FLFFX6CyOGbcq6NRMf5JPvEerT04O%2FOEG7e6gl180q6qIU8VxN%2F6gflHybJ80foGVgAszwpGgSZPxmGl5DkeRvDNTSeaDzQb05GWkSNCvgOpEisMbCOH5qp5XC%2FSm4XlKo%2FLUUqyLDHn%2Byu6mFjgvIS2WQI8NYBqivi7AewLkOWaMzrrEUo80flDH6F6duk97FDjodMjRO6vQctNHVMhp1p1qctn92v1DUupRx0iyh3ap5FauKfzunfAqGHRo2Hnx1WnWl928ffyG7LepVOu0Sfo%2FSf4Dab20jmtUdDUcBoN2mkL9QjMU562GnBx4j%2BULGotISAMm3tGUdQFGRWnTC%2BrybQlpKMGCW%2BGNsAAB8w%2Fb32xkgi%2Fcr%2Fv6xLosU%2FuyLsvWpy80WDsj9dzSJXavncw3yia3m7oJWrXzIDjXOKucdt%2Be2cWU3UiSbGGucaKB40gfCXi3dHVuF1N%2B9siGAOXm6fn0QsvKNuY3BUNQMk3IwiEAdj1SFCVkJeGtRBMNU2HB%2BLUWiJqGKMX1GAvCxvaaoO8J%2BrBCSNCx6n1kv5YhyvKQdn9IG6ezYMXYBibS4jKIaqK06ZeAIfjIawaGIFaVLQWyUIvHVAz3%2FgI%3D&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;p&gt;含有表头的表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;tr&gt;\\n    &lt;th&gt;姓&lt;/th&gt;\\n    &lt;th&gt;名&lt;/th&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;Doe&lt;/td&gt;\\n    &lt;td&gt;John&lt;/td&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;Doe&lt;/td&gt;\\n    &lt;td&gt;Jane&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\\n&lt;p&gt;含有表头、表尾和表格主体的表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;thead&gt;\\n    &lt;tr&gt;\\n      &lt;th&gt;表头内容 1&lt;/th&gt;\\n      &lt;th&gt;表头内容 2&lt;/th&gt;\\n    &lt;/tr&gt;\\n  &lt;/thead&gt;\\n  &lt;tbody&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;表格主体内容 1&lt;/td&gt;\\n      &lt;td&gt;表格主体内容 2&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tbody&gt;\\n  &lt;tfoot&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;表尾内容 1&lt;/td&gt;\\n      &lt;td&gt;表尾内容 2&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tfoot&gt;\\n&lt;/table&gt;\\n\\n&lt;p&gt;有列组的表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;colgroup span=\\\"4\\\"&gt;&lt;/colgroup&gt;\\n  &lt;tr&gt;\\n    &lt;th&gt;国家&lt;/th&gt;\\n    &lt;th&gt;首都&lt;/th&gt;\\n    &lt;th&gt;人口数量&lt;/th&gt;\\n    &lt;th&gt;语言&lt;/th&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;美国&lt;/td&gt;\\n    &lt;td&gt;华盛顿&lt;/td&gt;\\n    &lt;td&gt;3.09 亿&lt;/td&gt;\\n    &lt;td&gt;英语&lt;/td&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;瑞典&lt;/td&gt;\\n    &lt;td&gt;斯德哥尔摩&lt;/td&gt;\\n    &lt;td&gt;900 万&lt;/td&gt;\\n    &lt;td&gt;瑞典语&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\\n&lt;p&gt;有列组和列的表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;colgroup&gt;\\n    &lt;col style=\\\"background-color: #0f0\\\" /&gt;\\n    &lt;col span=\\\"2\\\" /&gt;\\n  &lt;/colgroup&gt;\\n  &lt;tr&gt;\\n    &lt;th&gt;青柠&lt;/th&gt;\\n    &lt;th&gt;柠檬&lt;/th&gt;\\n    &lt;th&gt;橘子&lt;/th&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;绿色&lt;/td&gt;\\n    &lt;td&gt;黄色&lt;/td&gt;\\n    &lt;td&gt;橙色&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\\n&lt;p&gt;有标题的简单表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;caption&gt;\\n    美妙的标题\\n  &lt;/caption&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;美妙的数据&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E8%A1%A8%E6%A0%BC%E6%8E%92%E5%BA%8F\\\">表格排序\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">对表格的行进行排序\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">没有原生的方法对 HTML 表格的行（\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tr\\\">\u003Ccode>&lt;tr&gt;\u003C/code>\u003C/a>元素）进行排序。但是通过使用&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/slice\\\">\u003Ccode>Array.prototype.slice()\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/sort\\\">\u003Ccode>Array.prototype.sort()\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/API/Node/removeChild\\\">\u003Ccode>Node. removeChild()\u003C/code>\u003C/a>&nbsp;和&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/API/Node/appendChild\\\">\u003Ccode>Node.appendChild()\u003C/code>\u003C/a>，你可以实现你自己的&nbsp;\u003Ccode>sort()\u003C/code>&nbsp;函数来对&nbsp;\u003Ccode>&lt;tr&gt;\u003C/code>&nbsp;元素的\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLCollection\\\">\u003Ccode>HTMLCollection\u003C/code>\u003C/a>&nbsp;进行排序。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">在下面的示例中，你可以看到具体如何这样做。我们把这个自定义方法附加到 &lt;tbody&gt; 元素上，这样它就会按照数值增加的顺序对表格单元格进行排序，并更新显示内容以适应需要。\u003C/p>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">HTML\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=ce14e7db35174ad596f60edd983bedf6e66f2863&state=jY9PT8MwDMW%2FSuRTKlUpf25bNwmmSRzgtN0ohzRxaVEal9QDqmnfHSXbEEI7cIqd97Pf8x5a7h3MoGRdO1xWXoiSa7JTKmMTTlWs7fK2LNieteJH%2FIvd%2FA%2B7voSVxTlAWZxTQQ5mHGEGkMNbfB%2B2T4%2FbKG7QcEd%2B7bBHz2oIxMTTgGqkwGIhmp1PgJCmzsQ%2BGtyFoCfVBOolt92oAn2O2TFEmorkqW0orLVppcRMLJYi4XoY0NtV2zl7mseePvD4gVmWzSt%2FmFfektnFTHGVet9hmDbo0DAFWUE6rILko%2FiebIfj89XL0V%2FqXNTJUCvGL16R53icI6MdrqgfdEBZ%2F9aSK%2BTALfYIM3Dda8tw%2BAY%3D&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;table&gt;\\n  &lt;tbody&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;3&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;2&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;1&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tbody&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">JavaScript\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">js复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=ce14e7db35174ad596f60edd983bedf6e66f2863&state=jY9PT8MwDMW%2FSuRTKlUpf25bNwmmSRzgtN0ohzRxaVEal9QDqmnfHSXbEEI7cIqd97Pf8x5a7h3MoGRdO1xWXoiSa7JTKmMTTlWs7fK2LNieteJH%2FIvd%2FA%2B7voSVxTlAWZxTQQ5mHGEGkMNbfB%2B2T4%2FbKG7QcEd%2B7bBHz2oIxMTTgGqkwGIhmp1PgJCmzsQ%2BGtyFoCfVBOolt92oAn2O2TFEmorkqW0orLVppcRMLJYi4XoY0NtV2zl7mseePvD4gVmWzSt%2FmFfektnFTHGVet9hmDbo0DAFWUE6rILko%2FiebIfj89XL0V%2FqXNTJUCvGL16R53icI6MdrqgfdEBZ%2F9aSK%2BTALfYIM3Dda8tw%2BAY%3D&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>HTMLTableSectionElement.prototype.sort = function (cb) {\\n  Array.from(this.rows)\\n    .sort(cb)\\n    .forEach((e) =&gt; this.appendChild(this.removeChild(e)));\\n};\\ndocument\\n  .querySelector(\\\"table\\\")\\n  .tBodies&#91;0].sort((a, b) =&gt; a.textContent.localeCompare(b.textContent));\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">结果\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">通过点击 th 元素对行进行排序\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">下面的示例给&nbsp;\u003Ccode>document\u003C/code>&nbsp;中每个&nbsp;\u003Ccode>&lt;table&gt;\u003C/code>&nbsp;的每个&nbsp;\u003Ccode>&lt;th&gt;\u003C/code>&nbsp;元素添加了一个事件处理程序；它对所有&nbsp;\u003Ccode>&lt;tbody&gt;\u003C/code>&nbsp;的行进行排序，排序的基础是行中包含的&nbsp;\u003Ccode>td\u003C/code>&nbsp;单元格。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Cstrong>备注：\u003C/strong>这个解决方案假设&nbsp;\u003Ccode>&lt;td&gt;\u003C/code>&nbsp;元素是由原始文本填充的，没有子元素。\u003C/p>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">HTML\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=f9fde97f0f4253146dc1d9002356b4f8a5db2325&state=jZLNTuswEIVfxfLKkSqHll2bVirVlUBiB7umCxNPb3qvY5fJFFqhPgJLxFMgeCl4DmTnp6nKglXsM%2Bc7M7bzxHMqDB%2FyhNSdgUlqGUsoB6XD0m%2BwXoXC5Ovl4%2FPtNYkpP5I%2F316%2F3p87chLXoNeauITunN79mKwn50lM%2BkiZdpQ27xQcnIAXvwP7J%2BDsJzCJm7GTuLkl3uNZWfIh5z3%2Bz38zZ0tiyphb7yjZmGmXbQqwJO83gLsbMJCRw6kxIuUhJuXRKLVLh0xUdFCZWx5iIvbkJ6jLF07v2LiySb9bQTk%2FW4wOFnSPvvUUUe3kEl0hAiS9HnV8%2FkUAZ2BMeQi8BKWDc362kJmvBaI7YO6n68D1fE2sh66shq0PzWW7HVUmyqXS%2Bs8DWLpelQQWUKQ8M6vsf8p7TERsPGkCWTiLLB2SEIT9HiMcHBvae8H%2BLWzJ98R%2BNfi8bb2QBFuaOUtgaXSKDlp08FsUgTZom7bSuEwZmLlirRBEnRi1%2Fv1hWb2FWq%2FBaiFl51Va2z61%2B%2FB3UQ4F8CE3q7858f03&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;table&gt;\\n  &lt;thead&gt;\\n    &lt;tr&gt;\\n      &lt;th&gt;数字&lt;/th&gt;\\n      &lt;th&gt;字母&lt;/th&gt;\\n    &lt;/tr&gt;\\n  &lt;/thead&gt;\\n  &lt;tbody&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;3&lt;/td&gt;\\n      &lt;td&gt;A&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;2&lt;/td&gt;\\n      &lt;td&gt;B&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;1&lt;/td&gt;\\n      &lt;td&gt;C&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tbody&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">JavaScript\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">js复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=f9fde97f0f4253146dc1d9002356b4f8a5db2325&state=jZLNTuswEIVfxfLKkSqHll2bVirVlUBiB7umCxNPb3qvY5fJFFqhPgJLxFMgeCl4DmTnp6nKglXsM%2Bc7M7bzxHMqDB%2FyhNSdgUlqGUsoB6XD0m%2BwXoXC5Ovl4%2FPtNYkpP5I%2F316%2F3p87chLXoNeauITunN79mKwn50lM%2BkiZdpQ27xQcnIAXvwP7J%2BDsJzCJm7GTuLkl3uNZWfIh5z3%2Bz38zZ0tiyphb7yjZmGmXbQqwJO83gLsbMJCRw6kxIuUhJuXRKLVLh0xUdFCZWx5iIvbkJ6jLF07v2LiySb9bQTk%2FW4wOFnSPvvUUUe3kEl0hAiS9HnV8%2FkUAZ2BMeQi8BKWDc362kJmvBaI7YO6n68D1fE2sh66shq0PzWW7HVUmyqXS%2Bs8DWLpelQQWUKQ8M6vsf8p7TERsPGkCWTiLLB2SEIT9HiMcHBvae8H%2BLWzJ98R%2BNfi8bb2QBFuaOUtgaXSKDlp08FsUgTZom7bSuEwZmLlirRBEnRi1%2Fv1hWb2FWq%2FBaiFl51Va2z61%2B%2FB3UQ4F8CE3q7858f03&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>const allTables = document.querySelectorAll(\\\"table\\\");\\nfor (const table of allTables) {\\n  const tBody = table.tBodies&#91;0];\\n  const rows = Array.from(tBody.rows);\\n  const headerCells = table.tHead.rows&#91;0].cells;\\n  for (const th of headerCells) {\\n    const cellIndex = th.cellIndex;\\n    th.addEventListener(\\\"click\\\", () =&gt; {\\n      rows.sort((tr1, tr2) =&gt; {\\n        const tr1Text = tr1.cells&#91;cellIndex].textContent;\\n        const tr2Text = tr2.cells&#91;cellIndex].textContent;\\n        return tr1Text.localeCompare(tr2Text);\\n      });\\n      tBody.append(...rows);\\n    });\\n  }\\n}\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">结果\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%9C%A8%E5%B0%8F%E7%A9%BA%E9%97%B4%E5%B1%95%E7%A4%BA%E5%A4%A7%E5%9E%8B%E8%A1%A8%E6%A0%BC\\\">在小空间展示大型表格\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">网络上表格的一个普遍问题是，当内容量很大时，它们在小屏幕上的原生效果并不好，而且使它们可滚动的方法并不明显，特别是当标记可能来自 CMS，无法添加一个包装器时。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个例子提供了一种在小空间中显示表格的方法。我们隐藏了 HTML 内容，因为它非常大，而且没有什么特别之处。在这个例子中，研究其 CSS 代码更有用。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">当查看这些样式时，你会注意到表格的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/display\\\">\u003Ccode>display\u003C/code>\u003C/a>&nbsp;属性已被设置为&nbsp;\u003Ccode>block\u003C/code>。虽然允许滚动，但表格失去了一些完整性，而且表格单元格会尽量变小。为了缓解这个问题，我们在&nbsp;\u003Ccode>&lt;tbody&gt;\u003C/code>&nbsp;上将&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/white-space\\\">\u003Ccode>white-space\u003C/code>\u003C/a>&nbsp;设置为&nbsp;\u003Ccode>nowrap\u003C/code>。然而，我们没有对&nbsp;\u003Ccode>&lt;thead&gt;\u003C/code>&nbsp;进行设置，以避免长标题迫使列的宽度超过显示数据所需的宽度。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了在向下滚动时保持表头在页面上，我们在&nbsp;\u003Ccode>&lt;th&gt;\u003C/code>&nbsp;元素上将&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/position\\\">\u003Ccode>position\u003C/code>\u003C/a>&nbsp;设置为 sticky。注意，我们\u003Cstrong>没有\u003C/strong>将&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-collapse\\\">\u003Ccode>border-collapse\u003C/code>\u003C/a>&nbsp;设置为&nbsp;\u003Ccode>collapse\u003C/code>，因为如果我们这样做，表头就不能与表格的其他部分正确分开。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">css复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=5175f6b091486794c8fb98e251b5329278939bf0&state=hddPbtpAHIbhq4ym6g4r%2Fsb%2FJ4iTsDG2wW6Mx7IngSjKAbrpAXqHXqDqcSp12StUdoDQ9kOzCTD8PLxANI94kbXdt1LLpc03bbVad0IsbV3l5Xx3ejCc7s1PrLAcH%2FtVsLybbsSvb59%2Ffv%2Fy%2B8fX6xHlHgncI6F7JHKPxO6R5PbI0m5M%2BUw%2FiXI1mIOAFiBrKVlTCVmMQ7ajitj1iMlqEAa36xSpU6ROsTrF6hStU7ROOeoCUheQuoDVBawuoHUBrQscdSGpC0ldyOpCVhfSupDWhY66iNRFpC5idRGri2hdROsiR11M6mJSF7O6mNXFtC6mdbGjLiF1CalLWF3C6hJal9C6xFGXkrqU1KWsLmV1Ka1LaV3qqMtIXUbqMlaXsbqM1mW0LnPUwWfHsc%2FOY58eyD49kX1%2BJPv8TPZdkdQMigZXg7Nxw40bcLjkAKMDzA5QPED1AOcD3A%2B4AAETBIwQUENAEQFXBJwRuBwBgwRMElBKQC0BxwRcE7g4AfMEDBRQUUBJATcFHBW4VAFjBcwVUFhAZQGnBdwWuHAB0wWMF1BfQIEBFwacGLiMAUMGTBlQZkCdAYcGXBq4qAGzBgwbUG1AuQH3BhwcuMRRTBzFxFFUHEXFUVwcxcVRZ3GWd%2BffcHIhi3GUWs4Li3Vn6%2BlPKV6mizdmKKtBC%2FRHMZq2Ke%2FX3eu6W3fz9NvMoSltrQV8%2F%2BP99HifH73TWuj7%2FXFerKtmV1stVHhe2efDrum08EX%2BaM28VDZj3%2BbPWmxaUzzMS%2BapGratOXhH%2FT73VuWNfV403U4L%2F1I1%2FQY7VdWNreaRSovOHIa8v0xdv8M%2BL8t5k6g%2FCpzjTq9gTX9%2BK%2F71eltt7fUTp21PO5qxsY3ptBhtUzw8zxda01%2F2yIuH3WAeu1KLD9vtdl58qgbbFHnr5W2z67TYGGvN%2Fn1r3eaj9Yq6acs5%2Furx9TflDdPH%2FH%2FacD3%2F95frvb3UP9fIhfw0%2FVfIhbR1ta%2Bklu20tXz9Aw%3D%3D&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>table,\\nth,\\ntd {\\n  border: 1px solid;\\n}\\n\\ntable {\\n  width: 100%;\\n  max-width: 400px;\\n  height: 240px;\\n  margin: 0 auto;\\n  display: block;\\n  overflow-x: auto;\\n  border-spacing: 0;\\n}\\n\\ntbody {\\n  white-space: nowrap;\\n}\\n\\nth,\\ntd {\\n  padding: 5px 10px;\\n  border-top-width: 0;\\n  border-left-width: 0;\\n}\\n\\nth {\\n  position: sticky;\\n  top: 0;\\n  background: #fff;\\n  vertical-align: bottom;\\n}\\n\\nth:last-child,\\ntd:last-child {\\n  border-right-width: 0;\\n}\\n\\ntr:last-child td {\\n  border-bottom-width: 0;\\n}\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">结果\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%97%A0%E9%9A%9C%E7%A2%8D%E8%80%83%E8%99%91\\\">无障碍考虑\u003C/a>\u003C/h2>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%A0%87%E9%A2%98\\\">标题\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">提供一个清晰简洁地描述了表格的目的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/caption\\\">\u003Ccode>&lt;caption&gt;\u003C/code>\u003C/a>&nbsp;元素，有助于人们决定是否需要阅读表格的其他内容或跳过它。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这有助于借助辅助技术（如屏幕阅读器）进行导航的人、经历低视力状况的人和有认知问题的人。\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/Structuring_content/Table_accessibility#%E4%BD%BF%E7%94%A8_caption_%E4%B8%BA%E4%BD%A0%E7%9A%84%E8%A1%A8%E6%A0%BC%E5%A2%9E%E5%8A%A0%E4%B8%80%E4%B8%AA%E6%A0%87%E9%A2%98\\\">MDN：使用 &lt;caption> 元素为表格添加标题\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/WAI/tutorials/tables/caption-summary/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">标题和总结 • Tables • W3C WAI Web Accessibility Tutorials\u003C/a>\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E7%A1%AE%E5%AE%9A%E8%A1%8C%E5%92%8C%E5%88%97%E7%9A%84%E8%8C%83%E5%9B%B4\\\">确定行和列的范围\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">头部元素的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/th#scope\\\">\u003Ccode>scope\u003C/code>\u003C/a>&nbsp;属性在简单情况下是多余的，因为范围是推断出来的。然而，一些辅助技术可能无法做出正确的推断，所以指定头的范围可能会改善用户体验。在复杂的表格中，可以指定范围以提供与标题相关的单元格的必要信息。\u003C/p>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">示例\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;table&gt;\\n  &lt;caption&gt;\\n    表格名称和值\\n  &lt;/caption&gt;\\n  &lt;tbody&gt;\\n    &lt;tr&gt;\\n      &lt;th scope=\\\"col\\\"&gt;名称&lt;/th&gt;\\n      &lt;th scope=\\\"col\\\"&gt;HEX&lt;/th&gt;\\n      &lt;th scope=\\\"col\\\"&gt;HSLa&lt;/th&gt;\\n      &lt;th scope=\\\"col\\\"&gt;RGBa&lt;/th&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;th scope=\\\"row\\\"&gt;Teal&lt;/th&gt;\\n      &lt;td&gt;&lt;code&gt;#51F6F6&lt;/code&gt;&lt;/td&gt;\\n      &lt;td&gt;&lt;code&gt;hsla(180, 90%, 64%, 1)&lt;/code&gt;&lt;/td&gt;\\n      &lt;td&gt;&lt;code&gt;rgba(81, 246, 246, 1)&lt;/code&gt;&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;th scope=\\\"row\\\"&gt;Goldenrod&lt;/th&gt;\\n      &lt;td&gt;&lt;code&gt;#F6BC57&lt;/code&gt;&lt;/td&gt;\\n      &lt;td&gt;&lt;code&gt;hsla(38, 90%, 65%, 1)&lt;/code&gt;&lt;/td&gt;\\n      &lt;td&gt;&lt;code&gt;rgba(246, 188, 87, 1)&lt;/code&gt;&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tbody&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">在&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/th\\\">\u003Ccode>&lt;th&gt;\u003C/code>\u003C/a>&nbsp;元素上提供声明&nbsp;\u003Ccode>scope=\\\"col\\\"\u003C/code>，将有助于描述该单元格处于一列的顶部。在&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/th\\\">\u003Ccode>&lt;th&gt;\u003C/code>\u003C/a>&nbsp;元素上提供声明&nbsp;\u003Ccode>scope=\\\"row\\\"\u003C/code>，将有助于描述该单元格是某一行的第一个。\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/Structuring_content/Table_accessibility#%E5%AF%B9%E4%BA%8E%E8%A7%86%E5%8A%9B%E5%8F%97%E6%8D%9F%E7%9A%84%E7%94%A8%E6%88%B7%E7%9A%84%E8%A1%A8%E6%A0%BC\\\">MDN：对于视力受损用户的表格\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/WAI/tutorials/tables/two-headers/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">有两个头部的表格 • Tables • W3C WAI Web Accessibility Tutorials\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/WAI/tutorials/tables/irregular/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">有不标准头部的表格 • Tables • W3C WAI Web Accessibility Tutorials\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/TR/WCAG20-TECHS/H63.html\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">H63: 使用范围属性来关联数据表中的标题单元和数据单元 | W3C Techniques for WCAG 2.0\u003C/a>\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%A4%8D%E6%9D%82%E8%A1%A8%E6%A0%BC\\\">复杂表格\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">诸如屏幕阅读器等辅助技术可能难以解析那些复杂到标题单元不能以严格的水平或垂直方式关联的表格。这通常由&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/td#colspan\\\">\u003Ccode>colspan\u003C/code>\u003C/a>&nbsp;和&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/td#rowspan\\\">\u003Ccode>rowspan\u003C/code>\u003C/a>&nbsp;属性的存在表示。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">理想情况下，考虑用其他方式来展示表格的内容，包括将其分解成一系列较小的、相关的表格，而不必依赖&nbsp;\u003Ccode>colspan\u003C/code>&nbsp;和&nbsp;\u003Ccode>rowspan\u003C/code>&nbsp;属性。除了帮助使用辅助技术的人理解表的内容外，这也可能有利于有认知障碍的人，这些人可能难以理解表的布局所描述的关联。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">如果表格不能被拆开，使用&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Global_attributes#id\\\">\u003Ccode>id\u003C/code>\u003C/a>&nbsp;和&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/td#headers\\\">\u003Ccode>headers\u003C/code>\u003C/a>&nbsp;属性的组合，以编程方式将每个表格单元与该单元所关联的标题相关联。\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/Structuring_content/Table_accessibility#%E5%AF%B9%E4%BA%8E%E8%A7%86%E5%8A%9B%E5%8F%97%E6%8D%9F%E7%9A%84%E7%94%A8%E6%88%B7%E7%9A%84%E8%A1%A8%E6%A0%BC\\\">MDN：对于视力受损用户的表格\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/WAI/tutorials/tables/multi-level/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">有多级头部的表格 • Tables • W3C WAI Web Accessibility Tutorials\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/TR/WCAG20-TECHS/H43.html\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">H43: 使用 id 和 headers 属性将数据单元与数据表中的标题单元联系起来 | Techniques for W3C WCAG 2.0\u003C/a>\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E8%A7%84%E8%8C%83\\\">规范\u003C/a>\u003C/h2>\",\"fallbackText\":\"id\\nAs lawmakers continue debating rail policy, a new video from US Policy examines an important question: Do additional federal regulations make railroads safer, or do they primarily increase costs and reduce efficiency?\\nUsing a model train set to illustrate the point, the video explores how each new mandate can add friction to the freight system through compliance costs, staffing requirements, and restrictions on innovation.\\nThe video highlights concerns with provisions often associated with the Railway Safety Act, including two-person crew mandates and expanded regulatory requirements. While advocates argue these measures are necessary to prevent accidents, the video notes that freight rail companies already face significant financial incentives to prioritize safety, including the costs associated with derailments, insurance claims, cargo losses, and reputational damage.\\nThe video also places the debate in historical context, noting that rail deregulation efforts beginning under President Jimmy Carter helped create a more efficient and financially sustainable freight rail system. Greater flexibility allowed railroads to invest in infrastructure, improve service, and strengthen supply chains.\\nThe broader economic implications are significant. When rail transportation becomes less efficient or more expensive, freight often shifts to trucks, increasing highway congestion, road wear, and overall transportation costs.\\nUltimately, the video argues that the debate should not be framed as safety versus no safety. Instead, policymakers should focus on identifying the most effective ways to improve safety while preserving the flexibility, innovation, and efficiency that make freight rail an essential part of the American economy.\\nKey Takeaway\\nThe question is not whether railroads should be safe—they must be. The question is whether one-size-fits-all federal mandates are the best way to achieve that goal, or whether they risk increasing costs and slowing innovation without delivering meaningful safety improvements.\\nHTML \u003Ctable> 元素表示表格数据——即在一个由包含数据的行和列组成的二维表格中呈现的信息。\\n本文内容\\n尝试一下\\n属性\\n示例\\n无障碍考虑\\n规范\\n浏览器兼容性\\n参见\\nRemove identity bottlenecks for AI agentsLet your agents log in, call APIs, and connect to MCP servers securely with Auth0.Start Building广告\\n尝试一下\\nHTML Demo: \u003Ctable>\\n重置HTMLCSS\\n1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n10\\n11\\n12\\n13\\n14\\n15\\n16\\n17\\n18\\n19\\n20\\n21\\n22\\n23\\n24\\n25\\n26\\n27\\n28\\n29\\n30\\n31\\n32\\n33\\n34\\n35\\n36\\n37\\n38\\n39\\n40\\n41\\n\u003Ctable>\\n\u003Ccaption>\\nFront-end web developer course 2021\\n\u003C/caption>\\n\u003Cthead>\\n\u003Ctr>\\n\u003Cth scope=”col”>Person\u003C/th>\\n\u003Cth scope=”col”>Most interest in\u003C/th>\\n\u003Cth scope=”col”>Age\u003C/th>\\n\u003C/tr>\\n\u003C/thead>\\n\u003Ctbody>\\n\u003Ctr>\\n\u003Cth scope=”row”>Chris\u003C/th>\\n\u003Ctd>HTML tables\u003C/td>\\n\u003Ctd>22\u003C/td>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Cth scope=”row”>Dennis\u003C/th>\\n\u003Ctd>Web accessibility\u003C/td>\\n\u003Ctd>45\u003C/td>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Cth scope=”row”>Sarah\u003C/th>\\n\u003Ctd>JavaScript frameworks\u003C/td>\\n\u003Ctd>29\u003C/td>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Cth scope=”row”>Karen\u003C/th>\\n\u003Ctd>Web performance\u003C/td>\\n\u003Ctd>36\u003C/td>\\n\u003C/tr>\\n\u003C/tbody>\\n\u003Ctfoot>\\n\u003Ctr>\\n\u003Cth scope=”row” colspan=”2″>Average age\u003C/th>\\n\u003Ctd>33\u003C/td>\\n\u003C/tr>\\n\u003C/tfoot>\\n\u003C/table>\\n输出\\nhttps://848a5d79-449d-4f60-8e5b-06a6ee7ad970.mdnplay.dev/runner.html?uuid=848a5d79-449d-4f60-8e5b-06a6ee7ad970&state=nVTbahsxEP2VQU8xeGtn7aTpZmMoLaW0DRRS6Mu%2BaKXZXTWytEgTXxry70WyHDtxLiUPC9Lczjmjmb1lHc01K1hJvNY4qwxAKXhPypp4AfjirKEMjYQl1iBxgdr26EDYG%2BcR8nF%2BHLNG%2B2kldchlqlCSS6foAC9sjxcVE1ZXbPYTnbemHFH3QtCl9QTKEDqMh1fCP7a4F1GOEoFg29IqqbZy%2FQpDZ5cVm33qnPKPEOXs66%2FLHxC7FnzygS%2FP90z38K%2FhfEZjngD6jTVwIdB7VSutaH0ANz15C9wVd7w7QPvGF%2FxKONUTNI7PcWnd9RMCP7wF8Tt3%2BPjpNvp6dI11c24EHmBNTp%2FCKke7ByypsZb%2BhwIIq33PzUXF8jAnC3S8ReAP5iXBTp6BTVjlaLsybMiE96xg0QC3Ia62TqLLhNWa9x4L2J7Od94C8n4F3molwbX10fF0DOkbxLAmbF7D50qvC%2FDc%2BMyjU83O59VfLGD87szhPFo1EqHLfM%2BFMm0Bx%2F3qvDJ3lalMWs8NvXTJvJJYQG2J7KZAz6XcZI5jagJaomo7CpFabgvGXRpWJjYkqebiunX2xsig3Loi6srzM8inY8inJ4NdcsiU%2B82KbPfbcTqG9A0ecjvrV1t%2Bm2Ky0NxTZpuM1n16AcIVZVyr1hQgMPw67sPD4MAMyBWGum3WES7QDF7UMXkP%2BSRoyXc6onjqDjFd6NijsKT3mZayIfsTxogNmcSG32gKN7XKiNc1SjZk1OEcWcF0SGV3%2FwA%3D\\n内容分类 | 流式内容 | \\n允许的内容 | 按照这个顺序：一个可选的 \u003Ccaption> 元素零个或多个的 \u003Ccolgroup> 元素一个可选的 \u003Cthead> 元素下列任意一个：零个或多个 \u003Ctbody>零个或多个 \u003Ctr>一个可选的 \u003Ctfoot> 元素 | \\n标签省略 | 不允许，开始标签和结束标签都不能省略。 | \\n允许的父元素 | 任何支持流式内容的元素 | \\n隐含的 ARIA 角色 | table | \\n允许的 ARIA 角色 | 任意 | \\nDOM 接口 | HTMLTableElement | \\n属性\\n此元素包含所有的全局属性。\\n弃用的属性\\nalign \\n这个枚举属性指定了包含在文档中的表格必须如何对齐。可能含有如下值：\\nleft：表格将在文档左侧显示；\\ncenter：表格将在文档中央显示；\\nright：表格将在文档右侧显示；\\n设置 margin-left、margin-right 为 auto，或者将 margin 设置为 0 auto 来实现类似于 align 属性的效果。bgcolor \\n表格的背景颜色。它是一个 6 位的十六进制 RGB 编码，以 '#' 作为前缀。当然也可以使用下面已经被预先定义的颜色关键字。\\n为了实现相似的效果，可以使用 CSS 属性 background-color。border \\n这个整型属性定义了环绕表格外部的框的大小。如果设置为 0，这意味着 frame 属性被设置为空。\\n为了实现相似的效果，可以使用 CSS 简写属性 border。cellpadding \\n这个属性定义了一个单元格的内容和它的边框之间的空间，无论显示与否。如果 cellpadding 的长度是用像素定义的，这个像素大小的空间将被应用到单元格内容的所有四边。如果长度是用百分比值定义的，内容将被居中，总的垂直空间（顶部和底部）将代表这个值。对于总的水平空间（左边和右边）也是如此。\\n为了实现相似的效果，可以在 \u003Ctable> 元素上使用属性值为 collapse 的 border-collapse 属性，在 \u003Ctd> 元素上使用属性 padding。cellspacing \\n这个属性定义了水平和垂直方向上两个单元格之间空间的大小，使用百分比或像素，包括了表格的顶部与第一行的单元格、表的左边与第一列单元格、表的右边与最后一列的单元格、表的底部与最后一行单元格之间的空间。\\n为了实现相似的效果，可以在 \u003Ctable> 元素上使用 CSS 属性 border-spacing。border-spacing 在 border-collapse 设置为 collapse 时将无效。frame \\n这个枚举属性定义了包围在表格周围的框架的哪个边必须显示。\\n为了实现相似的效果，可以使用 CSS 属性 border-style 和 border-width。rules \\n这个枚举属性定义了在一个表格中分隔线的显示位置。它可以有以下值：\\nnone，这表明没有分隔线将被显示；这是默认的值；\\ngroups，这将使得分隔线只显示在行组（row group，通过 \u003Cthead>、\u003Ctbody> 和 \u003Ctfoot> 元素定义）和列组（column group，通过 \u003Ccol> 和 \u003Ccolgroup> 元素定义）之间\\nrows，这将使得分隔线在行之间显示；\\ncols，这将使得分隔线在列之间显示；\\nall，这将使得分隔线在列和行之间显示；\\n为了实现相似的效果，可以在适当的 \u003Cthead>、\u003Ctbody>、\u003Ctfoot>、\u003Ccol> 或 \u003Ccolgroup> 元素上使用 border 属性。summary \\n该属性定义了概括表格内容的替代文本。请使用 \u003Ccaption> 元素代替。width \\n该属性定义了表格的宽度。请使用 CSS width 属性代替。\\n示例\\n简单的表格\\nhtml复制运行\\n\u003Ctable>\\n\u003Ctr>\\n\u003Ctd>John\u003C/td>\\n\u003Ctd>Doe\u003C/td>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Ctd>Jane\u003C/td>\\n\u003Ctd>Doe\u003C/td>\\n\u003C/tr>\\n\u003C/table>\\n更多简单示例\\nhtml复制运行\\n\u003Cp>含有表头的表格\u003C/p>\\n\u003Ctable>\\n\u003Ctr>\\n\u003Cth>姓\u003C/th>\\n\u003Cth>名\u003C/th>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Ctd>Doe\u003C/td>\\n\u003Ctd>John\u003C/td>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Ctd>Doe\u003C/td>\\n\u003Ctd>Jane\u003C/td>\\n\u003C/tr>\\n\u003C/table>\\n\u003Cp>含有表头、表尾和表格主体的表格\u003C/p>\\n\u003Ctable>\\n\u003Cthead>\\n\u003Ctr>\\n\u003Cth>表头内容 1\u003C/th>\\n\u003Cth>表头内容 2\u003C/th>\\n\u003C/tr>\\n\u003C/thead>\\n\u003Ctbody>\\n\u003Ctr>\\n\u003Ctd>表格主体内容 1\u003C/td>\\n\u003Ctd>表格主体内容 2\u003C/td>\\n\u003C/tr>\\n\u003C/tbody>\\n\u003Ctfoot>\\n\u003Ctr>\\n\u003Ctd>表尾内容 1\u003C/td>\\n\u003Ctd>表尾内容 2\u003C/td>\\n\u003C/tr>\\n\u003C/tfoot>\\n\u003C/table>\\n\u003Cp>有列组的表格\u003C/p>\\n\u003Ctable>\\n\u003Ccolgroup span=\\\"4\\\">\u003C/colgroup>\\n\u003Ctr>\\n\u003Cth>国家\u003C/th>\\n\u003Cth>首都\u003C/th>\\n\u003Cth>人口数量\u003C/th>\\n\u003Cth>语言\u003C/th>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Ctd>美国\u003C/td>\\n\u003Ctd>华盛顿\u003C/td>\\n\u003Ctd>3.09 亿\u003C/td>\\n\u003Ctd>英语\u003C/td>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Ctd>瑞典\u003C/td>\\n\u003Ctd>斯德哥尔摩\u003C/td>\\n\u003Ctd>900 万\u003C/td>\\n\u003Ctd>瑞典语\u003C/td>\\n\u003C/tr>\\n\u003C/table>\\n\u003Cp>有列组和列的表格\u003C/p>\\n\u003Ctable>\\n\u003Ccolgroup>\\n\u003Ccol style=\\\"background-color: #0f0\\\" />\\n\u003Ccol span=\\\"2\\\" />\\n\u003C/colgroup>\\n\u003Ctr>\\n\u003Cth>青柠\u003C/th>\\n\u003Cth>柠檬\u003C/th>\\n\u003Cth>橘子\u003C/th>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Ctd>绿色\u003C/td>\\n\u003Ctd>黄色\u003C/td>\\n\u003Ctd>橙色\u003C/td>\\n\u003C/tr>\\n\u003C/table>\\n\u003Cp>有标题的简单表格\u003C/p>\\n\u003Ctable>\\n\u003Ccaption>\\n美妙的标题\\n\u003C/caption>\\n\u003Ctr>\\n\u003Ctd>美妙的数据\u003C/td>\\n\u003C/tr>\\n\u003C/table>\\n表格排序\\n对表格的行进行排序\\n没有原生的方法对 HTML 表格的行（\u003Ctr>元素）进行排序。但是通过使用 Array.prototype.slice()、Array.prototype.sort()、Node. removeChild() 和 Node.appendChild()，你可以实现你自己的 sort() 函数来对 \u003Ctr> 元素的HTMLCollection 进行排序。\\n在下面的示例中，你可以看到具体如何这样做。我们把这个自定义方法附加到 \u003Ctbody> 元素上，这样它就会按照数值增加的顺序对表格单元格进行排序，并更新显示内容以适应需要。\\nHTML\\nhtml复制运行\\n\u003Ctable>\\n\u003Ctbody>\\n\u003Ctr>\\n\u003Ctd>3\u003C/td>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Ctd>2\u003C/td>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Ctd>1\u003C/td>\\n\u003C/tr>\\n\u003C/tbody>\\n\u003C/table>\\nJavaScript\\njs复制运行\\nHTMLTableSectionElement.prototype.sort = function (cb) {\\nArray.from(this.rows)\\n.sort(cb)\\n.forEach((e) => this.appendChild(this.removeChild(e)));\\n};\\ndocument\\n.querySelector(\\\"table\\\")\\n.tBodies[0].sort((a, b) => a.textContent.localeCompare(b.textContent));\\n结果\\n通过点击 th 元素对行进行排序\\n下面的示例给 document 中每个 \u003Ctable> 的每个 \u003Cth> 元素添加了一个事件处理程序；它对所有 \u003Ctbody> 的行进行排序，排序的基础是行中包含的 td 单元格。\\n备注：这个解决方案假设 \u003Ctd> 元素是由原始文本填充的，没有子元素。\\nHTML\\nhtml复制运行\\n\u003Ctable>\\n\u003Cthead>\\n\u003Ctr>\\n\u003Cth>数字\u003C/th>\\n\u003Cth>字母\u003C/th>\\n\u003C/tr>\\n\u003C/thead>\\n\u003Ctbody>\\n\u003Ctr>\\n\u003Ctd>3\u003C/td>\\n\u003Ctd>A\u003C/td>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Ctd>2\u003C/td>\\n\u003Ctd>B\u003C/td>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Ctd>1\u003C/td>\\n\u003Ctd>C\u003C/td>\\n\u003C/tr>\\n\u003C/tbody>\\n\u003C/table>\\nJavaScript\\njs复制运行\\nconst allTables = document.querySelectorAll(\\\"table\\\");\\nfor (const table of allTables) {\\nconst tBody = table.tBodies[0];\\nconst rows = Array.from(tBody.rows);\\nconst headerCells = table.tHead.rows[0].cells;\\nfor (const th of headerCells) {\\nconst cellIndex = th.cellIndex;\\nth.addEventListener(\\\"click\\\", () => {\\nrows.sort((tr1, tr2) => {\\nconst tr1Text = tr1.cells[cellIndex].textContent;\\nconst tr2Text = tr2.cells[cellIndex].textContent;\\nreturn tr1Text.localeCompare(tr2Text);\\n});\\ntBody.append(...rows);\\n});\\n}\\n}\\n结果\\n在小空间展示大型表格\\n网络上表格的一个普遍问题是，当内容量很大时，它们在小屏幕上的原生效果并不好，而且使它们可滚动的方法并不明显，特别是当标记可能来自 CMS，无法添加一个包装器时。\\n这个例子提供了一种在小空间中显示表格的方法。我们隐藏了 HTML 内容，因为它非常大，而且没有什么特别之处。在这个例子中，研究其 CSS 代码更有用。\\n当查看这些样式时，你会注意到表格的 display 属性已被设置为 block。虽然允许滚动，但表格失去了一些完整性，而且表格单元格会尽量变小。为了缓解这个问题，我们在 \u003Ctbody> 上将 white-space 设置为 nowrap。然而，我们没有对 \u003Cthead> 进行设置，以避免长标题迫使列的宽度超过显示数据所需的宽度。\\n为了在向下滚动时保持表头在页面上，我们在 \u003Cth> 元素上将 position 设置为 sticky。注意，我们没有将 border-collapse 设置为 collapse，因为如果我们这样做，表头就不能与表格的其他部分正确分开。\\ncss复制运行\\ntable,\\nth,\\ntd {\\nborder: 1px solid;\\n}\\ntable {\\nwidth: 100%;\\nmax-width: 400px;\\nheight: 240px;\\nmargin: 0 auto;\\ndisplay: block;\\noverflow-x: auto;\\nborder-spacing: 0;\\n}\\ntbody {\\nwhite-space: nowrap;\\n}\\nth,\\ntd {\\npadding: 5px 10px;\\nborder-top-width: 0;\\nborder-left-width: 0;\\n}\\nth {\\nposition: sticky;\\ntop: 0;\\nbackground: #fff;\\nvertical-align: bottom;\\n}\\nth:last-child,\\ntd:last-child {\\nborder-right-width: 0;\\n}\\ntr:last-child td {\\nborder-bottom-width: 0;\\n}\\n结果\\n无障碍考虑\\n标题\\n提供一个清晰简洁地描述了表格的目的 \u003Ccaption> 元素，有助于人们决定是否需要阅读表格的其他内容或跳过它。\\n这有助于借助辅助技术（如屏幕阅读器）进行导航的人、经历低视力状况的人和有认知问题的人。\\nMDN：使用 \u003Ccaption> 元素为表格添加标题\\n标题和总结 • Tables • W3C WAI Web Accessibility Tutorials\\n确定行和列的范围\\n头部元素的 scope 属性在简单情况下是多余的，因为范围是推断出来的。然而，一些辅助技术可能无法做出正确的推断，所以指定头的范围可能会改善用户体验。在复杂的表格中，可以指定范围以提供与标题相关的单元格的必要信息。\\n示例\\nhtml复制\\n\u003Ctable>\\n\u003Ccaption>\\n表格名称和值\\n\u003C/caption>\\n\u003Ctbody>\\n\u003Ctr>\\n\u003Cth scope=\\\"col\\\">名称\u003C/th>\\n\u003Cth scope=\\\"col\\\">HEX\u003C/th>\\n\u003Cth scope=\\\"col\\\">HSLa\u003C/th>\\n\u003Cth scope=\\\"col\\\">RGBa\u003C/th>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Cth scope=\\\"row\\\">Teal\u003C/th>\\n\u003Ctd>\u003Ccode>#51F6F6\u003C/code>\u003C/td>\\n\u003Ctd>\u003Ccode>hsla(180, 90%, 64%, 1)\u003C/code>\u003C/td>\\n\u003Ctd>\u003Ccode>rgba(81, 246, 246, 1)\u003C/code>\u003C/td>\\n\u003C/tr>\\n\u003Ctr>\\n\u003Cth scope=\\\"row\\\">Goldenrod\u003C/th>\\n\u003Ctd>\u003Ccode>#F6BC57\u003C/code>\u003C/td>\\n\u003Ctd>\u003Ccode>hsla(38, 90%, 65%, 1)\u003C/code>\u003C/td>\\n\u003Ctd>\u003Ccode>rgba(246, 188, 87, 1)\u003C/code>\u003C/td>\\n\u003C/tr>\\n\u003C/tbody>\\n\u003C/table>\\n在 \u003Cth> 元素上提供声明 scope=\\\"col\\\"，将有助于描述该单元格处于一列的顶部。在 \u003Cth> 元素上提供声明 scope=\\\"row\\\"，将有助于描述该单元格是某一行的第一个。\\nMDN：对于视力受损用户的表格\\n有两个头部的表格 • Tables • W3C WAI Web Accessibility Tutorials\\n有不标准头部的表格 • Tables • W3C WAI Web Accessibility Tutorials\\nH63: 使用范围属性来关联数据表中的标题单元和数据单元 | W3C Techniques for WCAG 2.0\\n复杂表格\\n诸如屏幕阅读器等辅助技术可能难以解析那些复杂到标题单元不能以严格的水平或垂直方式关联的表格。这通常由 colspan 和 rowspan 属性的存在表示。\\n理想情况下，考虑用其他方式来展示表格的内容，包括将其分解成一系列较小的、相关的表格，而不必依赖 colspan 和 rowspan 属性。除了帮助使用辅助技术的人理解表的内容外，这也可能有利于有认知障碍的人，这些人可能难以理解表的布局所描述的关联。\\n如果表格不能被拆开，使用 id 和 headers 属性的组合，以编程方式将每个表格单元与该单元所关联的标题相关联。\\nMDN：对于视力受损用户的表格\\n有多级头部的表格 • Tables • W3C WAI Web Accessibility Tutorials\\nH43: 使用 id 和 headers 属性将数据单元与数据表中的标题单元联系起来 | Techniques for W3C WCAG 2.0\\n规范\",\"html\":\"\u003Cp class=\\\"wp-block-paragraph\\\">id\u003C/p>\\n\\n\\n\u003Cdiv class=\\\"wp-block-image\\\">\\n\u003Cfigure class=\\\"alignright is-resized\\\">\u003Ca class=\\\"td-modal-image\\\" href=\\\"https://uspolicy.org/wp-content/uploads/2026/06/maxresdefault.jpg\\\">\u003Cimg decoding=\\\"async\\\" src=\\\"https://uspolicy.org/wp-content/uploads/2026/06/maxresdefault-696x392.jpg\\\" alt=\\\"\\\" style=\\\"width:402px;height:auto\\\" title=\\\"maxresdefault\\\"/>\u003C/a>\u003C/figure>\\n\u003C/div>\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">As lawmakers continue debating rail policy, a new video from US Policy examines an important question: Do additional federal regulations make railroads safer, or do they primarily increase costs and reduce efficiency?\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">Using a model train set to illustrate the point, the video explores how each new mandate can add friction to the freight system through compliance costs, staffing requirements, and restrictions on innovation.\u003C/p>\\n\\n\\n\\n\u003Cfigure class=\\\"wp-block-embed\\\">\u003Cdiv class=\\\"wp-block-embed__wrapper\\\">\u003Ciframe src=\\\"https://www.youtube.com/embed/oaIk7TD5Yjg\\\" loading=\\\"lazy\\\" allow=\\\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\\\" referrerpolicy=\\\"strict-origin-when-cross-origin\\\" allowfullscreen>\u003C/iframe>\u003C/div>\u003C/figure>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">The video highlights concerns with provisions often associated with the Railway Safety Act, including two-person crew mandates and expanded regulatory requirements. While advocates argue these measures are necessary to prevent accidents, the video notes that freight rail companies already face significant financial incentives to prioritize safety, including the costs associated with derailments, insurance claims, cargo losses, and reputational damage.\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">The video also places the debate in historical context, noting that rail deregulation efforts beginning under President Jimmy Carter helped create a more efficient and financially sustainable freight rail system. Greater flexibility allowed railroads to invest in infrastructure, improve service, and strengthen supply chains.\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">The broader economic implications are significant. When rail transportation becomes less efficient or more expensive, freight often shifts to trucks, increasing highway congestion, road wear, and overall transportation costs.\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">Ultimately, the video argues that the debate should not be framed as safety versus no safety. Instead, policymakers should focus on identifying the most effective ways to improve safety while preserving the flexibility, innovation, and efficiency that make freight rail an essential part of the American economy.\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">Key Takeaway\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">The question is not whether railroads should be safe—they must be. The question is whether one-size-fits-all federal mandates are the best way to achieve that goal, or whether they risk increasing costs and slowing innovation without delivering meaningful safety improvements.\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML\\\">HTML\u003C/a>&nbsp;\u003Cstrong>\u003Ccode>&lt;table&gt;\u003C/code>\u003C/strong>&nbsp;元素表示表格数据——即在一个由包含数据的行和列组成的二维表格中呈现的信息。\u003C/p>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">本文内容\u003C/h2>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%B0%9D%E8%AF%95%E4%B8%80%E4%B8%8B\\\">尝试一下\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%B1%9E%E6%80%A7\\\">属性\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E7%A4%BA%E4%BE%8B\\\">示例\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%97%A0%E9%9A%9C%E7%A2%8D%E8%80%83%E8%99%91\\\">无障碍考虑\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E8%A7%84%E8%8C%83\\\">规范\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%B5%8F%E8%A7%88%E5%99%A8%E5%85%BC%E5%AE%B9%E6%80%A7\\\">浏览器兼容性\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%8F%82%E8%A7%81\\\">参见\u003C/a>\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Ca target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\" href=\\\"https://developer.mozilla.org/pong/click?code=aHR0cHM6Ly9zcnYuYnV5c2VsbGFkcy5jb20vYWRzL2NsaWNrL3gvR1RORDQyN1lDVlNJNUtKTkY2U0xZS1FVRlQ3SUMyM1lDNlNETFozSkNBQURDS0pFQ0VZSUVLSktDNlNJTEtRWUNBWURUNTNNQ1RTSTYyN1VDVzdJSzVRTUhFWUk1NTNMQ0E3REMySkVDVE5DWUJaNTJL.iT%2Bk4Hf27Db%2BR0aZIZJApRIJqL8athAHxSvjV2TQAhc%3D&version=2\\\">\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Ca target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\" href=\\\"https://developer.mozilla.org/pong/click?code=aHR0cHM6Ly9zcnYuYnV5c2VsbGFkcy5jb20vYWRzL2NsaWNrL3gvR1RORDQyN1lDVlNJNUtKTkY2U0xZS1FVRlQ3SUMyM1lDNlNETFozSkNBQURDS0pFQ0VZSUVLSktDNlNJTEtRWUNBWURUNTNNQ1RTSTYyN1VDVzdJSzVRTUhFWUk1NTNMQ0E3REMySkVDVE5DWUJaNTJL.iT%2Bk4Hf27Db%2BR0aZIZJApRIJqL8athAHxSvjV2TQAhc%3D&version=2\\\">\u003Cstrong>Remove identity bottlenecks for AI agents\u003C/strong>Let your agents log in, call APIs, and connect to MCP servers securely with Auth0.Start Building\u003C/a>\u003Ca href=\\\"https://developer.mozilla.org/en-US/advertising\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">广告\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%B0%9D%E8%AF%95%E4%B8%80%E4%B8%8B\\\">尝试一下\u003C/a>\u003C/h2>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">HTML Demo: &lt;table&gt;\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">重置HTMLCSS\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">1\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">2\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">3\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">4\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">5\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">6\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">7\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">8\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">9\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">10\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">11\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">12\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">13\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">14\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">15\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">16\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">17\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">18\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">19\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">20\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">21\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">22\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">23\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">24\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">25\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">26\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">27\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">28\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">29\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">30\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">31\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">32\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">33\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">34\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">35\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">36\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">37\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">38\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">39\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">40\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">41\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;table&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;caption&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">Front-end web developer course 2021\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/caption&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;thead&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;col&#8221;&gt;Person&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;col&#8221;&gt;Most interest in&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;col&#8221;&gt;Age&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/thead&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tbody&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221;&gt;Chris&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;HTML tables&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;22&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221;&gt;Dennis&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;Web accessibility&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;45&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221;&gt;Sarah&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;JavaScript frameworks&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;29&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221;&gt;Karen&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;Web performance&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;36&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tbody&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tfoot&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221; colspan=&#8221;2&#8243;&gt;Average age&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;33&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tfoot&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/table&gt;\u003C/p>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">输出\u003C/h4>\\n\\n\\n\\n\u003Cfigure class=\\\"wp-block-embed\\\">\u003Cdiv class=\\\"wp-block-embed__wrapper\\\">\\nhttps://848a5d79-449d-4f60-8e5b-06a6ee7ad970.mdnplay.dev/runner.html?uuid=848a5d79-449d-4f60-8e5b-06a6ee7ad970&#038;state=nVTbahsxEP2VQU8xeGtn7aTpZmMoLaW0DRRS6Mu%2BaKXZXTWytEgTXxry70WyHDtxLiUPC9Lczjmjmb1lHc01K1hJvNY4qwxAKXhPypp4AfjirKEMjYQl1iBxgdr26EDYG%2BcR8nF%2BHLNG%2B2kldchlqlCSS6foAC9sjxcVE1ZXbPYTnbemHFH3QtCl9QTKEDqMh1fCP7a4F1GOEoFg29IqqbZy%2FQpDZ5cVm33qnPKPEOXs66%2FLHxC7FnzygS%2FP90z38K%2FhfEZjngD6jTVwIdB7VSutaH0ANz15C9wVd7w7QPvGF%2FxKONUTNI7PcWnd9RMCP7wF8Tt3%2BPjpNvp6dI11c24EHmBNTp%2FCKke7ByypsZb%2BhwIIq33PzUXF8jAnC3S8ReAP5iXBTp6BTVjlaLsybMiE96xg0QC3Ia62TqLLhNWa9x4L2J7Od94C8n4F3molwbX10fF0DOkbxLAmbF7D50qvC%2FDc%2BMyjU83O59VfLGD87szhPFo1EqHLfM%2BFMm0Bx%2F3qvDJ3lalMWs8NvXTJvJJYQG2J7KZAz6XcZI5jagJaomo7CpFabgvGXRpWJjYkqebiunX2xsig3Loi6srzM8inY8inJ4NdcsiU%2B82KbPfbcTqG9A0ecjvrV1t%2Bm2Ky0NxTZpuM1n16AcIVZVyr1hQgMPw67sPD4MAMyBWGum3WES7QDF7UMXkP%2BSRoyXc6onjqDjFd6NijsKT3mZayIfsTxogNmcSG32gKN7XKiNc1SjZk1OEcWcF0SGV3%2FwA%3D\\n\u003C/div>\u003C/figure>\\n\\n\\n\\n\u003Cfigure class=\\\"wp-block-table\\\">\u003Ctable class=\\\"has-fixed-layout\\\">\u003Ctbody>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Content_categories\\\">内容分类\u003C/a>\u003C/th>\u003Ctd>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Content_categories#%E6%B5%81%E5%BC%8F%E5%86%85%E5%AE%B9\\\">流式内容\u003C/a>\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">允许的内容\u003C/th>\u003Ctd>按照这个顺序：一个可选的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/caption\\\">\u003Ccode>&lt;caption&gt;\u003C/code>\u003C/a>&nbsp;元素零个或多个的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/colgroup\\\">\u003Ccode>&lt;colgroup&gt;\u003C/code>\u003C/a>&nbsp;元素一个可选的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/thead\\\">\u003Ccode>&lt;thead&gt;\u003C/code>\u003C/a>&nbsp;元素下列任意一个：零个或多个&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tbody\\\">\u003Ccode>&lt;tbody&gt;\u003C/code>\u003C/a>零个或多个&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tr\\\">\u003Ccode>&lt;tr&gt;\u003C/code>\u003C/a>一个可选的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tfoot\\\">\u003Ccode>&lt;tfoot&gt;\u003C/code>\u003C/a>&nbsp;元素\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">标签省略\u003C/th>\u003Ctd>不允许，开始标签和结束标签都不能省略。\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">允许的父元素\u003C/th>\u003Ctd>任何支持流式内容的元素\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">隐含的 ARIA 角色\u003C/th>\u003Ctd>\u003Ccode>\u003Ca href=\\\"https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/table_role\\\">table\u003C/a>\u003C/code>\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">允许的 ARIA 角色\u003C/th>\u003Ctd>任意\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">DOM 接口\u003C/th>\u003Ctd>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLTableElement\\\">\u003Ccode>HTMLTableElement\u003C/code>\u003C/a>\u003C/td>\u003C/tr>\u003C/tbody>\u003C/table>\u003C/figure>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%B1%9E%E6%80%A7\\\">属性\u003C/a>\u003C/h2>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">此元素包含所有的\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Global_attributes\\\">全局属性\u003C/a>。\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%BC%83%E7%94%A8%E7%9A%84%E5%B1%9E%E6%80%A7\\\">弃用的属性\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#align\\\">\u003Ccode>align\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Glossary/Enumerated\\\">枚举\u003C/a>属性指定了包含在文档中的表格必须如何对齐。可能含有如下值：\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ccode>left\u003C/code>：表格将在文档左侧显示；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>center\u003C/code>：表格将在文档中央显示；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>right\u003C/code>：表格将在文档右侧显示；\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">设置&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/margin-left\\\">\u003Ccode>margin-left\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/margin-right\\\">\u003Ccode>margin-right\u003C/code>\u003C/a>&nbsp;为&nbsp;\u003Ccode>auto\u003C/code>，或者将&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/margin\\\">\u003Ccode>margin\u003C/code>\u003C/a>&nbsp;设置为&nbsp;\u003Ccode>0 auto\u003C/code>&nbsp;来实现类似于 align 属性的效果。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#bgcolor\\\">\u003Ccode>bgcolor\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">表格的背景颜色。它是一个&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Values/hex-color\\\">6 位的十六进制 RGB 编码\u003C/a>，以&nbsp;\u003Ccode>'#'\u003C/code>&nbsp;作为前缀。当然也可以使用下面已经被预先定义的\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Values/named-color\\\">颜色关键字\u003C/a>。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以使用 CSS 属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/background-color\\\">\u003Ccode>background-color\u003C/code>\u003C/a>。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#border\\\">\u003Ccode>border\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个整型属性定义了环绕表格外部的框的大小。如果设置为 0，这意味着&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#frame\\\">\u003Ccode>frame\u003C/code>\u003C/a>&nbsp;属性被设置为空。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以使用 CSS 简写属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border\\\">\u003Ccode>border\u003C/code>\u003C/a>。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#cellpadding\\\">\u003Ccode>cellpadding\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个属性定义了一个单元格的内容和它的边框之间的空间，无论显示与否。如果 cellpadding 的长度是用像素定义的，这个像素大小的空间将被应用到单元格内容的所有四边。如果长度是用百分比值定义的，内容将被居中，总的垂直空间（顶部和底部）将代表这个值。对于总的水平空间（左边和右边）也是如此。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以在&nbsp;\u003Ccode>&lt;table&gt;\u003C/code>&nbsp;元素上使用属性值为 collapse 的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-collapse\\\">\u003Ccode>border-collapse\u003C/code>\u003C/a>&nbsp;属性，在&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/td\\\">\u003Ccode>&lt;td&gt;\u003C/code>\u003C/a>&nbsp;元素上使用属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/padding\\\">\u003Ccode>padding\u003C/code>\u003C/a>。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#cellspacing\\\">\u003Ccode>cellspacing\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个属性定义了水平和垂直方向上两个单元格之间空间的大小，使用百分比或像素，包括了表格的顶部与第一行的单元格、表的左边与第一列单元格、表的右边与最后一列的单元格、表的底部与最后一行单元格之间的空间。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以在&nbsp;\u003Ccode>&lt;table&gt;\u003C/code>&nbsp;元素上使用 CSS 属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-spacing\\\">\u003Ccode>border-spacing\u003C/code>\u003C/a>。\u003Ccode>border-spacing\u003C/code>&nbsp;在&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-collapse\\\">\u003Ccode>border-collapse\u003C/code>\u003C/a>&nbsp;设置为 collapse 时将无效。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#frame\\\">\u003Ccode>frame\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个枚举属性定义了包围在表格周围的框架的哪个边必须显示。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以使用 CSS 属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-style\\\">\u003Ccode>border-style\u003C/code>\u003C/a>&nbsp;和&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-width\\\">\u003Ccode>border-width\u003C/code>\u003C/a>。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#rules\\\">\u003Ccode>rules\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个枚举属性定义了在一个表格中分隔线的显示位置。它可以有以下值：\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ccode>none\u003C/code>，这表明没有分隔线将被显示；这是默认的值；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>groups\u003C/code>，这将使得分隔线只显示在行组（row group，通过 \u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/thead\\\">\u003Ccode>&lt;thead>\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tbody\\\">\u003Ccode>&lt;tbody>\u003C/code>\u003C/a> 和 \u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tfoot\\\">\u003Ccode>&lt;tfoot>\u003C/code>\u003C/a> 元素定义）和列组（column group，通过 \u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/col\\\">\u003Ccode>&lt;col>\u003C/code>\u003C/a> 和 \u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/colgroup\\\">\u003Ccode>&lt;colgroup>\u003C/code>\u003C/a> 元素定义）之间\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>rows\u003C/code>，这将使得分隔线在行之间显示；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>cols\u003C/code>，这将使得分隔线在列之间显示；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>all\u003C/code>，这将使得分隔线在列和行之间显示；\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以在适当的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/thead\\\">\u003Ccode>&lt;thead&gt;\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tbody\\\">\u003Ccode>&lt;tbody&gt;\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tfoot\\\">\u003Ccode>&lt;tfoot&gt;\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/col\\\">\u003Ccode>&lt;col&gt;\u003C/code>\u003C/a>&nbsp;或&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/colgroup\\\">\u003Ccode>&lt;colgroup&gt;\u003C/code>\u003C/a>&nbsp;元素上使用&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border\\\">\u003Ccode>border\u003C/code>\u003C/a>&nbsp;属性。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#summary\\\">\u003Ccode>summary\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">该属性定义了概括表格内容的替代文本。请使用&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/caption\\\">\u003Ccode>&lt;caption&gt;\u003C/code>\u003C/a>&nbsp;元素代替。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#width\\\">\u003Ccode>width\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">该属性定义了表格的宽度。请使用 CSS&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/width\\\">\u003Ccode>width\u003C/code>\u003C/a>&nbsp;属性代替。\u003C/p>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E7%A4%BA%E4%BE%8B\\\">示例\u003C/a>\u003C/h2>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E7%AE%80%E5%8D%95%E7%9A%84%E8%A1%A8%E6%A0%BC\\\">简单的表格\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=f3181ffab38a41999d2d0f0afe9cfccede1f7101&state=q1bKKMnNUbJSsilJTMpJtYvJU1CwKSkC0yBWip1XfkaejX5JCpKQS34qXMRGH6oaTVdiXiphXTb6MFuVdJSSi4uVrJSUdJSyoHRJRmpuqpKVUk5mekaJUi0A&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;table&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;John&lt;/td&gt;\\n    &lt;td&gt;Doe&lt;/td&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;Jane&lt;/td&gt;\\n    &lt;td&gt;Doe&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%9B%B4%E5%A4%9A%E7%AE%80%E5%8D%95%E7%A4%BA%E4%BE%8B\\\">更多简单示例\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=bfa7e5bae3ce187fb1846055cdd45650108fff48&state=jVLbctJQFP2VM8dXNBT1oWmaJ5%2F8hryEJCXYNCdDjjPtdDqDIxUZS0uL1BaqBS8VVC46jiII%2FRg5ufyFE8IlnnLxJTmz9tp77b323oUq3tIgCzmDJ7nP1kXGqVTJ%2B%2B92MeVUqlb5N8cYvKBzWIxqCi%2FoAHA4Mfx7L5UnH%2FMcg9UgkstOEI4ZkYNJMv8AKRyD5QDyEKn6BPr%2FLFFX6CyOGbcq6NRMf5JPvEerT04O%2FOEG7e6gl180q6qIU8VxN%2F6gflHybJ80foGVgAszwpGgSZPxmGl5DkeRvDNTSeaDzQb05GWkSNCvgOpEisMbCOH5qp5XC%2FSm4XlKo%2FLUUqyLDHn%2Byu6mFjgvIS2WQI8NYBqivi7AewLkOWaMzrrEUo80flDH6F6duk97FDjodMjRO6vQctNHVMhp1p1qctn92v1DUupRx0iyh3ap5FauKfzunfAqGHRo2Hnx1WnWl928ffyG7LepVOu0Sfo%2FSf4Dab20jmtUdDUcBoN2mkL9QjMU562GnBx4j%2BULGotISAMm3tGUdQFGRWnTC%2BrybQlpKMGCW%2BGNsAAB8w%2Fb32xkgi%2Fcr%2Fv6xLosU%2FuyLsvWpy80WDsj9dzSJXavncw3yia3m7oJWrXzIDjXOKucdt%2Be2cWU3UiSbGGucaKB40gfCXi3dHVuF1N%2B9siGAOXm6fn0QsvKNuY3BUNQMk3IwiEAdj1SFCVkJeGtRBMNU2HB%2BLUWiJqGKMX1GAvCxvaaoO8J%2BrBCSNCx6n1kv5YhyvKQdn9IG6ezYMXYBibS4jKIaqK06ZeAIfjIawaGIFaVLQWyUIvHVAz3%2FgI%3D&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;p&gt;含有表头的表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;tr&gt;\\n    &lt;th&gt;姓&lt;/th&gt;\\n    &lt;th&gt;名&lt;/th&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;Doe&lt;/td&gt;\\n    &lt;td&gt;John&lt;/td&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;Doe&lt;/td&gt;\\n    &lt;td&gt;Jane&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\\n&lt;p&gt;含有表头、表尾和表格主体的表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;thead&gt;\\n    &lt;tr&gt;\\n      &lt;th&gt;表头内容 1&lt;/th&gt;\\n      &lt;th&gt;表头内容 2&lt;/th&gt;\\n    &lt;/tr&gt;\\n  &lt;/thead&gt;\\n  &lt;tbody&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;表格主体内容 1&lt;/td&gt;\\n      &lt;td&gt;表格主体内容 2&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tbody&gt;\\n  &lt;tfoot&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;表尾内容 1&lt;/td&gt;\\n      &lt;td&gt;表尾内容 2&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tfoot&gt;\\n&lt;/table&gt;\\n\\n&lt;p&gt;有列组的表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;colgroup span=\\\"4\\\"&gt;&lt;/colgroup&gt;\\n  &lt;tr&gt;\\n    &lt;th&gt;国家&lt;/th&gt;\\n    &lt;th&gt;首都&lt;/th&gt;\\n    &lt;th&gt;人口数量&lt;/th&gt;\\n    &lt;th&gt;语言&lt;/th&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;美国&lt;/td&gt;\\n    &lt;td&gt;华盛顿&lt;/td&gt;\\n    &lt;td&gt;3.09 亿&lt;/td&gt;\\n    &lt;td&gt;英语&lt;/td&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;瑞典&lt;/td&gt;\\n    &lt;td&gt;斯德哥尔摩&lt;/td&gt;\\n    &lt;td&gt;900 万&lt;/td&gt;\\n    &lt;td&gt;瑞典语&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\\n&lt;p&gt;有列组和列的表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;colgroup&gt;\\n    &lt;col style=\\\"background-color: #0f0\\\" /&gt;\\n    &lt;col span=\\\"2\\\" /&gt;\\n  &lt;/colgroup&gt;\\n  &lt;tr&gt;\\n    &lt;th&gt;青柠&lt;/th&gt;\\n    &lt;th&gt;柠檬&lt;/th&gt;\\n    &lt;th&gt;橘子&lt;/th&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;绿色&lt;/td&gt;\\n    &lt;td&gt;黄色&lt;/td&gt;\\n    &lt;td&gt;橙色&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\\n&lt;p&gt;有标题的简单表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;caption&gt;\\n    美妙的标题\\n  &lt;/caption&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;美妙的数据&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E8%A1%A8%E6%A0%BC%E6%8E%92%E5%BA%8F\\\">表格排序\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">对表格的行进行排序\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">没有原生的方法对 HTML 表格的行（\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tr\\\">\u003Ccode>&lt;tr&gt;\u003C/code>\u003C/a>元素）进行排序。但是通过使用&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/slice\\\">\u003Ccode>Array.prototype.slice()\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/sort\\\">\u003Ccode>Array.prototype.sort()\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/API/Node/removeChild\\\">\u003Ccode>Node. removeChild()\u003C/code>\u003C/a>&nbsp;和&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/API/Node/appendChild\\\">\u003Ccode>Node.appendChild()\u003C/code>\u003C/a>，你可以实现你自己的&nbsp;\u003Ccode>sort()\u003C/code>&nbsp;函数来对&nbsp;\u003Ccode>&lt;tr&gt;\u003C/code>&nbsp;元素的\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLCollection\\\">\u003Ccode>HTMLCollection\u003C/code>\u003C/a>&nbsp;进行排序。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">在下面的示例中，你可以看到具体如何这样做。我们把这个自定义方法附加到 &lt;tbody&gt; 元素上，这样它就会按照数值增加的顺序对表格单元格进行排序，并更新显示内容以适应需要。\u003C/p>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">HTML\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=ce14e7db35174ad596f60edd983bedf6e66f2863&state=jY9PT8MwDMW%2FSuRTKlUpf25bNwmmSRzgtN0ohzRxaVEal9QDqmnfHSXbEEI7cIqd97Pf8x5a7h3MoGRdO1xWXoiSa7JTKmMTTlWs7fK2LNieteJH%2FIvd%2FA%2B7voSVxTlAWZxTQQ5mHGEGkMNbfB%2B2T4%2FbKG7QcEd%2B7bBHz2oIxMTTgGqkwGIhmp1PgJCmzsQ%2BGtyFoCfVBOolt92oAn2O2TFEmorkqW0orLVppcRMLJYi4XoY0NtV2zl7mseePvD4gVmWzSt%2FmFfektnFTHGVet9hmDbo0DAFWUE6rILko%2FiebIfj89XL0V%2FqXNTJUCvGL16R53icI6MdrqgfdEBZ%2F9aSK%2BTALfYIM3Dda8tw%2BAY%3D&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;table&gt;\\n  &lt;tbody&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;3&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;2&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;1&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tbody&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">JavaScript\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">js复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=ce14e7db35174ad596f60edd983bedf6e66f2863&state=jY9PT8MwDMW%2FSuRTKlUpf25bNwmmSRzgtN0ohzRxaVEal9QDqmnfHSXbEEI7cIqd97Pf8x5a7h3MoGRdO1xWXoiSa7JTKmMTTlWs7fK2LNieteJH%2FIvd%2FA%2B7voSVxTlAWZxTQQ5mHGEGkMNbfB%2B2T4%2FbKG7QcEd%2B7bBHz2oIxMTTgGqkwGIhmp1PgJCmzsQ%2BGtyFoCfVBOolt92oAn2O2TFEmorkqW0orLVppcRMLJYi4XoY0NtV2zl7mseePvD4gVmWzSt%2FmFfektnFTHGVet9hmDbo0DAFWUE6rILko%2FiebIfj89XL0V%2FqXNTJUCvGL16R53icI6MdrqgfdEBZ%2F9aSK%2BTALfYIM3Dda8tw%2BAY%3D&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>HTMLTableSectionElement.prototype.sort = function (cb) {\\n  Array.from(this.rows)\\n    .sort(cb)\\n    .forEach((e) =&gt; this.appendChild(this.removeChild(e)));\\n};\\ndocument\\n  .querySelector(\\\"table\\\")\\n  .tBodies&#91;0].sort((a, b) =&gt; a.textContent.localeCompare(b.textContent));\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">结果\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">通过点击 th 元素对行进行排序\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">下面的示例给&nbsp;\u003Ccode>document\u003C/code>&nbsp;中每个&nbsp;\u003Ccode>&lt;table&gt;\u003C/code>&nbsp;的每个&nbsp;\u003Ccode>&lt;th&gt;\u003C/code>&nbsp;元素添加了一个事件处理程序；它对所有&nbsp;\u003Ccode>&lt;tbody&gt;\u003C/code>&nbsp;的行进行排序，排序的基础是行中包含的&nbsp;\u003Ccode>td\u003C/code>&nbsp;单元格。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Cstrong>备注：\u003C/strong>这个解决方案假设&nbsp;\u003Ccode>&lt;td&gt;\u003C/code>&nbsp;元素是由原始文本填充的，没有子元素。\u003C/p>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">HTML\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=f9fde97f0f4253146dc1d9002356b4f8a5db2325&state=jZLNTuswEIVfxfLKkSqHll2bVirVlUBiB7umCxNPb3qvY5fJFFqhPgJLxFMgeCl4DmTnp6nKglXsM%2Bc7M7bzxHMqDB%2FyhNSdgUlqGUsoB6XD0m%2BwXoXC5Ovl4%2FPtNYkpP5I%2F316%2F3p87chLXoNeauITunN79mKwn50lM%2BkiZdpQ27xQcnIAXvwP7J%2BDsJzCJm7GTuLkl3uNZWfIh5z3%2Bz38zZ0tiyphb7yjZmGmXbQqwJO83gLsbMJCRw6kxIuUhJuXRKLVLh0xUdFCZWx5iIvbkJ6jLF07v2LiySb9bQTk%2FW4wOFnSPvvUUUe3kEl0hAiS9HnV8%2FkUAZ2BMeQi8BKWDc362kJmvBaI7YO6n68D1fE2sh66shq0PzWW7HVUmyqXS%2Bs8DWLpelQQWUKQ8M6vsf8p7TERsPGkCWTiLLB2SEIT9HiMcHBvae8H%2BLWzJ98R%2BNfi8bb2QBFuaOUtgaXSKDlp08FsUgTZom7bSuEwZmLlirRBEnRi1%2Fv1hWb2FWq%2FBaiFl51Va2z61%2B%2FB3UQ4F8CE3q7858f03&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;table&gt;\\n  &lt;thead&gt;\\n    &lt;tr&gt;\\n      &lt;th&gt;数字&lt;/th&gt;\\n      &lt;th&gt;字母&lt;/th&gt;\\n    &lt;/tr&gt;\\n  &lt;/thead&gt;\\n  &lt;tbody&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;3&lt;/td&gt;\\n      &lt;td&gt;A&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;2&lt;/td&gt;\\n      &lt;td&gt;B&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;1&lt;/td&gt;\\n      &lt;td&gt;C&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tbody&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">JavaScript\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">js复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=f9fde97f0f4253146dc1d9002356b4f8a5db2325&state=jZLNTuswEIVfxfLKkSqHll2bVirVlUBiB7umCxNPb3qvY5fJFFqhPgJLxFMgeCl4DmTnp6nKglXsM%2Bc7M7bzxHMqDB%2FyhNSdgUlqGUsoB6XD0m%2BwXoXC5Ovl4%2FPtNYkpP5I%2F316%2F3p87chLXoNeauITunN79mKwn50lM%2BkiZdpQ27xQcnIAXvwP7J%2BDsJzCJm7GTuLkl3uNZWfIh5z3%2Bz38zZ0tiyphb7yjZmGmXbQqwJO83gLsbMJCRw6kxIuUhJuXRKLVLh0xUdFCZWx5iIvbkJ6jLF07v2LiySb9bQTk%2FW4wOFnSPvvUUUe3kEl0hAiS9HnV8%2FkUAZ2BMeQi8BKWDc362kJmvBaI7YO6n68D1fE2sh66shq0PzWW7HVUmyqXS%2Bs8DWLpelQQWUKQ8M6vsf8p7TERsPGkCWTiLLB2SEIT9HiMcHBvae8H%2BLWzJ98R%2BNfi8bb2QBFuaOUtgaXSKDlp08FsUgTZom7bSuEwZmLlirRBEnRi1%2Fv1hWb2FWq%2FBaiFl51Va2z61%2B%2FB3UQ4F8CE3q7858f03&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>const allTables = document.querySelectorAll(\\\"table\\\");\\nfor (const table of allTables) {\\n  const tBody = table.tBodies&#91;0];\\n  const rows = Array.from(tBody.rows);\\n  const headerCells = table.tHead.rows&#91;0].cells;\\n  for (const th of headerCells) {\\n    const cellIndex = th.cellIndex;\\n    th.addEventListener(\\\"click\\\", () =&gt; {\\n      rows.sort((tr1, tr2) =&gt; {\\n        const tr1Text = tr1.cells&#91;cellIndex].textContent;\\n        const tr2Text = tr2.cells&#91;cellIndex].textContent;\\n        return tr1Text.localeCompare(tr2Text);\\n      });\\n      tBody.append(...rows);\\n    });\\n  }\\n}\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">结果\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%9C%A8%E5%B0%8F%E7%A9%BA%E9%97%B4%E5%B1%95%E7%A4%BA%E5%A4%A7%E5%9E%8B%E8%A1%A8%E6%A0%BC\\\">在小空间展示大型表格\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">网络上表格的一个普遍问题是，当内容量很大时，它们在小屏幕上的原生效果并不好，而且使它们可滚动的方法并不明显，特别是当标记可能来自 CMS，无法添加一个包装器时。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个例子提供了一种在小空间中显示表格的方法。我们隐藏了 HTML 内容，因为它非常大，而且没有什么特别之处。在这个例子中，研究其 CSS 代码更有用。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">当查看这些样式时，你会注意到表格的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/display\\\">\u003Ccode>display\u003C/code>\u003C/a>&nbsp;属性已被设置为&nbsp;\u003Ccode>block\u003C/code>。虽然允许滚动，但表格失去了一些完整性，而且表格单元格会尽量变小。为了缓解这个问题，我们在&nbsp;\u003Ccode>&lt;tbody&gt;\u003C/code>&nbsp;上将&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/white-space\\\">\u003Ccode>white-space\u003C/code>\u003C/a>&nbsp;设置为&nbsp;\u003Ccode>nowrap\u003C/code>。然而，我们没有对&nbsp;\u003Ccode>&lt;thead&gt;\u003C/code>&nbsp;进行设置，以避免长标题迫使列的宽度超过显示数据所需的宽度。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了在向下滚动时保持表头在页面上，我们在&nbsp;\u003Ccode>&lt;th&gt;\u003C/code>&nbsp;元素上将&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/position\\\">\u003Ccode>position\u003C/code>\u003C/a>&nbsp;设置为 sticky。注意，我们\u003Cstrong>没有\u003C/strong>将&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-collapse\\\">\u003Ccode>border-collapse\u003C/code>\u003C/a>&nbsp;设置为&nbsp;\u003Ccode>collapse\u003C/code>，因为如果我们这样做，表头就不能与表格的其他部分正确分开。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">css复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=5175f6b091486794c8fb98e251b5329278939bf0&state=hddPbtpAHIbhq4ym6g4r%2Fsb%2FJ4iTsDG2wW6Mx7IngSjKAbrpAXqHXqDqcSp12StUdoDQ9kOzCTD8PLxANI94kbXdt1LLpc03bbVad0IsbV3l5Xx3ejCc7s1PrLAcH%2FtVsLybbsSvb59%2Ffv%2Fy%2B8fX6xHlHgncI6F7JHKPxO6R5PbI0m5M%2BUw%2FiXI1mIOAFiBrKVlTCVmMQ7ajitj1iMlqEAa36xSpU6ROsTrF6hStU7ROOeoCUheQuoDVBawuoHUBrQscdSGpC0ldyOpCVhfSupDWhY66iNRFpC5idRGri2hdROsiR11M6mJSF7O6mNXFtC6mdbGjLiF1CalLWF3C6hJal9C6xFGXkrqU1KWsLmV1Ka1LaV3qqMtIXUbqMlaXsbqM1mW0LnPUwWfHsc%2FOY58eyD49kX1%2BJPv8TPZdkdQMigZXg7Nxw40bcLjkAKMDzA5QPED1AOcD3A%2B4AAETBIwQUENAEQFXBJwRuBwBgwRMElBKQC0BxwRcE7g4AfMEDBRQUUBJATcFHBW4VAFjBcwVUFhAZQGnBdwWuHAB0wWMF1BfQIEBFwacGLiMAUMGTBlQZkCdAYcGXBq4qAGzBgwbUG1AuQH3BhwcuMRRTBzFxFFUHEXFUVwcxcVRZ3GWd%2BffcHIhi3GUWs4Li3Vn6%2BlPKV6mizdmKKtBC%2FRHMZq2Ke%2FX3eu6W3fz9NvMoSltrQV8%2F%2BP99HifH73TWuj7%2FXFerKtmV1stVHhe2efDrum08EX%2BaM28VDZj3%2BbPWmxaUzzMS%2BapGratOXhH%2FT73VuWNfV403U4L%2F1I1%2FQY7VdWNreaRSovOHIa8v0xdv8M%2BL8t5k6g%2FCpzjTq9gTX9%2BK%2F71eltt7fUTp21PO5qxsY3ptBhtUzw8zxda01%2F2yIuH3WAeu1KLD9vtdl58qgbbFHnr5W2z67TYGGvN%2Fn1r3eaj9Yq6acs5%2Furx9TflDdPH%2FH%2FacD3%2F95frvb3UP9fIhfw0%2FVfIhbR1ta%2Bklu20tXz9Aw%3D%3D&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>table,\\nth,\\ntd {\\n  border: 1px solid;\\n}\\n\\ntable {\\n  width: 100%;\\n  max-width: 400px;\\n  height: 240px;\\n  margin: 0 auto;\\n  display: block;\\n  overflow-x: auto;\\n  border-spacing: 0;\\n}\\n\\ntbody {\\n  white-space: nowrap;\\n}\\n\\nth,\\ntd {\\n  padding: 5px 10px;\\n  border-top-width: 0;\\n  border-left-width: 0;\\n}\\n\\nth {\\n  position: sticky;\\n  top: 0;\\n  background: #fff;\\n  vertical-align: bottom;\\n}\\n\\nth:last-child,\\ntd:last-child {\\n  border-right-width: 0;\\n}\\n\\ntr:last-child td {\\n  border-bottom-width: 0;\\n}\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">结果\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%97%A0%E9%9A%9C%E7%A2%8D%E8%80%83%E8%99%91\\\">无障碍考虑\u003C/a>\u003C/h2>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%A0%87%E9%A2%98\\\">标题\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">提供一个清晰简洁地描述了表格的目的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/caption\\\">\u003Ccode>&lt;caption&gt;\u003C/code>\u003C/a>&nbsp;元素，有助于人们决定是否需要阅读表格的其他内容或跳过它。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这有助于借助辅助技术（如屏幕阅读器）进行导航的人、经历低视力状况的人和有认知问题的人。\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/Structuring_content/Table_accessibility#%E4%BD%BF%E7%94%A8_caption_%E4%B8%BA%E4%BD%A0%E7%9A%84%E8%A1%A8%E6%A0%BC%E5%A2%9E%E5%8A%A0%E4%B8%80%E4%B8%AA%E6%A0%87%E9%A2%98\\\">MDN：使用 &lt;caption> 元素为表格添加标题\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/WAI/tutorials/tables/caption-summary/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">标题和总结 • Tables • W3C WAI Web Accessibility Tutorials\u003C/a>\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E7%A1%AE%E5%AE%9A%E8%A1%8C%E5%92%8C%E5%88%97%E7%9A%84%E8%8C%83%E5%9B%B4\\\">确定行和列的范围\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">头部元素的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/th#scope\\\">\u003Ccode>scope\u003C/code>\u003C/a>&nbsp;属性在简单情况下是多余的，因为范围是推断出来的。然而，一些辅助技术可能无法做出正确的推断，所以指定头的范围可能会改善用户体验。在复杂的表格中，可以指定范围以提供与标题相关的单元格的必要信息。\u003C/p>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">示例\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;table&gt;\\n  &lt;caption&gt;\\n    表格名称和值\\n  &lt;/caption&gt;\\n  &lt;tbody&gt;\\n    &lt;tr&gt;\\n      &lt;th scope=\\\"col\\\"&gt;名称&lt;/th&gt;\\n      &lt;th scope=\\\"col\\\"&gt;HEX&lt;/th&gt;\\n      &lt;th scope=\\\"col\\\"&gt;HSLa&lt;/th&gt;\\n      &lt;th scope=\\\"col\\\"&gt;RGBa&lt;/th&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;th scope=\\\"row\\\"&gt;Teal&lt;/th&gt;\\n      &lt;td&gt;&lt;code&gt;#51F6F6&lt;/code&gt;&lt;/td&gt;\\n      &lt;td&gt;&lt;code&gt;hsla(180, 90%, 64%, 1)&lt;/code&gt;&lt;/td&gt;\\n      &lt;td&gt;&lt;code&gt;rgba(81, 246, 246, 1)&lt;/code&gt;&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;th scope=\\\"row\\\"&gt;Goldenrod&lt;/th&gt;\\n      &lt;td&gt;&lt;code&gt;#F6BC57&lt;/code&gt;&lt;/td&gt;\\n      &lt;td&gt;&lt;code&gt;hsla(38, 90%, 65%, 1)&lt;/code&gt;&lt;/td&gt;\\n      &lt;td&gt;&lt;code&gt;rgba(246, 188, 87, 1)&lt;/code&gt;&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tbody&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">在&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/th\\\">\u003Ccode>&lt;th&gt;\u003C/code>\u003C/a>&nbsp;元素上提供声明&nbsp;\u003Ccode>scope=\\\"col\\\"\u003C/code>，将有助于描述该单元格处于一列的顶部。在&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/th\\\">\u003Ccode>&lt;th&gt;\u003C/code>\u003C/a>&nbsp;元素上提供声明&nbsp;\u003Ccode>scope=\\\"row\\\"\u003C/code>，将有助于描述该单元格是某一行的第一个。\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/Structuring_content/Table_accessibility#%E5%AF%B9%E4%BA%8E%E8%A7%86%E5%8A%9B%E5%8F%97%E6%8D%9F%E7%9A%84%E7%94%A8%E6%88%B7%E7%9A%84%E8%A1%A8%E6%A0%BC\\\">MDN：对于视力受损用户的表格\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/WAI/tutorials/tables/two-headers/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">有两个头部的表格 • Tables • W3C WAI Web Accessibility Tutorials\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/WAI/tutorials/tables/irregular/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">有不标准头部的表格 • Tables • W3C WAI Web Accessibility Tutorials\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/TR/WCAG20-TECHS/H63.html\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">H63: 使用范围属性来关联数据表中的标题单元和数据单元 | W3C Techniques for WCAG 2.0\u003C/a>\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%A4%8D%E6%9D%82%E8%A1%A8%E6%A0%BC\\\">复杂表格\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">诸如屏幕阅读器等辅助技术可能难以解析那些复杂到标题单元不能以严格的水平或垂直方式关联的表格。这通常由&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/td#colspan\\\">\u003Ccode>colspan\u003C/code>\u003C/a>&nbsp;和&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/td#rowspan\\\">\u003Ccode>rowspan\u003C/code>\u003C/a>&nbsp;属性的存在表示。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">理想情况下，考虑用其他方式来展示表格的内容，包括将其分解成一系列较小的、相关的表格，而不必依赖&nbsp;\u003Ccode>colspan\u003C/code>&nbsp;和&nbsp;\u003Ccode>rowspan\u003C/code>&nbsp;属性。除了帮助使用辅助技术的人理解表的内容外，这也可能有利于有认知障碍的人，这些人可能难以理解表的布局所描述的关联。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">如果表格不能被拆开，使用&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Global_attributes#id\\\">\u003Ccode>id\u003C/code>\u003C/a>&nbsp;和&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/td#headers\\\">\u003Ccode>headers\u003C/code>\u003C/a>&nbsp;属性的组合，以编程方式将每个表格单元与该单元所关联的标题相关联。\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/Structuring_content/Table_accessibility#%E5%AF%B9%E4%BA%8E%E8%A7%86%E5%8A%9B%E5%8F%97%E6%8D%9F%E7%9A%84%E7%94%A8%E6%88%B7%E7%9A%84%E8%A1%A8%E6%A0%BC\\\">MDN：对于视力受损用户的表格\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/WAI/tutorials/tables/multi-level/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">有多级头部的表格 • Tables • W3C WAI Web Accessibility Tutorials\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/TR/WCAG20-TECHS/H43.html\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">H43: 使用 id 和 headers 属性将数据单元与数据表中的标题单元联系起来 | Techniques for W3C WCAG 2.0\u003C/a>\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E8%A7%84%E8%8C%83\\\">规范\u003C/a>\u003C/h2>\",\"text\":\"\u003Cp class=\\\"wp-block-paragraph\\\">id\u003C/p>\\n\\n\\n\u003Cdiv class=\\\"wp-block-image\\\">\\n\u003Cfigure class=\\\"alignright is-resized\\\">\u003Ca class=\\\"td-modal-image\\\" href=\\\"https://uspolicy.org/wp-content/uploads/2026/06/maxresdefault.jpg\\\">\u003Cimg decoding=\\\"async\\\" src=\\\"https://uspolicy.org/wp-content/uploads/2026/06/maxresdefault-696x392.jpg\\\" alt=\\\"\\\" style=\\\"width:402px;height:auto\\\" title=\\\"maxresdefault\\\"/>\u003C/a>\u003C/figure>\\n\u003C/div>\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">As lawmakers continue debating rail policy, a new video from US Policy examines an important question: Do additional federal regulations make railroads safer, or do they primarily increase costs and reduce efficiency?\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">Using a model train set to illustrate the point, the video explores how each new mandate can add friction to the freight system through compliance costs, staffing requirements, and restrictions on innovation.\u003C/p>\\n\\n\\n\\n\u003Cfigure class=\\\"wp-block-embed\\\">\u003Cdiv class=\\\"wp-block-embed__wrapper\\\">\u003Ciframe src=\\\"https://www.youtube.com/embed/oaIk7TD5Yjg\\\" loading=\\\"lazy\\\" allow=\\\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\\\" referrerpolicy=\\\"strict-origin-when-cross-origin\\\" allowfullscreen>\u003C/iframe>\u003C/div>\u003C/figure>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">The video highlights concerns with provisions often associated with the Railway Safety Act, including two-person crew mandates and expanded regulatory requirements. While advocates argue these measures are necessary to prevent accidents, the video notes that freight rail companies already face significant financial incentives to prioritize safety, including the costs associated with derailments, insurance claims, cargo losses, and reputational damage.\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">The video also places the debate in historical context, noting that rail deregulation efforts beginning under President Jimmy Carter helped create a more efficient and financially sustainable freight rail system. Greater flexibility allowed railroads to invest in infrastructure, improve service, and strengthen supply chains.\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">The broader economic implications are significant. When rail transportation becomes less efficient or more expensive, freight often shifts to trucks, increasing highway congestion, road wear, and overall transportation costs.\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">Ultimately, the video argues that the debate should not be framed as safety versus no safety. Instead, policymakers should focus on identifying the most effective ways to improve safety while preserving the flexibility, innovation, and efficiency that make freight rail an essential part of the American economy.\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">Key Takeaway\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">The question is not whether railroads should be safe—they must be. The question is whether one-size-fits-all federal mandates are the best way to achieve that goal, or whether they risk increasing costs and slowing innovation without delivering meaningful safety improvements.\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML\\\">HTML\u003C/a>&nbsp;\u003Cstrong>\u003Ccode>&lt;table&gt;\u003C/code>\u003C/strong>&nbsp;元素表示表格数据——即在一个由包含数据的行和列组成的二维表格中呈现的信息。\u003C/p>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">本文内容\u003C/h2>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%B0%9D%E8%AF%95%E4%B8%80%E4%B8%8B\\\">尝试一下\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%B1%9E%E6%80%A7\\\">属性\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E7%A4%BA%E4%BE%8B\\\">示例\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%97%A0%E9%9A%9C%E7%A2%8D%E8%80%83%E8%99%91\\\">无障碍考虑\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E8%A7%84%E8%8C%83\\\">规范\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%B5%8F%E8%A7%88%E5%99%A8%E5%85%BC%E5%AE%B9%E6%80%A7\\\">浏览器兼容性\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%8F%82%E8%A7%81\\\">参见\u003C/a>\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Ca target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\" href=\\\"https://developer.mozilla.org/pong/click?code=aHR0cHM6Ly9zcnYuYnV5c2VsbGFkcy5jb20vYWRzL2NsaWNrL3gvR1RORDQyN1lDVlNJNUtKTkY2U0xZS1FVRlQ3SUMyM1lDNlNETFozSkNBQURDS0pFQ0VZSUVLSktDNlNJTEtRWUNBWURUNTNNQ1RTSTYyN1VDVzdJSzVRTUhFWUk1NTNMQ0E3REMySkVDVE5DWUJaNTJL.iT%2Bk4Hf27Db%2BR0aZIZJApRIJqL8athAHxSvjV2TQAhc%3D&version=2\\\">\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Ca target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\" href=\\\"https://developer.mozilla.org/pong/click?code=aHR0cHM6Ly9zcnYuYnV5c2VsbGFkcy5jb20vYWRzL2NsaWNrL3gvR1RORDQyN1lDVlNJNUtKTkY2U0xZS1FVRlQ3SUMyM1lDNlNETFozSkNBQURDS0pFQ0VZSUVLSktDNlNJTEtRWUNBWURUNTNNQ1RTSTYyN1VDVzdJSzVRTUhFWUk1NTNMQ0E3REMySkVDVE5DWUJaNTJL.iT%2Bk4Hf27Db%2BR0aZIZJApRIJqL8athAHxSvjV2TQAhc%3D&version=2\\\">\u003Cstrong>Remove identity bottlenecks for AI agents\u003C/strong>Let your agents log in, call APIs, and connect to MCP servers securely with Auth0.Start Building\u003C/a>\u003Ca href=\\\"https://developer.mozilla.org/en-US/advertising\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">广告\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%B0%9D%E8%AF%95%E4%B8%80%E4%B8%8B\\\">尝试一下\u003C/a>\u003C/h2>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">HTML Demo: &lt;table&gt;\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">重置HTMLCSS\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">1\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">2\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">3\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">4\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">5\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">6\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">7\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">8\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">9\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">10\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">11\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">12\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">13\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">14\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">15\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">16\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">17\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">18\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">19\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">20\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">21\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">22\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">23\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">24\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">25\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">26\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">27\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">28\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">29\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">30\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">31\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">32\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">33\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">34\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">35\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">36\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">37\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">38\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">39\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">40\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">41\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;table&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;caption&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">Front-end web developer course 2021\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/caption&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;thead&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;col&#8221;&gt;Person&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;col&#8221;&gt;Most interest in&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;col&#8221;&gt;Age&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/thead&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tbody&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221;&gt;Chris&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;HTML tables&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;22&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221;&gt;Dennis&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;Web accessibility&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;45&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221;&gt;Sarah&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;JavaScript frameworks&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;29&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221;&gt;Karen&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;Web performance&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;36&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tbody&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tfoot&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;th scope=&#8221;row&#8221; colspan=&#8221;2&#8243;&gt;Average age&lt;/th&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;td&gt;33&lt;/td&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tr&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/tfoot&gt;\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">&lt;/table&gt;\u003C/p>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">输出\u003C/h4>\\n\\n\\n\\n\u003Cfigure class=\\\"wp-block-embed\\\">\u003Cdiv class=\\\"wp-block-embed__wrapper\\\">\\nhttps://848a5d79-449d-4f60-8e5b-06a6ee7ad970.mdnplay.dev/runner.html?uuid=848a5d79-449d-4f60-8e5b-06a6ee7ad970&#038;state=nVTbahsxEP2VQU8xeGtn7aTpZmMoLaW0DRRS6Mu%2BaKXZXTWytEgTXxry70WyHDtxLiUPC9Lczjmjmb1lHc01K1hJvNY4qwxAKXhPypp4AfjirKEMjYQl1iBxgdr26EDYG%2BcR8nF%2BHLNG%2B2kldchlqlCSS6foAC9sjxcVE1ZXbPYTnbemHFH3QtCl9QTKEDqMh1fCP7a4F1GOEoFg29IqqbZy%2FQpDZ5cVm33qnPKPEOXs66%2FLHxC7FnzygS%2FP90z38K%2FhfEZjngD6jTVwIdB7VSutaH0ANz15C9wVd7w7QPvGF%2FxKONUTNI7PcWnd9RMCP7wF8Tt3%2BPjpNvp6dI11c24EHmBNTp%2FCKke7ByypsZb%2BhwIIq33PzUXF8jAnC3S8ReAP5iXBTp6BTVjlaLsybMiE96xg0QC3Ia62TqLLhNWa9x4L2J7Od94C8n4F3molwbX10fF0DOkbxLAmbF7D50qvC%2FDc%2BMyjU83O59VfLGD87szhPFo1EqHLfM%2BFMm0Bx%2F3qvDJ3lalMWs8NvXTJvJJYQG2J7KZAz6XcZI5jagJaomo7CpFabgvGXRpWJjYkqebiunX2xsig3Loi6srzM8inY8inJ4NdcsiU%2B82KbPfbcTqG9A0ecjvrV1t%2Bm2Ky0NxTZpuM1n16AcIVZVyr1hQgMPw67sPD4MAMyBWGum3WES7QDF7UMXkP%2BSRoyXc6onjqDjFd6NijsKT3mZayIfsTxogNmcSG32gKN7XKiNc1SjZk1OEcWcF0SGV3%2FwA%3D\\n\u003C/div>\u003C/figure>\\n\\n\\n\\n\u003Cfigure class=\\\"wp-block-table\\\">\u003Ctable class=\\\"has-fixed-layout\\\">\u003Ctbody>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Content_categories\\\">内容分类\u003C/a>\u003C/th>\u003Ctd>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Content_categories#%E6%B5%81%E5%BC%8F%E5%86%85%E5%AE%B9\\\">流式内容\u003C/a>\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">允许的内容\u003C/th>\u003Ctd>按照这个顺序：一个可选的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/caption\\\">\u003Ccode>&lt;caption&gt;\u003C/code>\u003C/a>&nbsp;元素零个或多个的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/colgroup\\\">\u003Ccode>&lt;colgroup&gt;\u003C/code>\u003C/a>&nbsp;元素一个可选的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/thead\\\">\u003Ccode>&lt;thead&gt;\u003C/code>\u003C/a>&nbsp;元素下列任意一个：零个或多个&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tbody\\\">\u003Ccode>&lt;tbody&gt;\u003C/code>\u003C/a>零个或多个&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tr\\\">\u003Ccode>&lt;tr&gt;\u003C/code>\u003C/a>一个可选的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tfoot\\\">\u003Ccode>&lt;tfoot&gt;\u003C/code>\u003C/a>&nbsp;元素\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">标签省略\u003C/th>\u003Ctd>不允许，开始标签和结束标签都不能省略。\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">允许的父元素\u003C/th>\u003Ctd>任何支持流式内容的元素\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">隐含的 ARIA 角色\u003C/th>\u003Ctd>\u003Ccode>\u003Ca href=\\\"https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/table_role\\\">table\u003C/a>\u003C/code>\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">允许的 ARIA 角色\u003C/th>\u003Ctd>任意\u003C/td>\u003C/tr>\u003Ctr>\u003Cth class=\\\"has-text-align-left\\\" data-align=\\\"left\\\">DOM 接口\u003C/th>\u003Ctd>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLTableElement\\\">\u003Ccode>HTMLTableElement\u003C/code>\u003C/a>\u003C/td>\u003C/tr>\u003C/tbody>\u003C/table>\u003C/figure>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%B1%9E%E6%80%A7\\\">属性\u003C/a>\u003C/h2>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">此元素包含所有的\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Global_attributes\\\">全局属性\u003C/a>。\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%BC%83%E7%94%A8%E7%9A%84%E5%B1%9E%E6%80%A7\\\">弃用的属性\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#align\\\">\u003Ccode>align\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Glossary/Enumerated\\\">枚举\u003C/a>属性指定了包含在文档中的表格必须如何对齐。可能含有如下值：\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ccode>left\u003C/code>：表格将在文档左侧显示；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>center\u003C/code>：表格将在文档中央显示；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>right\u003C/code>：表格将在文档右侧显示；\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">设置&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/margin-left\\\">\u003Ccode>margin-left\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/margin-right\\\">\u003Ccode>margin-right\u003C/code>\u003C/a>&nbsp;为&nbsp;\u003Ccode>auto\u003C/code>，或者将&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/margin\\\">\u003Ccode>margin\u003C/code>\u003C/a>&nbsp;设置为&nbsp;\u003Ccode>0 auto\u003C/code>&nbsp;来实现类似于 align 属性的效果。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#bgcolor\\\">\u003Ccode>bgcolor\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">表格的背景颜色。它是一个&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Values/hex-color\\\">6 位的十六进制 RGB 编码\u003C/a>，以&nbsp;\u003Ccode>'#'\u003C/code>&nbsp;作为前缀。当然也可以使用下面已经被预先定义的\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Values/named-color\\\">颜色关键字\u003C/a>。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以使用 CSS 属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/background-color\\\">\u003Ccode>background-color\u003C/code>\u003C/a>。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#border\\\">\u003Ccode>border\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个整型属性定义了环绕表格外部的框的大小。如果设置为 0，这意味着&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#frame\\\">\u003Ccode>frame\u003C/code>\u003C/a>&nbsp;属性被设置为空。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以使用 CSS 简写属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border\\\">\u003Ccode>border\u003C/code>\u003C/a>。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#cellpadding\\\">\u003Ccode>cellpadding\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个属性定义了一个单元格的内容和它的边框之间的空间，无论显示与否。如果 cellpadding 的长度是用像素定义的，这个像素大小的空间将被应用到单元格内容的所有四边。如果长度是用百分比值定义的，内容将被居中，总的垂直空间（顶部和底部）将代表这个值。对于总的水平空间（左边和右边）也是如此。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以在&nbsp;\u003Ccode>&lt;table&gt;\u003C/code>&nbsp;元素上使用属性值为 collapse 的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-collapse\\\">\u003Ccode>border-collapse\u003C/code>\u003C/a>&nbsp;属性，在&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/td\\\">\u003Ccode>&lt;td&gt;\u003C/code>\u003C/a>&nbsp;元素上使用属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/padding\\\">\u003Ccode>padding\u003C/code>\u003C/a>。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#cellspacing\\\">\u003Ccode>cellspacing\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个属性定义了水平和垂直方向上两个单元格之间空间的大小，使用百分比或像素，包括了表格的顶部与第一行的单元格、表的左边与第一列单元格、表的右边与最后一列的单元格、表的底部与最后一行单元格之间的空间。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以在&nbsp;\u003Ccode>&lt;table&gt;\u003C/code>&nbsp;元素上使用 CSS 属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-spacing\\\">\u003Ccode>border-spacing\u003C/code>\u003C/a>。\u003Ccode>border-spacing\u003C/code>&nbsp;在&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-collapse\\\">\u003Ccode>border-collapse\u003C/code>\u003C/a>&nbsp;设置为 collapse 时将无效。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#frame\\\">\u003Ccode>frame\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个枚举属性定义了包围在表格周围的框架的哪个边必须显示。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以使用 CSS 属性&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-style\\\">\u003Ccode>border-style\u003C/code>\u003C/a>&nbsp;和&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-width\\\">\u003Ccode>border-width\u003C/code>\u003C/a>。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#rules\\\">\u003Ccode>rules\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个枚举属性定义了在一个表格中分隔线的显示位置。它可以有以下值：\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ccode>none\u003C/code>，这表明没有分隔线将被显示；这是默认的值；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>groups\u003C/code>，这将使得分隔线只显示在行组（row group，通过 \u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/thead\\\">\u003Ccode>&lt;thead>\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tbody\\\">\u003Ccode>&lt;tbody>\u003C/code>\u003C/a> 和 \u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tfoot\\\">\u003Ccode>&lt;tfoot>\u003C/code>\u003C/a> 元素定义）和列组（column group，通过 \u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/col\\\">\u003Ccode>&lt;col>\u003C/code>\u003C/a> 和 \u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/colgroup\\\">\u003Ccode>&lt;colgroup>\u003C/code>\u003C/a> 元素定义）之间\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>rows\u003C/code>，这将使得分隔线在行之间显示；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>cols\u003C/code>，这将使得分隔线在列之间显示；\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ccode>all\u003C/code>，这将使得分隔线在列和行之间显示；\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了实现相似的效果，可以在适当的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/thead\\\">\u003Ccode>&lt;thead&gt;\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tbody\\\">\u003Ccode>&lt;tbody&gt;\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tfoot\\\">\u003Ccode>&lt;tfoot&gt;\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/col\\\">\u003Ccode>&lt;col&gt;\u003C/code>\u003C/a>&nbsp;或&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/colgroup\\\">\u003Ccode>&lt;colgroup&gt;\u003C/code>\u003C/a>&nbsp;元素上使用&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border\\\">\u003Ccode>border\u003C/code>\u003C/a>&nbsp;属性。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#summary\\\">\u003Ccode>summary\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">该属性定义了概括表格内容的替代文本。请使用&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/caption\\\">\u003Ccode>&lt;caption&gt;\u003C/code>\u003C/a>&nbsp;元素代替。\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#width\\\">\u003Ccode>width\u003C/code>&nbsp;\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">该属性定义了表格的宽度。请使用 CSS&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/width\\\">\u003Ccode>width\u003C/code>\u003C/a>&nbsp;属性代替。\u003C/p>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E7%A4%BA%E4%BE%8B\\\">示例\u003C/a>\u003C/h2>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E7%AE%80%E5%8D%95%E7%9A%84%E8%A1%A8%E6%A0%BC\\\">简单的表格\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=f3181ffab38a41999d2d0f0afe9cfccede1f7101&state=q1bKKMnNUbJSsilJTMpJtYvJU1CwKSkC0yBWip1XfkaejX5JCpKQS34qXMRGH6oaTVdiXiphXTb6MFuVdJSSi4uVrJSUdJSyoHRJRmpuqpKVUk5mekaJUi0A&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;table&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;John&lt;/td&gt;\\n    &lt;td&gt;Doe&lt;/td&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;Jane&lt;/td&gt;\\n    &lt;td&gt;Doe&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%9B%B4%E5%A4%9A%E7%AE%80%E5%8D%95%E7%A4%BA%E4%BE%8B\\\">更多简单示例\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=bfa7e5bae3ce187fb1846055cdd45650108fff48&state=jVLbctJQFP2VM8dXNBT1oWmaJ5%2F8hryEJCXYNCdDjjPtdDqDIxUZS0uL1BaqBS8VVC46jiII%2FRg5ufyFE8IlnnLxJTmz9tp77b323oUq3tIgCzmDJ7nP1kXGqVTJ%2B%2B92MeVUqlb5N8cYvKBzWIxqCi%2FoAHA4Mfx7L5UnH%2FMcg9UgkstOEI4ZkYNJMv8AKRyD5QDyEKn6BPr%2FLFFX6CyOGbcq6NRMf5JPvEerT04O%2FOEG7e6gl180q6qIU8VxN%2F6gflHybJ80foGVgAszwpGgSZPxmGl5DkeRvDNTSeaDzQb05GWkSNCvgOpEisMbCOH5qp5XC%2FSm4XlKo%2FLUUqyLDHn%2Byu6mFjgvIS2WQI8NYBqivi7AewLkOWaMzrrEUo80flDH6F6duk97FDjodMjRO6vQctNHVMhp1p1qctn92v1DUupRx0iyh3ap5FauKfzunfAqGHRo2Hnx1WnWl928ffyG7LepVOu0Sfo%2FSf4Dab20jmtUdDUcBoN2mkL9QjMU562GnBx4j%2BULGotISAMm3tGUdQFGRWnTC%2BrybQlpKMGCW%2BGNsAAB8w%2Fb32xkgi%2Fcr%2Fv6xLosU%2FuyLsvWpy80WDsj9dzSJXavncw3yia3m7oJWrXzIDjXOKucdt%2Be2cWU3UiSbGGucaKB40gfCXi3dHVuF1N%2B9siGAOXm6fn0QsvKNuY3BUNQMk3IwiEAdj1SFCVkJeGtRBMNU2HB%2BLUWiJqGKMX1GAvCxvaaoO8J%2BrBCSNCx6n1kv5YhyvKQdn9IG6ezYMXYBibS4jKIaqK06ZeAIfjIawaGIFaVLQWyUIvHVAz3%2FgI%3D&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;p&gt;含有表头的表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;tr&gt;\\n    &lt;th&gt;姓&lt;/th&gt;\\n    &lt;th&gt;名&lt;/th&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;Doe&lt;/td&gt;\\n    &lt;td&gt;John&lt;/td&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;Doe&lt;/td&gt;\\n    &lt;td&gt;Jane&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\\n&lt;p&gt;含有表头、表尾和表格主体的表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;thead&gt;\\n    &lt;tr&gt;\\n      &lt;th&gt;表头内容 1&lt;/th&gt;\\n      &lt;th&gt;表头内容 2&lt;/th&gt;\\n    &lt;/tr&gt;\\n  &lt;/thead&gt;\\n  &lt;tbody&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;表格主体内容 1&lt;/td&gt;\\n      &lt;td&gt;表格主体内容 2&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tbody&gt;\\n  &lt;tfoot&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;表尾内容 1&lt;/td&gt;\\n      &lt;td&gt;表尾内容 2&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tfoot&gt;\\n&lt;/table&gt;\\n\\n&lt;p&gt;有列组的表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;colgroup span=\\\"4\\\"&gt;&lt;/colgroup&gt;\\n  &lt;tr&gt;\\n    &lt;th&gt;国家&lt;/th&gt;\\n    &lt;th&gt;首都&lt;/th&gt;\\n    &lt;th&gt;人口数量&lt;/th&gt;\\n    &lt;th&gt;语言&lt;/th&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;美国&lt;/td&gt;\\n    &lt;td&gt;华盛顿&lt;/td&gt;\\n    &lt;td&gt;3.09 亿&lt;/td&gt;\\n    &lt;td&gt;英语&lt;/td&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;瑞典&lt;/td&gt;\\n    &lt;td&gt;斯德哥尔摩&lt;/td&gt;\\n    &lt;td&gt;900 万&lt;/td&gt;\\n    &lt;td&gt;瑞典语&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\\n&lt;p&gt;有列组和列的表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;colgroup&gt;\\n    &lt;col style=\\\"background-color: #0f0\\\" /&gt;\\n    &lt;col span=\\\"2\\\" /&gt;\\n  &lt;/colgroup&gt;\\n  &lt;tr&gt;\\n    &lt;th&gt;青柠&lt;/th&gt;\\n    &lt;th&gt;柠檬&lt;/th&gt;\\n    &lt;th&gt;橘子&lt;/th&gt;\\n  &lt;/tr&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;绿色&lt;/td&gt;\\n    &lt;td&gt;黄色&lt;/td&gt;\\n    &lt;td&gt;橙色&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\\n&lt;p&gt;有标题的简单表格&lt;/p&gt;\\n&lt;table&gt;\\n  &lt;caption&gt;\\n    美妙的标题\\n  &lt;/caption&gt;\\n  &lt;tr&gt;\\n    &lt;td&gt;美妙的数据&lt;/td&gt;\\n  &lt;/tr&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E8%A1%A8%E6%A0%BC%E6%8E%92%E5%BA%8F\\\">表格排序\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">对表格的行进行排序\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">没有原生的方法对 HTML 表格的行（\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/tr\\\">\u003Ccode>&lt;tr&gt;\u003C/code>\u003C/a>元素）进行排序。但是通过使用&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/slice\\\">\u003Ccode>Array.prototype.slice()\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/sort\\\">\u003Ccode>Array.prototype.sort()\u003C/code>\u003C/a>、\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/API/Node/removeChild\\\">\u003Ccode>Node. removeChild()\u003C/code>\u003C/a>&nbsp;和&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/API/Node/appendChild\\\">\u003Ccode>Node.appendChild()\u003C/code>\u003C/a>，你可以实现你自己的&nbsp;\u003Ccode>sort()\u003C/code>&nbsp;函数来对&nbsp;\u003Ccode>&lt;tr&gt;\u003C/code>&nbsp;元素的\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLCollection\\\">\u003Ccode>HTMLCollection\u003C/code>\u003C/a>&nbsp;进行排序。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">在下面的示例中，你可以看到具体如何这样做。我们把这个自定义方法附加到 &lt;tbody&gt; 元素上，这样它就会按照数值增加的顺序对表格单元格进行排序，并更新显示内容以适应需要。\u003C/p>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">HTML\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=ce14e7db35174ad596f60edd983bedf6e66f2863&state=jY9PT8MwDMW%2FSuRTKlUpf25bNwmmSRzgtN0ohzRxaVEal9QDqmnfHSXbEEI7cIqd97Pf8x5a7h3MoGRdO1xWXoiSa7JTKmMTTlWs7fK2LNieteJH%2FIvd%2FA%2B7voSVxTlAWZxTQQ5mHGEGkMNbfB%2B2T4%2FbKG7QcEd%2B7bBHz2oIxMTTgGqkwGIhmp1PgJCmzsQ%2BGtyFoCfVBOolt92oAn2O2TFEmorkqW0orLVppcRMLJYi4XoY0NtV2zl7mseePvD4gVmWzSt%2FmFfektnFTHGVet9hmDbo0DAFWUE6rILko%2FiebIfj89XL0V%2FqXNTJUCvGL16R53icI6MdrqgfdEBZ%2F9aSK%2BTALfYIM3Dda8tw%2BAY%3D&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;table&gt;\\n  &lt;tbody&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;3&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;2&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;1&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tbody&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">JavaScript\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">js复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=ce14e7db35174ad596f60edd983bedf6e66f2863&state=jY9PT8MwDMW%2FSuRTKlUpf25bNwmmSRzgtN0ohzRxaVEal9QDqmnfHSXbEEI7cIqd97Pf8x5a7h3MoGRdO1xWXoiSa7JTKmMTTlWs7fK2LNieteJH%2FIvd%2FA%2B7voSVxTlAWZxTQQ5mHGEGkMNbfB%2B2T4%2FbKG7QcEd%2B7bBHz2oIxMTTgGqkwGIhmp1PgJCmzsQ%2BGtyFoCfVBOolt92oAn2O2TFEmorkqW0orLVppcRMLJYi4XoY0NtV2zl7mseePvD4gVmWzSt%2FmFfektnFTHGVet9hmDbo0DAFWUE6rILko%2FiebIfj89XL0V%2FqXNTJUCvGL16R53icI6MdrqgfdEBZ%2F9aSK%2BTALfYIM3Dda8tw%2BAY%3D&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>HTMLTableSectionElement.prototype.sort = function (cb) {\\n  Array.from(this.rows)\\n    .sort(cb)\\n    .forEach((e) =&gt; this.appendChild(this.removeChild(e)));\\n};\\ndocument\\n  .querySelector(\\\"table\\\")\\n  .tBodies&#91;0].sort((a, b) =&gt; a.textContent.localeCompare(b.textContent));\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">结果\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">通过点击 th 元素对行进行排序\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">下面的示例给&nbsp;\u003Ccode>document\u003C/code>&nbsp;中每个&nbsp;\u003Ccode>&lt;table&gt;\u003C/code>&nbsp;的每个&nbsp;\u003Ccode>&lt;th&gt;\u003C/code>&nbsp;元素添加了一个事件处理程序；它对所有&nbsp;\u003Ccode>&lt;tbody&gt;\u003C/code>&nbsp;的行进行排序，排序的基础是行中包含的&nbsp;\u003Ccode>td\u003C/code>&nbsp;单元格。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003Cstrong>备注：\u003C/strong>这个解决方案假设&nbsp;\u003Ccode>&lt;td&gt;\u003C/code>&nbsp;元素是由原始文本填充的，没有子元素。\u003C/p>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">HTML\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=f9fde97f0f4253146dc1d9002356b4f8a5db2325&state=jZLNTuswEIVfxfLKkSqHll2bVirVlUBiB7umCxNPb3qvY5fJFFqhPgJLxFMgeCl4DmTnp6nKglXsM%2Bc7M7bzxHMqDB%2FyhNSdgUlqGUsoB6XD0m%2BwXoXC5Ovl4%2FPtNYkpP5I%2F316%2F3p87chLXoNeauITunN79mKwn50lM%2BkiZdpQ27xQcnIAXvwP7J%2BDsJzCJm7GTuLkl3uNZWfIh5z3%2Bz38zZ0tiyphb7yjZmGmXbQqwJO83gLsbMJCRw6kxIuUhJuXRKLVLh0xUdFCZWx5iIvbkJ6jLF07v2LiySb9bQTk%2FW4wOFnSPvvUUUe3kEl0hAiS9HnV8%2FkUAZ2BMeQi8BKWDc362kJmvBaI7YO6n68D1fE2sh66shq0PzWW7HVUmyqXS%2Bs8DWLpelQQWUKQ8M6vsf8p7TERsPGkCWTiLLB2SEIT9HiMcHBvae8H%2BLWzJ98R%2BNfi8bb2QBFuaOUtgaXSKDlp08FsUgTZom7bSuEwZmLlirRBEnRi1%2Fv1hWb2FWq%2FBaiFl51Va2z61%2B%2FB3UQ4F8CE3q7858f03&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;table&gt;\\n  &lt;thead&gt;\\n    &lt;tr&gt;\\n      &lt;th&gt;数字&lt;/th&gt;\\n      &lt;th&gt;字母&lt;/th&gt;\\n    &lt;/tr&gt;\\n  &lt;/thead&gt;\\n  &lt;tbody&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;3&lt;/td&gt;\\n      &lt;td&gt;A&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;2&lt;/td&gt;\\n      &lt;td&gt;B&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;td&gt;1&lt;/td&gt;\\n      &lt;td&gt;C&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tbody&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">JavaScript\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">js复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=f9fde97f0f4253146dc1d9002356b4f8a5db2325&state=jZLNTuswEIVfxfLKkSqHll2bVirVlUBiB7umCxNPb3qvY5fJFFqhPgJLxFMgeCl4DmTnp6nKglXsM%2Bc7M7bzxHMqDB%2FyhNSdgUlqGUsoB6XD0m%2BwXoXC5Ovl4%2FPtNYkpP5I%2F316%2F3p87chLXoNeauITunN79mKwn50lM%2BkiZdpQ27xQcnIAXvwP7J%2BDsJzCJm7GTuLkl3uNZWfIh5z3%2Bz38zZ0tiyphb7yjZmGmXbQqwJO83gLsbMJCRw6kxIuUhJuXRKLVLh0xUdFCZWx5iIvbkJ6jLF07v2LiySb9bQTk%2FW4wOFnSPvvUUUe3kEl0hAiS9HnV8%2FkUAZ2BMeQi8BKWDc362kJmvBaI7YO6n68D1fE2sh66shq0PzWW7HVUmyqXS%2Bs8DWLpelQQWUKQ8M6vsf8p7TERsPGkCWTiLLB2SEIT9HiMcHBvae8H%2BLWzJ98R%2BNfi8bb2QBFuaOUtgaXSKDlp08FsUgTZom7bSuEwZmLlirRBEnRi1%2Fv1hWb2FWq%2FBaiFl51Va2z61%2B%2FB3UQ4F8CE3q7858f03&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>const allTables = document.querySelectorAll(\\\"table\\\");\\nfor (const table of allTables) {\\n  const tBody = table.tBodies&#91;0];\\n  const rows = Array.from(tBody.rows);\\n  const headerCells = table.tHead.rows&#91;0].cells;\\n  for (const th of headerCells) {\\n    const cellIndex = th.cellIndex;\\n    th.addEventListener(\\\"click\\\", () =&gt; {\\n      rows.sort((tr1, tr2) =&gt; {\\n        const tr1Text = tr1.cells&#91;cellIndex].textContent;\\n        const tr2Text = tr2.cells&#91;cellIndex].textContent;\\n        return tr1Text.localeCompare(tr2Text);\\n      });\\n      tBody.append(...rows);\\n    });\\n  }\\n}\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch5 class=\\\"wp-block-heading\\\">结果\u003C/h5>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%9C%A8%E5%B0%8F%E7%A9%BA%E9%97%B4%E5%B1%95%E7%A4%BA%E5%A4%A7%E5%9E%8B%E8%A1%A8%E6%A0%BC\\\">在小空间展示大型表格\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">网络上表格的一个普遍问题是，当内容量很大时，它们在小屏幕上的原生效果并不好，而且使它们可滚动的方法并不明显，特别是当标记可能来自 CMS，无法添加一个包装器时。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这个例子提供了一种在小空间中显示表格的方法。我们隐藏了 HTML 内容，因为它非常大，而且没有什么特别之处。在这个例子中，研究其 CSS 代码更有用。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">当查看这些样式时，你会注意到表格的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/display\\\">\u003Ccode>display\u003C/code>\u003C/a>&nbsp;属性已被设置为&nbsp;\u003Ccode>block\u003C/code>。虽然允许滚动，但表格失去了一些完整性，而且表格单元格会尽量变小。为了缓解这个问题，我们在&nbsp;\u003Ccode>&lt;tbody&gt;\u003C/code>&nbsp;上将&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/white-space\\\">\u003Ccode>white-space\u003C/code>\u003C/a>&nbsp;设置为&nbsp;\u003Ccode>nowrap\u003C/code>。然而，我们没有对&nbsp;\u003Ccode>&lt;thead&gt;\u003C/code>&nbsp;进行设置，以避免长标题迫使列的宽度超过显示数据所需的宽度。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">为了在向下滚动时保持表头在页面上，我们在&nbsp;\u003Ccode>&lt;th&gt;\u003C/code>&nbsp;元素上将&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/position\\\">\u003Ccode>position\u003C/code>\u003C/a>&nbsp;设置为 sticky。注意，我们\u003Cstrong>没有\u003C/strong>将&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/border-collapse\\\">\u003Ccode>border-collapse\u003C/code>\u003C/a>&nbsp;设置为&nbsp;\u003Ccode>collapse\u003C/code>，因为如果我们这样做，表头就不能与表格的其他部分正确分开。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">css复制\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/play?uuid=5175f6b091486794c8fb98e251b5329278939bf0&state=hddPbtpAHIbhq4ym6g4r%2Fsb%2FJ4iTsDG2wW6Mx7IngSjKAbrpAXqHXqDqcSp12StUdoDQ9kOzCTD8PLxANI94kbXdt1LLpc03bbVad0IsbV3l5Xx3ejCc7s1PrLAcH%2FtVsLybbsSvb59%2Ffv%2Fy%2B8fX6xHlHgncI6F7JHKPxO6R5PbI0m5M%2BUw%2FiXI1mIOAFiBrKVlTCVmMQ7ajitj1iMlqEAa36xSpU6ROsTrF6hStU7ROOeoCUheQuoDVBawuoHUBrQscdSGpC0ldyOpCVhfSupDWhY66iNRFpC5idRGri2hdROsiR11M6mJSF7O6mNXFtC6mdbGjLiF1CalLWF3C6hJal9C6xFGXkrqU1KWsLmV1Ka1LaV3qqMtIXUbqMlaXsbqM1mW0LnPUwWfHsc%2FOY58eyD49kX1%2BJPv8TPZdkdQMigZXg7Nxw40bcLjkAKMDzA5QPED1AOcD3A%2B4AAETBIwQUENAEQFXBJwRuBwBgwRMElBKQC0BxwRcE7g4AfMEDBRQUUBJATcFHBW4VAFjBcwVUFhAZQGnBdwWuHAB0wWMF1BfQIEBFwacGLiMAUMGTBlQZkCdAYcGXBq4qAGzBgwbUG1AuQH3BhwcuMRRTBzFxFFUHEXFUVwcxcVRZ3GWd%2BffcHIhi3GUWs4Li3Vn6%2BlPKV6mizdmKKtBC%2FRHMZq2Ke%2FX3eu6W3fz9NvMoSltrQV8%2F%2BP99HifH73TWuj7%2FXFerKtmV1stVHhe2efDrum08EX%2BaM28VDZj3%2BbPWmxaUzzMS%2BapGratOXhH%2FT73VuWNfV403U4L%2F1I1%2FQY7VdWNreaRSovOHIa8v0xdv8M%2BL8t5k6g%2FCpzjTq9gTX9%2BK%2F71eltt7fUTp21PO5qxsY3ptBhtUzw8zxda01%2F2yIuH3WAeu1KLD9vtdl58qgbbFHnr5W2z67TYGGvN%2Fn1r3eaj9Yq6acs5%2Furx9TflDdPH%2FH%2FacD3%2F95frvb3UP9fIhfw0%2FVfIhbR1ta%2Bklu20tXz9Aw%3D%3D&srcPrefix=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Ftable%2F\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">运行\u003C/a>\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>table,\\nth,\\ntd {\\n  border: 1px solid;\\n}\\n\\ntable {\\n  width: 100%;\\n  max-width: 400px;\\n  height: 240px;\\n  margin: 0 auto;\\n  display: block;\\n  overflow-x: auto;\\n  border-spacing: 0;\\n}\\n\\ntbody {\\n  white-space: nowrap;\\n}\\n\\nth,\\ntd {\\n  padding: 5px 10px;\\n  border-top-width: 0;\\n  border-left-width: 0;\\n}\\n\\nth {\\n  position: sticky;\\n  top: 0;\\n  background: #fff;\\n  vertical-align: bottom;\\n}\\n\\nth:last-child,\\ntd:last-child {\\n  border-right-width: 0;\\n}\\n\\ntr:last-child td {\\n  border-bottom-width: 0;\\n}\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">结果\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">\u003C/p>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%97%A0%E9%9A%9C%E7%A2%8D%E8%80%83%E8%99%91\\\">无障碍考虑\u003C/a>\u003C/h2>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E6%A0%87%E9%A2%98\\\">标题\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">提供一个清晰简洁地描述了表格的目的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/caption\\\">\u003Ccode>&lt;caption&gt;\u003C/code>\u003C/a>&nbsp;元素，有助于人们决定是否需要阅读表格的其他内容或跳过它。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">这有助于借助辅助技术（如屏幕阅读器）进行导航的人、经历低视力状况的人和有认知问题的人。\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/Structuring_content/Table_accessibility#%E4%BD%BF%E7%94%A8_caption_%E4%B8%BA%E4%BD%A0%E7%9A%84%E8%A1%A8%E6%A0%BC%E5%A2%9E%E5%8A%A0%E4%B8%80%E4%B8%AA%E6%A0%87%E9%A2%98\\\">MDN：使用 &lt;caption> 元素为表格添加标题\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/WAI/tutorials/tables/caption-summary/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">标题和总结 • Tables • W3C WAI Web Accessibility Tutorials\u003C/a>\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E7%A1%AE%E5%AE%9A%E8%A1%8C%E5%92%8C%E5%88%97%E7%9A%84%E8%8C%83%E5%9B%B4\\\">确定行和列的范围\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">头部元素的&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/th#scope\\\">\u003Ccode>scope\u003C/code>\u003C/a>&nbsp;属性在简单情况下是多余的，因为范围是推断出来的。然而，一些辅助技术可能无法做出正确的推断，所以指定头的范围可能会改善用户体验。在复杂的表格中，可以指定范围以提供与标题相关的单元格的必要信息。\u003C/p>\\n\\n\\n\\n\u003Ch4 class=\\\"wp-block-heading\\\">示例\u003C/h4>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">html复制\u003C/p>\\n\\n\\n\\n\u003Cpre class=\\\"wp-block-code\\\">\u003Ccode>&lt;table&gt;\\n  &lt;caption&gt;\\n    表格名称和值\\n  &lt;/caption&gt;\\n  &lt;tbody&gt;\\n    &lt;tr&gt;\\n      &lt;th scope=\\\"col\\\"&gt;名称&lt;/th&gt;\\n      &lt;th scope=\\\"col\\\"&gt;HEX&lt;/th&gt;\\n      &lt;th scope=\\\"col\\\"&gt;HSLa&lt;/th&gt;\\n      &lt;th scope=\\\"col\\\"&gt;RGBa&lt;/th&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;th scope=\\\"row\\\"&gt;Teal&lt;/th&gt;\\n      &lt;td&gt;&lt;code&gt;#51F6F6&lt;/code&gt;&lt;/td&gt;\\n      &lt;td&gt;&lt;code&gt;hsla(180, 90%, 64%, 1)&lt;/code&gt;&lt;/td&gt;\\n      &lt;td&gt;&lt;code&gt;rgba(81, 246, 246, 1)&lt;/code&gt;&lt;/td&gt;\\n    &lt;/tr&gt;\\n    &lt;tr&gt;\\n      &lt;th scope=\\\"row\\\"&gt;Goldenrod&lt;/th&gt;\\n      &lt;td&gt;&lt;code&gt;#F6BC57&lt;/code&gt;&lt;/td&gt;\\n      &lt;td&gt;&lt;code&gt;hsla(38, 90%, 65%, 1)&lt;/code&gt;&lt;/td&gt;\\n      &lt;td&gt;&lt;code&gt;rgba(246, 188, 87, 1)&lt;/code&gt;&lt;/td&gt;\\n    &lt;/tr&gt;\\n  &lt;/tbody&gt;\\n&lt;/table&gt;\\n\u003C/code>\u003C/pre>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">在&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/th\\\">\u003Ccode>&lt;th&gt;\u003C/code>\u003C/a>&nbsp;元素上提供声明&nbsp;\u003Ccode>scope=\\\"col\\\"\u003C/code>，将有助于描述该单元格处于一列的顶部。在&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/th\\\">\u003Ccode>&lt;th&gt;\u003C/code>\u003C/a>&nbsp;元素上提供声明&nbsp;\u003Ccode>scope=\\\"row\\\"\u003C/code>，将有助于描述该单元格是某一行的第一个。\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/Structuring_content/Table_accessibility#%E5%AF%B9%E4%BA%8E%E8%A7%86%E5%8A%9B%E5%8F%97%E6%8D%9F%E7%9A%84%E7%94%A8%E6%88%B7%E7%9A%84%E8%A1%A8%E6%A0%BC\\\">MDN：对于视力受损用户的表格\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/WAI/tutorials/tables/two-headers/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">有两个头部的表格 • Tables • W3C WAI Web Accessibility Tutorials\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/WAI/tutorials/tables/irregular/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">有不标准头部的表格 • Tables • W3C WAI Web Accessibility Tutorials\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/TR/WCAG20-TECHS/H63.html\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">H63: 使用范围属性来关联数据表中的标题单元和数据单元 | W3C Techniques for WCAG 2.0\u003C/a>\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Ch3 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E5%A4%8D%E6%9D%82%E8%A1%A8%E6%A0%BC\\\">复杂表格\u003C/a>\u003C/h3>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">诸如屏幕阅读器等辅助技术可能难以解析那些复杂到标题单元不能以严格的水平或垂直方式关联的表格。这通常由&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/td#colspan\\\">\u003Ccode>colspan\u003C/code>\u003C/a>&nbsp;和&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/td#rowspan\\\">\u003Ccode>rowspan\u003C/code>\u003C/a>&nbsp;属性的存在表示。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">理想情况下，考虑用其他方式来展示表格的内容，包括将其分解成一系列较小的、相关的表格，而不必依赖&nbsp;\u003Ccode>colspan\u003C/code>&nbsp;和&nbsp;\u003Ccode>rowspan\u003C/code>&nbsp;属性。除了帮助使用辅助技术的人理解表的内容外，这也可能有利于有认知障碍的人，这些人可能难以理解表的布局所描述的关联。\u003C/p>\\n\\n\\n\\n\u003Cp class=\\\"wp-block-paragraph\\\">如果表格不能被拆开，使用&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Global_attributes#id\\\">\u003Ccode>id\u003C/code>\u003C/a>&nbsp;和&nbsp;\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/td#headers\\\">\u003Ccode>headers\u003C/code>\u003C/a>&nbsp;属性的组合，以编程方式将每个表格单元与该单元所关联的标题相关联。\u003C/p>\\n\\n\\n\\n\u003Cul class=\\\"wp-block-list\\\">\\n\u003Cli>\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/Structuring_content/Table_accessibility#%E5%AF%B9%E4%BA%8E%E8%A7%86%E5%8A%9B%E5%8F%97%E6%8D%9F%E7%9A%84%E7%94%A8%E6%88%B7%E7%9A%84%E8%A1%A8%E6%A0%BC\\\">MDN：对于视力受损用户的表格\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/WAI/tutorials/tables/multi-level/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">有多级头部的表格 • Tables • W3C WAI Web Accessibility Tutorials\u003C/a>\u003C/li>\\n\\n\\n\\n\u003Cli>\u003Ca href=\\\"https://www.w3.org/TR/WCAG20-TECHS/H43.html\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">H43: 使用 id 和 headers 属性将数据单元与数据表中的标题单元联系起来 | Techniques for W3C WCAG 2.0\u003C/a>\u003C/li>\\n\u003C/ul>\\n\\n\\n\\n\u003Ch2 class=\\\"wp-block-heading\\\">\u003Ca href=\\\"https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/table#%E8%A7%84%E8%8C%83\\\">规范\u003C/a>\u003C/h2>\"}}],\"version\":\"2.31.5\"}",1782708114,"https://hl-file.8kds.com/admin/b8212f36b31c4478be781f374b0a8a49.png",1782734705,{"id":43,"author":5,"title":75,"content":76,"classTypeId":77,"classTypeName":78,"publishTime":72,"coverImg":80,"pageTitle":5,"slug":5,"permalink":43,"authorAvatar":5,"authorBio":5,"createBy":81,"updateDate":72},7,[]]