A云海
關注

關注後可及時瞭解他的動態資訊

課程筆記
  • 所屬章節課程:HTML中常用的標籤及屬性(清單)

    <ol> <li></li>//有序标签 </ol> <ul> <li></li>//无序标签 </ul> <style> ul li{list-style:none;height:400px;width:200px;border:1px solid #ccc;margin:5px 0px;text-align:center;line-height:40px;}//li标签隐藏圆点,设置高和宽,表格为实线,边距左右5px上下0,text-align 文本居中 line-height 上下间距; ul li:before{content:url(地址);margin-right:20px;}//在文字前面用before,content引入地址 右边20px; ul li:after{content:url(图片地址)}//在文字后面插入一张图片用after,content引入地址; </style>

    2019-01-040个赞

  • 所屬章節課程:HTML中常用的標籤及屬性(form表單)

    <form method="get/post" action="地址url"> <input type=“text” name=“username” placeholder="请输入用户名">用户名 <input type="password" name="password" placeholder="请输入密码">密码 <button>登陆</button> </form> <style> input{height:8px;width:258px;border:1px solid #ccc;margin-top:20px;padding:20px;} //设置高和宽 边框设置实线颜色大小 外边距上20 内边距20px button{height:20px;width:300px;border:none;background:red;color;#fff;}//设置高和宽,去掉边框颜色,背景色红色,字体为白色; </style>

    2019-01-040个赞

  • 所屬章節課程:HTML中常用的標籤及屬性(表格)

    <table> <tr> <th>1</th>//th设置表头 <td colspan="3"></td>//colspan 设置3列合并 <td rowspan="2"></tb>//rowspan 设置2行合并 </tr> </table> <style> table{width:400px;height:200px;border:1px solid #ccc;border-collapse:collapse;} //设置高和宽,边框 实线颜色大小,border-collaps边框会合并为一个单一的边框 tr td{height:200px;border:1px solid #ccc;} </style>

    2019-01-040个赞

  • 所屬章節課程:jQuery操作屬性的方法(1)

    addClass() 增加元素 $('p').addClass('box man') removeClass() 移除元素$('p').removeClass('box') attr() 方法设置或者返回被选择的元素 $('p').attr('src','images/2.jgp') removeattr() 方法设置或者返回被选择的元素移除掉 $('p').removeattr('src','images/2.jgp') hasClass() 改方法对被选中元素是否包含指定class;

    2019-01-120个赞