一,单个DIV:
1.用nobr元素
Code:
<head>
</head>
<body>
<div><nobr>不换行不换行<nobr></div>
</body>
</html>
2.用nowrap元素
Code:
<head>
</head>
<body>
<div
</body>
</html>
二,两个DIV
1.
Code:
<head>
<style
div#row1
div#row2
</style>
</head>
<body>
<div
<div
</body>
</html>
2.
Code:
<head>
<title>CSS中的不换行</title>
<style
div#row1
div#row2
</style>
</head>
<body>
<div
<div
</body>
</html>
所有评论(0)