首页
极刻
圈子
教程
开源
极客社区
写文章
发极刻
建圈子
发项目
登录 / 注册
返回教程:CSS 教程
TRY RUN / 在线示例
CSS 教程 使用百分比来设置元素的最小宽度
CSS 教程 使用百分比来设置元素的最小宽度
源代码
运行
<!DOCTYPE html> <html> <head> <style> p { min-width:200%; background-color:yellow; } </style> </head> <body> <p>This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p> <img src="/attachments/cover/cover_css.png" width="95" height="84" /> </body> </html>
运行结果