图片横向显示

前台代码

<div id="link_button">
                    <ul>
                        <li><a href="#" title="1" id="yjbncs">
                            <img src="../../../../image/preventive/btn1.gif" title="1" alt="1" class="btnli_img" />1</a></li>
                        <li><a href="#" title="2" id="zyzdw">
                            <img src="../../../../image/preventive/btn2.gif" title="2" alt="2" class="btnli_img" />2</a></li>
                        <li><a href="#" title="3" id="dzjya">
                            <img src="../../../../image/preventive/btn3.gif" title="3" alt="3" class="btnli_img" />3</a></li>
                        <li><a href="#" title=" 4" id="zsxc">
                            <img src="../../../../image/preventive/btn4.gif" title="4" alt="4"
                                class="btnli_img" />4</a></li>
                        <li><a href="#" title=" 5" id="kpzs">
                            <img src="../../../../image/preventive/btn5.gif" title="5" alt="5" class="btnli_img" />5</a></li>
                        <li><a href="#" title=" 6" id="sfdw">
                            <img src="../../../../image/preventive/btn6.gif" title="6" alt="6" class="btnli_img" />6</a></li>
                    </ul>
                    <div class="clear">
                    </div>
                </div>

css代码

 #link_button
        {
            width: 400px;
            margin: 0;
            font-size: 12px;
        }
        #link_button ul
        {
            float: left;
            margin: 0;
            padding: 5px 0 0 30px;
        }
        #link_button ul li
        {
            float: left;
            list-style: none;
            cursor: pointer;
            width: 73px;
            text-align: center;
            padding: 20px 20px 20px 20px;
            line-height: 15px;
            height: 40px;
        }
        #link_button ul li a
        {
            border: 0;
            padding: 10px 0px 0px 5px;
        }
        .btnli_img
        {
            border: 0px;
        }
        a
        {
            color: #000; /*text-decoration: underline; */
            text-decoration: none;
        }
        a:hover
        {
            text-decoration: underline;
        }
        a:active
        {
            text-decoration: none;
        }

转载于:https://www.cnblogs.com/wang-123/p/3291289.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值