<!DOCTYPE html>
<html>
<title>编程狮(w3cschool.cn)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://7npmedia.w3cschool.cn/w3.css">
<body>
<div class="w3-container">
<h3>w3-row和w3-row-padding的区别</h3>
<p>w3-row类定义了一个无插件的容器:</p>
</div>
<div class="w3-row">
<div class="w3-col s4">
<img src="https://atts.w3cschool.cn/img_lights.jpg" style="width:100%">
</div>
<div class="w3-col s4">
<img src="https://atts.w3cschool.cn/img_nature.jpg" style="width:100%">
</div>
<div class="w3-col s4">
<img src="https://atts.w3cschool.cn/img_snowtops.jpg" style="width:100%">
</div>
</div>
<div class="w3-container">
<p>w3-row-padding类为每一列添加8px左右padding:</p>
</div>
<div class="w3-row-padding">
<div class="w3-col s4">
<img src="https://atts.w3cschool.cn/img_lights.jpg" style="width:100%">
</div>
<div class="w3-col s4">
<img src="https://atts.w3cschool.cn/img_nature.jpg" style="width:100%">
</div>
<div class="w3-col s4">
<img src="https://atts.w3cschool.cn/img_snowtops.jpg" style="width:100%">