-
HTML + CSS短标题(二,三,四文字长度)两端对齐的方式
- <style type="text/css">
- .hotsearch dd{
- float: left;
- line-height: 24px;
- margin-right: 30px;
- overflow: hidden;
- text-align: center;
- 4em;
- }
- .hotsearch dd a{
- display:block;
- }
- .w2{
- letter-spacing:2em;
- margin-right:-2em;
- }
- .w3{
- letter-spacing:0.5em;
- margin-right:-0.5em;
- }
- </style>
- <span style="font-size:12px;"><dl class="hotsearch" style="300px;">
- <dt>热门搜索</dt>
- <dd><a href="#" target="_blank" ref="nav" class="w3">电视机</a></dd>
- <dd><a href="#" target="_blank" ref="nav" class="w4">性感漂亮</a></dd>
- <dd><a href="#" target="_blank" ref="nav" class="w3">高跟鞋</a></dd>
- <dd><a href="#" target="_blank" ref="nav" class="w2">手机</a></dd>
- <dd><a href="#" target="_blank" ref="nav" class="w2">对齐</a></dd>
- <dd><a href="#" target="_blank" ref="nav" class="w3">牛仔裤</a></dd>
- <dd><a href="#" target="_blank" ref="nav" class="w4">小家碧玉</a></dd>
- <dd><a href="#" target="_blank" ref="nav" class="w2">家居</a></dd>
- </dl></span>
-
相关阅读:
sql语句
数据结构
Collection接口
【学习笔记】〖九度OJ〗题目1443:Tr A
【学习笔记】〖九度OJ〗题目1104:整除问题
【学习笔记】〖九度OJ〗题目1138:进制转换
【学习笔记】〖九度OJ〗题目1326:Waiting in Line
【学习笔记】〖九度OJ〗题目1437:To Fill or Not to Fill
【学习笔记】〖九度OJ〗题目1153:括号匹配问题
【学习笔记】〖九度OJ〗题目1161:Repeater
-
原文地址:https://www.cnblogs.com/qhhw/p/7122179.html
Copyright © 2020-2023
润新知