The page is divided into two divs on the left and right, which are floating.
I need to fix the width of the left div to 100px, and adjust the width of the right div to fill the remaining space, which means the width should be 100%-100px.
How to implement it in CSS?
3x.
Reply to discussion (solution)
hello
/**css **/#a { width:10%;/*以%划分页面和100px有相同效果,无论如何变浏览器都将保持比例*/ height:auto; overflow:hidden;/*超过部分自动截断,也可以用scroll替换hidden为框设置滚动条*/ }#b {float:right; width:90%; height:auto; }/**css end **/<!--省略大部分html--><div id="b">这里发言,表示您接受了CSDN社区的用户行为准则。请对您的言行负责,并遵守中华人民共和国有关法律法规,尊重网上道德。转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。这里发言,表示您接受了CSDN社区的用户行为准则。请对您的言行负责,并遵守中华人民共和国有关法律法规,尊重网上道德。转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。这里发言,表示您接受了CSDN社区的用户行为准则。请对您的言行负责,并遵守中华人民共和国有关法律法规,尊重网上道德。转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。这里发言,表示您接受了CSDN社区的用户行为准则。请对您的言行负责,并遵守中华人民共和国有关法律法规,尊重网上道德。转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。这里发言,表示您接受了CSDN社区的用户行为准则。请对您的言行负责,并遵守中华人民共和国有关法律法规,尊重网上道德。转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。这里发言,表示您接受了CSDN社区的用户行为准则。请对您的言行负责,并遵守中华人民共和国有关法律法规,尊重网上道德。转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。这里发言,表示您接受了CSDN社区的用户行为准则。请对您的言行负责,并遵守中华人民共和国有关法律法规,尊重网上道德。转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。这里发言,表示您接受了CSDN社区的用户行为准则。请对您的言行负责,并遵守中华人民共和国有关法律法规,尊重网上道德。转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。这里发言,表示您接受了CSDN社区的用户行为准则。请对您的言行负责,并遵守中华人民共和国有关法律法规,尊重网上道德。转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。这里发言,表示您接受了CSDN社区的用户行为准则。请对您的言行负责,并遵守中华人民共和国有关法律法规,尊重网上道德。转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。</div><div id="a">这里发言,表示您接受了CSDN社区的用户行为准则。请对您的言行负责,并遵守中华人民共和国有关法律法规,尊重网上道德。</div>
10% I know 90% of this, but it's not the effect I want.
The page below achieves this effect, but I don’t know how.
http://masonry.desandro.com/demos/basic-single-column.html
I suddenly realized that I didn’t turn the corner for a while. 3Q.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

The role of HTML is to define the structure and content of a web page through tags and attributes. 1. HTML organizes content through tags such as , making it easy to read and understand. 2. Use semantic tags such as, etc. to enhance accessibility and SEO. 3. Optimizing HTML code can improve web page loading speed and user experience.

HTMLisaspecifictypeofcodefocusedonstructuringwebcontent,while"code"broadlyincludeslanguageslikeJavaScriptandPythonforfunctionality.1)HTMLdefineswebpagestructureusingtags.2)"Code"encompassesawiderrangeoflanguagesforlogicandinteract


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!

Dreamweaver CS6
Visual web development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft