让文字在标签li的底部

<ul>
{aspcms:navlist type=6 }
<li style="border-bottom:1px solid #d4d4d4;padding-top:25px;width:160px;valign:bottom" ><a href="[navlist:link]" >[navlist:name]</a></li>
{/aspcms:navlist}

</ul>

转载于:https://www.cnblogs.com/uuxanet/p/3437223.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是这个网页的代码: ```html <!DOCTYPE html> <html> <head> <title>我的网页</title> <style type="text/css"> body { margin: 0; padding: 0; } header { background-color: red; height: 200px; position: relative; } #left-image, #right-image { position: absolute; top: 50%; transform: translateY(-50%); width: 100px; height: 100px; background-image: url(left-image.jpg); background-size: cover; background-position: center; z-index: 1; } #left-image { left: 0; } #right-image { right: 0; background-image: url(right-image.jpg); } nav { background-color: #eee; height: 50px; display: flex; align-items: center; padding: 0 20px; } nav ul { list-style: none; margin: 0; padding: 0; display: flex; } nav a { display: block; padding: 10px; color: black; text-decoration: none; border-right: 1px solid #ccc; transition: background-color 0.3s; } nav a:hover { background-color: #ccc; } nav a.active { background-color: #ccc; font-weight: bold; } #search, #login { margin-left: auto; background-color: #ccc; padding: 5px 10px; border-radius: 5px; font-weight: bold; cursor: pointer; } main { background-image: url(main-image.jpg); background-size: cover; background-position: center; height: 600px; display: flex; flex-direction: column; align-items: center; justify-content: center; } #center-image { width: 200px; height: 200px; background-image: url(center-image.jpg); background-size: cover; background-position: center; margin: 20px; } #labels { display: flex; justify-content: center; align-items: center; } #labels span { display: block; margin: 10px; font-size: 20px; font-weight: bold; color: white; background-color: rgba(0, 0, 0, 0.5); padding: 10px; border-radius: 5px; } footer { background-color: #ddd; padding: 20px; text-align: center; } footer a { color: black; text-decoration: none; margin: 10px; font-weight: bold; } </style> </head> <body> <header> <div id="left-image"></div> <div id="right-image"></div> </header> <nav> <ul> <li><a href="#" class="active">首页</a></li> <li><a href="#">新闻</a></li> <li><a href="#">体育</a></li> <li><a href="#">科技</a></li> <li><a href="#">财经</a></li> <li><a href="#">娱乐</a></li> <li><a href="#">军事</a></li> <li><a href="#">汽车</a></li> <li><a href="#">房产</a></li> <li><a href="#">游戏</a></li> <li><a href="#">旅游</a></li> <li><a href="#">教育</a></li> <li><button id="search">搜索</button></li> <li><button id="login">登录</button></li> </ul> </nav> <main> <div id="center-image"></div> <div id="labels"> <span>标签1</span> <span>标签2</span> <span>标签3</span> <span>标签4</span> <span>标签5</span> <span>标签6</span> <span>标签7</span> <span>标签8</span> </div> </main> <footer> <a href="#">链接1</a> <a href="#">链接2</a> <a href="#">链接3</a> <a href="#">链接4</a> <a href="#">链接5</a> <a href="#">链接6</a> <a href="#">链接7</a> <a href="#">链接8</a> <a href="#">链接9</a> <a href="#">链接10</a> </footer> </body> </html> ``` 注意:为了方便,我使用了一些占位图片和占位文字,需要根据实际情况进行替换。另外,这个网页只是一个示例,实际情况可能会根据需求进行调整。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值