這篇文章給大家分享的是有關怎么用css實現十字的布局的內容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。
目前創(chuàng)新互聯已為上1000家的企業(yè)提供了網站建設、域名、虛擬主機、網站托管維護、企業(yè)網站設計、策勒網站維護等服務,公司將堅持客戶導向、應用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協力一起成長,共同發(fā)展。
代碼如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>無標題文檔</title> <style> .wrap{ margin:100px 100px 0 100px; width:600px; height:200px; overflow:hidden;} .one{ float:left; width:100px; height:100px; border:1px dashed #ccc; border-right:0 none; margin-left:-2px; margin-top:-1px; border-bottom:0;} </style> </head> <body> <div class="wrap"> <div class="one"></div> <div class="one"></div> <div class="one"></div> <div class="one"></div> <div class="one"></div> <div class="one"></div> <div class="one"></div> <div class="one"></div> <div class="one"></div> <div class="one"></div> <div class="one"></div> <div class="one"></div> </div> </body> </html>
感謝各位的閱讀!關于“怎么用css實現十字的布局”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!
名稱欄目:怎么用css實現十字的布局
URL鏈接:http://chinadenli.net/article42/gjeoec.html
成都網站建設公司_創(chuàng)新互聯,為您提供ChatGPT、App設計、網站排名、品牌網站制作、服務器托管、自適應網站
聲明:本網站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯